| 1 | // | 
|---|---|
| 2 | // Comment.cpp | 
| 3 | // | 
| 4 | // Library: XML | 
| 5 | // Package: DOM | 
| 6 | // Module: DOM | 
| 7 | // | 
| 8 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. | 
| 9 | // and Contributors. | 
| 10 | // | 
| 11 | // SPDX-License-Identifier: BSL-1.0 | 
| 12 | // | 
| 13 | |
| 14 | |
| 15 | #include "Poco/DOM/Comment.h" | 
| 16 | |
| 17 | |
| 18 | namespace Poco { | 
| 19 | namespace XML { | 
| 20 | |
| 21 | |
| 22 | const XMLString Comment::NODE_NAME = toXMLString( "#comment"); | 
| 23 | |
| 24 | |
| 25 | Comment::Comment(Document* pOwnerDocument, const XMLString& data): | 
| 26 | CharacterData(pOwnerDocument, data) | 
| 27 | { | 
| 28 | } | 
| 29 | |
| 30 | |
| 31 | Comment::Comment(Document* pOwnerDocument, const Comment& comment): | 
| 32 | CharacterData(pOwnerDocument, comment) | 
| 33 | { | 
| 34 | } | 
| 35 | |
| 36 | |
| 37 | Comment::~Comment() | 
| 38 | { | 
| 39 | } | 
| 40 | |
| 41 | |
| 42 | const XMLString& Comment::nodeName() const | 
| 43 | { | 
| 44 | return NODE_NAME; | 
| 45 | } | 
| 46 | |
| 47 | |
| 48 | unsigned short Comment::nodeType() const | 
| 49 | { | 
| 50 | return Node::COMMENT_NODE; | 
| 51 | } | 
| 52 | |
| 53 | |
| 54 | Node* Comment::copyNode(bool deep, Document* pOwnerDocument) const | 
| 55 | { | 
| 56 | return new Comment(pOwnerDocument, *this); | 
| 57 | } | 
| 58 | |
| 59 | |
| 60 | } } // namespace Poco::XML | 
| 61 | 
