/src/poco/XML/src/Comment.cpp
Line | Count | Source |
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 | 359k | CharacterData(pOwnerDocument, data) |
27 | 359k | { |
28 | 359k | } |
29 | | |
30 | | |
31 | | Comment::Comment(Document* pOwnerDocument, const Comment& comment): |
32 | 0 | CharacterData(pOwnerDocument, comment) |
33 | 0 | { |
34 | 0 | } |
35 | | |
36 | | |
37 | | Comment::~Comment() |
38 | 359k | { |
39 | 359k | } |
40 | | |
41 | | |
42 | | const XMLString& Comment::nodeName() const |
43 | 0 | { |
44 | 0 | return NODE_NAME; |
45 | 0 | } |
46 | | |
47 | | |
48 | | unsigned short Comment::nodeType() const |
49 | 9.70k | { |
50 | 9.70k | return Node::COMMENT_NODE; |
51 | 9.70k | } |
52 | | |
53 | | |
54 | | Node* Comment::copyNode(bool deep, Document* pOwnerDocument) const |
55 | 0 | { |
56 | 0 | return new Comment(pOwnerDocument, *this); |
57 | 0 | } |
58 | | |
59 | | |
60 | | } } // namespace Poco::XML |