X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Fmathml_editor%2Fsrc%2FTNode.hh;h=c9f85b8f8d34c84a5da5bb1cbfc55885caf74d44;hb=387aeebf96181c051b7f527a0901b173cfcdf194;hp=b2c68fa6973a76e7a6d48f8c2eb57b6f9a067425;hpb=2f94240bc382ca43017f31b0852f1717fe18090b;p=helm.git diff --git a/helm/DEVEL/mathml_editor/src/TNode.hh b/helm/DEVEL/mathml_editor/src/TNode.hh index b2c68fa69..c9f85b8f8 100644 --- a/helm/DEVEL/mathml_editor/src/TNode.hh +++ b/helm/DEVEL/mathml_editor/src/TNode.hh @@ -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"); };