DTDMap.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // DTDMap.h
  3. //
  4. // Library: XML
  5. // Package: DOM
  6. // Module: DOM
  7. //
  8. // Definition of the DTDMap class.
  9. //
  10. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #ifndef DOM_DTDMap_INCLUDED
  16. #define DOM_DTDMap_INCLUDED
  17. #include "Poco/XML/XML.h"
  18. #include "Poco/DOM/NamedNodeMap.h"
  19. namespace Poco {
  20. namespace XML {
  21. class DocumentType;
  22. class XML_API DTDMap: public NamedNodeMap
  23. /// This implementation of NamedNodeMap
  24. /// is returned by DocumentType::entities()
  25. /// and DocumentType::notations().
  26. {
  27. public:
  28. Node* getNamedItem(const XMLString& name) const;
  29. Node* setNamedItem(Node* arg);
  30. Node* removeNamedItem(const XMLString& name);
  31. Node* item(unsigned long index) const;
  32. unsigned long length() const;
  33. Node* getNamedItemNS(const XMLString& namespaceURI, const XMLString& localName) const;
  34. Node* setNamedItemNS(Node* arg);
  35. Node* removeNamedItemNS(const XMLString& namespaceURI, const XMLString& localName);
  36. void autoRelease();
  37. protected:
  38. DTDMap(const DocumentType* pDocumentType, unsigned short type);
  39. ~DTDMap();
  40. private:
  41. DTDMap();
  42. const DocumentType* _pDocumentType;
  43. unsigned short _type;
  44. friend class DocumentType;
  45. };
  46. } } // namespace Poco::XML
  47. #endif // DOM_DTDMap_INCLUDED