#ifndef JEZUK_DOM_NOTATION_H #define JEZUK_DOM_NOTATION_H //////////////////////////// // C++ DOM definition // // $Id$ //////////////////////////// #include #include namespace DOM { template class Notation_impl; template class Notation : public Node { public: Notation() : Node() { } explicit Notation(Notation_impl* impl) : Node(dynamic_cast*>(impl)) { } Notation(const Notation& rhs) : Node(rhs) { } explicit Notation(const Node& rhs) : Node(rhs) { if(rhs.getNodeType() != Node::NOTATION_NODE) throw std::bad_cast(); } stringT getPublicId() const { nImpl()->getPublicId(); } stringT getSystemId() const { nImpl()->getSystemId(); } private: Notation_impl* nImpl() { return dynamic_cast*>(impl()); } }; // class Notation ////////////////////////////////////////////////////////// template class NamedNodeMap_impl; template class Notation_impl : virtual public Node_impl { public: virtual ~Notation_impl () { } ///////////////////////////////////////////// // DOM::Notation virtual stringT getPublicId() const = 0; virtual stringT getSystemId() const = 0; }; // class Notation_impl } // namespace DOM #endif