CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_cdata_section.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 XmlCDataSection : public XmlCharacterData
36{
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;
67 ASPOSECPP_SHARED_API SharedPtr<XmlNode> get_PreviousText() override;
68
75 ASPOSECPP_SHARED_API SharedPtr<XmlNode> CloneNode(bool deep) override;
78 ASPOSECPP_SHARED_API void WriteTo(const SharedPtr<XmlWriter>& w) override;
81 ASPOSECPP_SHARED_API void WriteContentTo(const SharedPtr<XmlWriter>& w) override;
82
83protected:
84
86 ASPOSECPP_SHARED_API SharedPtr<XmlNode> get_ParentNodeInternal() override;
87 ASPOSECPP_SHARED_API XPath::XPathNodeType get_XPNodeType() override;
88 ASPOSECPP_SHARED_API bool get_IsText() override;
90
94 ASPOSECPP_SHARED_API XmlCDataSection(const String& data, const SharedPtr<XmlDocument>& doc);
95 ASPOSECPP_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlCDataSection, CODEPORTING_ARGS(const String& data, const SharedPtr<XmlDocument>& doc));
96
97 virtual ASPOSECPP_SHARED_API ~XmlCDataSection();
98
99};
100
101} // namespace Xml
102} // namespace System
103
104
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
Represents a CDATA section.
Definition: xml_cdata_section.h:36
void WriteTo(const SharedPtr< XmlWriter > &w) override
Saves the node to the specified XmlWriter.
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlCDataSection, CODEPORTING_ARGS(const String &data, const SharedPtr< XmlDocument > &doc))
String get_LocalName() override
Returns the local name of the node.
void WriteContentTo(const SharedPtr< XmlWriter > &w) override
Saves the children of the node to the specified XmlWriter.
XmlCDataSection(const String &data, const SharedPtr< XmlDocument > &doc)
Initializes a new instance of the XmlCDataSection class.
SharedPtr< XmlNode > CloneNode(bool deep) override
Creates a duplicate of this node.
SharedPtr< XmlNode > get_PreviousText() override
Returns the text node that immediately precedes this node.
XmlNodeType get_NodeType() override
Returns the type of the current node.
String get_Name() override
Returns the qualified name of the node.
Provides text manipulation methods that are used by several classes.
Definition: xml_character_data.h:36
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
Definition: xml_document.h:100
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