X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Fmathml_editor%2Fsrc%2FTNode.hh;h=c9f85b8f8d34c84a5da5bb1cbfc55885caf74d44;hb=305502d014e6ac7bde45e48de615bd9c77b0e573;hp=b2c68fa6973a76e7a6d48f8c2eb57b6f9a067425;hpb=6bb809fdd7a94a55031dbb50f5510539aae13b28;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"); };