CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_document_type.h
1
2
3#pragma once
4
5#include <xml/xml_node_type.h>
6#include <xml/xml_linked_node.h>
7#include <system/string.h>
8
9
11namespace System
12{
13namespace Xml
14{
15namespace Schema
16{
17class SchemaInfo;
18} // namespace Schema
19class XmlDocument;
20class XmlLoader;
21class XmlNamedNodeMap;
22class XmlNode;
23class XmlWriter;
24} // namespace Xml
25} // namespace System
27
28namespace System {
29
30namespace Xml {
31
36class ASPOSECPP_SHARED_CLASS XmlDocumentType : public XmlLinkedNode
37{
39 typedef XmlLinkedNode BaseType;
40
41 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
42 ASPOSECPP_SHARED_RTTI_INFO_DECL();
43
44public:
45
48
49private:
51 friend class XmlDocument;
52 friend class XmlLoader;
54
55public:
56
59 ASPOSECPP_SHARED_API String get_Name() override;
62 ASPOSECPP_SHARED_API String get_LocalName() override;
65 ASPOSECPP_SHARED_API XmlNodeType get_NodeType() override;
69 ASPOSECPP_SHARED_API bool get_IsReadOnly() override;
78 ASPOSECPP_SHARED_API String get_PublicId();
81 ASPOSECPP_SHARED_API String get_SystemId();
84 ASPOSECPP_SHARED_API String get_InternalSubset();
85
91 ASPOSECPP_SHARED_API SharedPtr<XmlNode> CloneNode(bool deep) override;
94 ASPOSECPP_SHARED_API void WriteTo(const SharedPtr<XmlWriter>& w) override;
97 ASPOSECPP_SHARED_API void WriteContentTo(const SharedPtr<XmlWriter>& w) override;
98
99protected:
100
102 bool get_ParseWithNamespaces();
103 void set_ParseWithNamespaces(bool value);
105 void set_DtdSchemaInfo(const SharedPtr<System::Xml::Schema::SchemaInfo>& value);
107
114 ASPOSECPP_SHARED_API XmlDocumentType(const String& name, const String& publicId, const String& systemId, const String& internalSubset, const SharedPtr<XmlDocument>& doc);
115
116 ASPOSECPP_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlDocumentType, CODEPORTING_ARGS(String name, String publicId, String systemId, String internalSubset, SharedPtr<XmlDocument> doc));
117
118 virtual ASPOSECPP_SHARED_API ~XmlDocumentType();
119
121 #ifdef ASPOSE_GET_SHARED_MEMBERS
122 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
123 #endif
124
125 #ifdef __DBG_FOR_EACH_MEMBER
126public:
129 ASPOSECPP_SHARED_API void DBG_for_each_member(DBG::for_each_member_visitor& visitor) const override;
132 const char* DBG_class_name() const override { return "XmlDocumentType"; }
133 #endif
135
136private:
137
138 String _name;
139 String _publicId;
140 String _systemId;
141 String _internalSubset;
142 bool _namespaces;
146
147};
148
149} // namespace Xml
150} // namespace System
151
152
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:125
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
Definition: xml_document.h:100
Represents the document type declaration.
Definition: xml_document_type.h:37
String get_SystemId()
Returns the value of the system identifier on the DOCTYPE declaration.
SharedPtr< XmlNode > CloneNode(bool deep) override
Creates a duplicate of this node.
bool get_IsReadOnly() override
Returns a value indicating whether the node is read-only.
void WriteTo(const SharedPtr< XmlWriter > &w) override
Saves the node to the specified XmlWriter.
SharedPtr< XmlNamedNodeMap > get_Notations()
Returns the collection of XmlNotation nodes present in the document type declaration.
String get_InternalSubset()
Returns the value of the document type definition (DTD) internal subset on the DOCTYPE declaration.
String get_LocalName() override
Returns the local name of the node.
XmlNodeType get_NodeType() override
Returns the type of the current node.
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlDocumentType, CODEPORTING_ARGS(String name, String publicId, String systemId, String internalSubset, SharedPtr< XmlDocument > doc))
SharedPtr< XmlNamedNodeMap > get_Entities()
Returns the collection of XmlEntity nodes declared in the document type declaration.
XmlDocumentType(const String &name, const String &publicId, const String &systemId, const String &internalSubset, const SharedPtr< XmlDocument > &doc)
Initializes a new instance of the XmlDocumentType class.
String get_PublicId()
Returns the value of the public identifier on the DOCTYPE declaration.
String get_Name() override
Returns the qualified name of the node.
void WriteContentTo(const SharedPtr< XmlWriter > &w) override
Saves all the children of the node to the specified XmlWriter. For XmlDocumentType nodes,...
Returns the node immediately preceding or following this node.
Definition: xml_linked_node.h:32
@ Schema
Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas....
@ 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