CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_comment.h
1
2
3#pragma once
4
5#include <xml/xml_node_type.h>
6#include <xml/xml_character_data.h>
7
8
10namespace System
11{
12class String;
13namespace Xml
14{
15class XmlDocument;
16class XmlLoader;
17class XmlNode;
18class XmlWriter;
19namespace XPath
20{
21enum class XPathNodeType;
22} // namespace XPath
23} // namespace Xml
24} // namespace System
26
27namespace System {
28
29namespace Xml {
30
35class ASPOSECPP_SHARED_CLASS XmlComment : public XmlCharacterData
36{
37 typedef XmlComment ThisType;
39
40 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
41 ASPOSECPP_SHARED_RTTI_INFO_DECL();
42
43public:
44
47
48private:
50 friend class XmlDocument;
51 friend class XmlLoader;
53
54public:
55
58 ASPOSECPP_SHARED_API String get_Name() override;
61 ASPOSECPP_SHARED_API String get_LocalName() override;
64 ASPOSECPP_SHARED_API XmlNodeType get_NodeType() override;
65
72 ASPOSECPP_SHARED_API SharedPtr<XmlNode> CloneNode(bool deep) override;
75 ASPOSECPP_SHARED_API void WriteTo(const SharedPtr<XmlWriter>& w) override;
79 ASPOSECPP_SHARED_API void WriteContentTo(const SharedPtr<XmlWriter>& w) override;
80
81protected:
82
84 ASPOSECPP_SHARED_API XPath::XPathNodeType get_XPNodeType() override;
86
90 ASPOSECPP_SHARED_API XmlComment(const String& comment, const SharedPtr<XmlDocument>& doc);
91
92 ASPOSECPP_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlComment, CODEPORTING_ARGS(const String& comment, const SharedPtr<XmlDocument>& doc));
93
94 virtual ASPOSECPP_SHARED_API ~XmlComment();
95
96};
97
98} // namespace Xml
99} // namespace System
100
101
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Provides text manipulation methods that are used by several classes.
Definition: xml_character_data.h:36
Represents the content of an XML comment.
Definition: xml_comment.h:36
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlComment, CODEPORTING_ARGS(const String &comment, const SharedPtr< XmlDocument > &doc))
void WriteContentTo(const SharedPtr< XmlWriter > &w) override
Saves all the children of the node to the specified XmlWriter. Because comment nodes do not have chil...
XmlComment(const String &comment, const SharedPtr< XmlDocument > &doc)
Initializes a new instance of the XmlComment class.
String get_Name() override
Returns the qualified name of the node.
void WriteTo(const SharedPtr< XmlWriter > &w) override
Saves the node to the specified XmlWriter.
SharedPtr< XmlNode > CloneNode(bool deep) override
Creates a duplicate of this node.
String get_LocalName() override
Returns the local name of the node.
XmlNodeType get_NodeType() override
Returns the type of the current node.
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
Definition: xml_document.h:100
Returns the node immediately preceding or following this node.
Definition: xml_linked_node.h:32
XPathNodeType
Defines the XPath node types that can be returned from the XPathNavigator class.
Definition: xpath_node_type.h:17
@ Xml
Serialize according to the XML 1.0 rules.
XmlNodeType
Specifies the type of node.
Definition: xml_node_type.h:15
Definition: db_command.h:9