CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_entity.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 XmlLinkedNode;
17class XmlLoader;
18class XmlWriter;
19} // namespace Xml
20} // namespace System
22
23namespace System {
24
25namespace Xml {
26
31class ASPOSECPP_SHARED_CLASS XmlEntity : public XmlNode
32{
33 typedef XmlEntity ThisType;
34 typedef XmlNode BaseType;
35
36 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37 ASPOSECPP_SHARED_RTTI_INFO_DECL();
38
39public:
40
43
44private:
46 friend class XmlLoader;
48
49public:
50
54 ASPOSECPP_SHARED_API bool get_IsReadOnly() override;
57 ASPOSECPP_SHARED_API String get_Name() override;
60 ASPOSECPP_SHARED_API String get_LocalName() override;
63 ASPOSECPP_SHARED_API String get_InnerText() override;
67 ASPOSECPP_SHARED_API void set_InnerText(String value) override;
70 ASPOSECPP_SHARED_API XmlNodeType get_NodeType() override;
73 ASPOSECPP_SHARED_API String get_PublicId();
76 ASPOSECPP_SHARED_API String get_SystemId();
79 ASPOSECPP_SHARED_API String get_NotationName();
82 ASPOSECPP_SHARED_API String get_OuterXml() override;
85 ASPOSECPP_SHARED_API String get_InnerXml() override;
89 ASPOSECPP_SHARED_API void set_InnerXml(String value) override;
92 ASPOSECPP_SHARED_API String get_BaseURI() override;
93
101 ASPOSECPP_SHARED_API SharedPtr<XmlNode> CloneNode(bool deep) override;
104 ASPOSECPP_SHARED_API void WriteTo(const SharedPtr<XmlWriter>& w) override;
107 ASPOSECPP_SHARED_API void WriteContentTo(const SharedPtr<XmlWriter>& w) override;
108
109protected:
110
112 ASPOSECPP_SHARED_API bool get_IsContainer() override;
113 ASPOSECPP_SHARED_API SharedPtr<XmlLinkedNode> get_LastNode() override;
114 ASPOSECPP_SHARED_API void set_LastNode(SharedPtr<XmlLinkedNode> value) override;
115
116 XmlEntity(const String& name, const String& strdata, const String& publicId, const String& systemId, const String& notationName, const SharedPtr<XmlDocument>& doc);
117 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlEntity, CODEPORTING_ARGS(String name, String strdata, String publicId, String systemId, String notationName, SharedPtr<XmlDocument> doc));
118
119 ASPOSECPP_SHARED_API bool IsValidChildType(XmlNodeType type) override;
120 void SetBaseURI(const String& inBaseURI);
122
123 virtual ASPOSECPP_SHARED_API ~XmlEntity();
124
126 #ifdef ASPOSE_GET_SHARED_MEMBERS
127 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
128 #endif
130
131private:
132
133 String _publicId;
134 String _systemId;
135 String _notationName;
136 String _name;
137 String _unparsedReplacementStr;
138 String _baseURI;
139 SharedPtr<XmlLinkedNode> _lastChild;
140 bool _childrenFoliating;
141
142};
143
144} // namespace Xml
145} // namespace System
146
147
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 an entity declaration, such as <!ENTITY... >.
Definition: xml_entity.h:32
void WriteContentTo(const SharedPtr< XmlWriter > &w) override
Saves all the children of the node to the specified XmlWriter. For XmlEntity nodes,...
XmlNodeType get_NodeType() override
Returns the type of the node.
String get_NotationName()
Returns the name of the optional NDATA attribute on the entity declaration.
String get_SystemId()
Returns the value of the system identifier on the entity declaration.
SharedPtr< XmlNode > CloneNode(bool deep) override
Creates a duplicate of this node. Entity nodes cannot be cloned. Calling this method on an XmlEntity ...
void set_InnerXml(String value) override
Sets the markup representing the children of this node.
String get_OuterXml() override
Returns the markup representing this node and all its children.
String get_BaseURI() override
Returns the base Uniform Resource Identifier (URI) of the current node.
bool get_IsReadOnly() override
Returns a value indicating whether the node is read-only.
String get_InnerXml() override
Returns the markup representing the children of this node.
void WriteTo(const SharedPtr< XmlWriter > &w) override
Saves the node to the specified XmlWriter. For XmlEntity nodes, this method has no effect.
String get_LocalName() override
Returns the name of the node without the namespace prefix.
String get_PublicId()
Returns the value of the public identifier on the entity declaration.
String get_Name() override
Returns the name of the node.
String get_InnerText() override
Returns the concatenated values of the entity node and all its children.
void set_InnerText(String value) override
Sets the concatenated values of the entity node and all its children.
Represents a single node in the XML document.
Definition: xml_node.h:75
@ 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