CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_notation.h
1
2
3#pragma once
4
5#include <xml/xml_node_type.h>
6#include <xml/xml_node.h>
7#include <system/string.h>
8
9
11namespace System
12{
13namespace Xml
14{
15class XmlDocument;
16class XmlLoader;
17class XmlWriter;
18} // namespace Xml
19} // namespace System
21
22namespace System {
23
24namespace Xml {
25
30class ASPOSECPP_SHARED_CLASS XmlNotation : public XmlNode
31{
32 typedef XmlNotation ThisType;
33 typedef XmlNode BaseType;
34
35 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
36 ASPOSECPP_SHARED_RTTI_INFO_DECL();
37
38public:
39
42
43private:
45 friend class XmlLoader;
47
48public:
49
52 ASPOSECPP_SHARED_API String get_Name() override;
55 ASPOSECPP_SHARED_API String get_LocalName() override;
58 ASPOSECPP_SHARED_API XmlNodeType get_NodeType() override;
62 ASPOSECPP_SHARED_API bool get_IsReadOnly() override;
65 ASPOSECPP_SHARED_API String get_PublicId();
68 ASPOSECPP_SHARED_API String get_SystemId();
71 ASPOSECPP_SHARED_API String get_OuterXml() override;
74 ASPOSECPP_SHARED_API String get_InnerXml() override;
78 ASPOSECPP_SHARED_API void set_InnerXml(String value) override;
79
87 ASPOSECPP_SHARED_API SharedPtr<XmlNode> CloneNode(bool deep) override;
90 ASPOSECPP_SHARED_API void WriteTo(const SharedPtr<XmlWriter>& w) override;
93 ASPOSECPP_SHARED_API void WriteContentTo(const SharedPtr<XmlWriter>& w) override;
94
95protected:
96
98 XmlNotation(const String& name, const String& publicId, const String& systemId, const SharedPtr<XmlDocument>& doc);
99 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlNotation, CODEPORTING_ARGS(String name, String publicId, String systemId, SharedPtr<XmlDocument> doc));
101
102 virtual ASPOSECPP_SHARED_API ~XmlNotation();
103
105 #ifdef ASPOSE_GET_SHARED_MEMBERS
106 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
107 #endif
109
110private:
111
112 String _publicId;
113 String _systemId;
114 String _name;
115
116};
117
118} // namespace Xml
119} // namespace System
120
121
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 single node in the XML document.
Definition: xml_node.h:75
Represents a notation declaration, such as <!NOTATION... >.
Definition: xml_notation.h:31
String get_PublicId()
Returns the value of the public identifier on the notation declaration.
bool get_IsReadOnly() override
Returns a value indicating whether the node is read-only.
String get_LocalName() override
Returns the name of the current node without the namespace prefix.
String get_OuterXml() override
Returns the markup representing this node and all its children.
SharedPtr< XmlNode > CloneNode(bool deep) override
Creates a duplicate of this node. Notation nodes cannot be cloned. Calling this method on an XmlNotat...
String get_InnerXml() override
Returns the markup representing the children of this node.
void set_InnerXml(String value) override
Sets the markup representing the children of this node.
void WriteContentTo(const SharedPtr< XmlWriter > &w) override
Saves the children of the node to the specified XmlWriter. This method has no effect on XmlNotation n...
XmlNodeType get_NodeType() override
Returns the type of the current node.
String get_Name() override
Returns the name of the current node.
void WriteTo(const SharedPtr< XmlWriter > &w) override
Saves the node to the specified XmlWriter. This method has no effect on XmlNotation nodes.
String get_SystemId()
Returns the value of the system identifier on the notation declaration.
@ 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