CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_parser_context.h
1
2
3#pragma once
4
5#include <xml/xml_space.h>
6#include <system/string.h>
7
8
10namespace System
11{
12namespace Text
13{
14class Encoding;
15} // namespace Text
16namespace Xml
17{
18class XmlNamespaceManager;
19class XmlNameTable;
20class XmlTextReaderImpl;
21} // namespace Xml
22} // namespace System
24
25namespace System {
26
27namespace Xml {
28
33class ASPOSECPP_SHARED_CLASS XmlParserContext : public System::Object
34{
37
38 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
39 ASPOSECPP_SHARED_RTTI_INFO_DECL();
40
41public:
42
45
46private:
48 friend class XmlTextReaderImpl;
50
51public:
52
55 ASPOSECPP_SHARED_API SharedPtr<XmlNameTable> get_NameTable();
58 ASPOSECPP_SHARED_API void set_NameTable(const SharedPtr<XmlNameTable>& value);
64 ASPOSECPP_SHARED_API void set_NamespaceManager(const SharedPtr<XmlNamespaceManager>& value);
67 ASPOSECPP_SHARED_API String get_DocTypeName();
70 ASPOSECPP_SHARED_API void set_DocTypeName(const String& value);
73 ASPOSECPP_SHARED_API String get_PublicId();
76 ASPOSECPP_SHARED_API void set_PublicId(const String& value);
79 ASPOSECPP_SHARED_API String get_SystemId();
82 ASPOSECPP_SHARED_API void set_SystemId(const String& value);
85 ASPOSECPP_SHARED_API String get_BaseURI();
88 ASPOSECPP_SHARED_API void set_BaseURI(const String& value);
92 ASPOSECPP_SHARED_API String get_InternalSubset();
95 ASPOSECPP_SHARED_API void set_InternalSubset(const String& value);
98 ASPOSECPP_SHARED_API String get_XmlLang();
101 ASPOSECPP_SHARED_API void set_XmlLang(const String& value);
104 ASPOSECPP_SHARED_API System::Xml::XmlSpace get_XmlSpace();
107 ASPOSECPP_SHARED_API void set_XmlSpace(System::Xml::XmlSpace value);
113 ASPOSECPP_SHARED_API void set_Encoding(const SharedPtr<System::Text::Encoding>& value);
114
124 ASPOSECPP_SHARED_API XmlParserContext(const SharedPtr<XmlNameTable>& nt, const SharedPtr<XmlNamespaceManager>& nsMgr, const String& xmlLang, System::Xml::XmlSpace xmlSpace);
135 ASPOSECPP_SHARED_API XmlParserContext(const SharedPtr<XmlNameTable>& nt, const SharedPtr<XmlNamespaceManager>& nsMgr, const String& xmlLang, System::Xml::XmlSpace xmlSpace, const SharedPtr<System::Text::Encoding>& enc);
150 ASPOSECPP_SHARED_API XmlParserContext(const SharedPtr<XmlNameTable>& nt, const SharedPtr<XmlNamespaceManager>& nsMgr, const String& docTypeName, const String& pubId, const String& sysId, const String& internalSubset, const String& baseURI, const String& xmlLang, System::Xml::XmlSpace xmlSpace);
166 ASPOSECPP_SHARED_API XmlParserContext(const SharedPtr<XmlNameTable>& nt, const SharedPtr<XmlNamespaceManager>& nsMgr, const String& docTypeName, const String& pubId, const String& sysId, const String& internalSubset, const String& baseURI, const String& xmlLang, System::Xml::XmlSpace xmlSpace, const SharedPtr<System::Text::Encoding>& enc);
167
168protected:
169
171 bool get_HasDtdInfo();
172
173 #ifdef ASPOSE_GET_SHARED_MEMBERS
174 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
175 #endif
177
178private:
179
182 String _docTypeName;
183 String _pubId;
184 String _sysId;
185 String _internalSubset;
186 String _xmlLang;
187 System::Xml::XmlSpace _xmlSpace;
188 String _baseURI;
190
191};
192
193} // namespace Xml
194} // namespace System
195
196
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
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 all the context information required by the XmlReader to parse an XML fragment.
Definition: xml_parser_context.h:34
XmlParserContext(const SharedPtr< XmlNameTable > &nt, const SharedPtr< XmlNamespaceManager > &nsMgr, const String &xmlLang, System::Xml::XmlSpace xmlSpace, const SharedPtr< System::Text::Encoding > &enc)
Initializes a new instance of the XmlParserContext class with the specified XmlNameTable,...
SharedPtr< System::Text::Encoding > get_Encoding()
Returns the encoding type.
void set_NameTable(const SharedPtr< XmlNameTable > &value)
Sets the XmlNameTable used to atomize strings. For more information on atomized strings,...
XmlParserContext(const SharedPtr< XmlNameTable > &nt, const SharedPtr< XmlNamespaceManager > &nsMgr, const String &xmlLang, System::Xml::XmlSpace xmlSpace)
Initializes a new instance of the XmlParserContext class with the specified XmlNameTable,...
String get_PublicId()
Returns the public identifier.
void set_XmlLang(const String &value)
Sets the current xml:lang scope.
void set_Encoding(const SharedPtr< System::Text::Encoding > &value)
Sets the encoding type.
void set_NamespaceManager(const SharedPtr< XmlNamespaceManager > &value)
Sets the XmlNamespaceManager.
XmlParserContext(const SharedPtr< XmlNameTable > &nt, const SharedPtr< XmlNamespaceManager > &nsMgr, const String &docTypeName, const String &pubId, const String &sysId, const String &internalSubset, const String &baseURI, const String &xmlLang, System::Xml::XmlSpace xmlSpace, const SharedPtr< System::Text::Encoding > &enc)
Initializes a new instance of the XmlParserContext class with the specified XmlNameTable,...
String get_InternalSubset()
Returns the internal DTD subset.
void set_BaseURI(const String &value)
Sets the base URI.
void set_PublicId(const String &value)
Sets the public identifier.
String get_SystemId()
Returns the system identifier.
void set_DocTypeName(const String &value)
Sets the name of the document type declaration.
SharedPtr< XmlNameTable > get_NameTable()
Returns the XmlNameTable used to atomize strings. For more information on atomized strings,...
System::Xml::XmlSpace get_XmlSpace()
Returns the current xml:space scope.
void set_SystemId(const String &value)
Sets the system identifier.
void set_XmlSpace(System::Xml::XmlSpace value)
Sets the current xml:space scope.
void set_InternalSubset(const String &value)
Sets the internal DTD subset.
String get_XmlLang()
Returns the current xml:lang scope.
XmlParserContext(const SharedPtr< XmlNameTable > &nt, const SharedPtr< XmlNamespaceManager > &nsMgr, const String &docTypeName, const String &pubId, const String &sysId, const String &internalSubset, const String &baseURI, const String &xmlLang, System::Xml::XmlSpace xmlSpace)
Initializes a new instance of the XmlParserContext class with the specified XmlNameTable,...
String get_DocTypeName()
Returns the name of the document type declaration.
String get_BaseURI()
Returns the base URI.
SharedPtr< XmlNamespaceManager > get_NamespaceManager()
Returns the XmlNamespaceManager.
@ Text
Defines color adjustment information for text.
XmlSpace
Specifies the current xml:space scope.
Definition: xml_space.h:15
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9