]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/src/TNode.hh
* this is a large commit
[helm.git] / helm / DEVEL / mathml_editor / src / TNode.hh
index b2c68fa6973a76e7a6d48f8c2eb57b6f9a067425..c9f85b8f8d34c84a5da5bb1cbfc55885caf74d44 100644 (file)
@@ -64,6 +64,7 @@ public:
   std::string name(void) const { return node.get_localName(); };
   std::string nameC(void) const { return node.getAttribute("name"); };
   bool  hasId(void) const { return node.hasAttribute("id"); };
+  bool  hasId(const std::string& id) const { return node.getAttribute("id") == id; };
   bool  is(const std::string& s) const { return name() == s; };
   bool  isG(void) const { return is("g"); };
   bool  isSb(void) const { return is("sb"); };