| 1 | // |
| 2 | // Comment.h |
| 3 | // |
| 4 | // Library: XML |
| 5 | // Package: DOM |
| 6 | // Module: DOM |
| 7 | // |
| 8 | // Definition of the DOM Comment 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 | |
| 16 | |
| 17 | #ifndef DOM_Comment_INCLUDED |
| 18 | #define |
| 19 | |
| 20 | |
| 21 | #include "Poco/XML/XML.h" |
| 22 | #include "Poco/DOM/CharacterData.h" |
| 23 | #include "Poco/XML/XMLString.h" |
| 24 | |
| 25 | |
| 26 | namespace Poco { |
| 27 | namespace XML { |
| 28 | |
| 29 | |
| 30 | class XML_API : public CharacterData |
| 31 | /// This interface inherits from CharacterData and represents the content of |
| 32 | /// a comment, i.e., all the characters between the starting '<!--' and ending |
| 33 | /// '-->'. Note that this is the definition of a comment in XML, and, in practice, |
| 34 | /// HTML, although some HTML tools may implement the full SGML comment structure. |
| 35 | { |
| 36 | public: |
| 37 | // Node |
| 38 | const XMLString& () const; |
| 39 | unsigned short () const; |
| 40 | |
| 41 | protected: |
| 42 | (Document* pOwnerDocument, const XMLString& data); |
| 43 | (Document* pOwnerDocument, const Comment& ); |
| 44 | (); |
| 45 | |
| 46 | Node* (bool deep, Document* pOwnerDocument) const; |
| 47 | |
| 48 | private: |
| 49 | static const XMLString ; |
| 50 | |
| 51 | friend class Document; |
| 52 | }; |
| 53 | |
| 54 | |
| 55 | } } // namespace Poco::XML |
| 56 | |
| 57 | |
| 58 | #endif // DOM_Comment_INCLUDED |
| 59 | |