CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_whitespace.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 XmlWhitespace : public XmlCharacterData
36{
37 typedef XmlWhitespace 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;
67 ASPOSECPP_SHARED_API String get_Value() override;
71 ASPOSECPP_SHARED_API void set_Value(String value) override;
74 ASPOSECPP_SHARED_API SharedPtr<XmlNode> get_PreviousText() override;
75
81 ASPOSECPP_SHARED_API SharedPtr<XmlNode> CloneNode(bool deep) override;
84 ASPOSECPP_SHARED_API void WriteTo(const SharedPtr<XmlWriter>& w) override;
87 ASPOSECPP_SHARED_API void WriteContentTo(const SharedPtr<XmlWriter>& w) override;
88
89protected:
90
92 ASPOSECPP_SHARED_API SharedPtr<XmlNode> get_ParentNodeInternal() override;
93 ASPOSECPP_SHARED_API XPath::XPathNodeType get_XPNodeType() override;
94 ASPOSECPP_SHARED_API bool get_IsText() override;
96
100 ASPOSECPP_SHARED_API XmlWhitespace(const String& strData, const SharedPtr<XmlDocument>& doc);
101 ASPOSECPP_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlWhitespace, CODEPORTING_ARGS(String strData, SharedPtr<XmlDocument> doc));
102
103 virtual ASPOSECPP_SHARED_API ~XmlWhitespace();
104
105};
106
107} // namespace Xml
108} // namespace System
109
110
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 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
Represents white space in element content.
Definition: xml_whitespace.h:36
XmlWhitespace(const String &strData, const SharedPtr< XmlDocument > &doc)
Initializes a new instance of the XmlWhitespace class.
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlWhitespace, CODEPORTING_ARGS(String strData, SharedPtr< XmlDocument > doc))
SharedPtr< XmlNode > get_PreviousText() override
Returns the text node that immediately precedes this node.
XmlNodeType get_NodeType() override
Returns the type of the node.
String get_Name() override
Returns the qualified name of the node.
void set_Value(String value) override
Sets the value of the node.
void WriteContentTo(const SharedPtr< XmlWriter > &w) override
Saves all the children of the node to the specified XmlWriter.
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.
String get_Value() override
Returns the value of the node.
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