CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_serializer_namespaces.h
1
2
3#pragma once
4
5#include <system/array.h>
6#include <cstdint>
7
8
10namespace System
11{
12namespace Collections
13{
14namespace Generic
15{
16template <typename, typename> class Dictionary;
17template <typename> class List;
18} // namespace Generic
19} // namespace Collections
20namespace Xml
21{
22namespace Serialization
23{
24class XmlSerializationWriter;
25} // namespace Serialization
26class XmlQualifiedName;
27} // namespace Xml
28} // namespace System
30
31namespace System {
32
33namespace Xml {
34
35namespace Serialization {
36
41class ASPOSECPP_SHARED_CLASS XmlSerializerNamespaces : public System::Object
42{
45
46 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
47 ASPOSECPP_SHARED_RTTI_INFO_DECL();
48
49public:
50
53
54private:
56 friend class XmlSerializationWriter;
58
59public:
60
63 ASPOSECPP_SHARED_API int32_t get_Count();
67
69 ASPOSECPP_SHARED_API XmlSerializerNamespaces();
72 ASPOSECPP_SHARED_API XmlSerializerNamespaces(const SharedPtr<XmlSerializerNamespaces>& namespaces);
75 ASPOSECPP_SHARED_API XmlSerializerNamespaces(const ArrayPtr<SharedPtr<XmlQualifiedName>>& namespaces);
76
80 ASPOSECPP_SHARED_API void Add(const String& prefix, const String& ns);
84
85protected:
86
88 void AddInternal(const String& prefix, const String& ns);
89 String LookupPrefix(const String& ns);
91 #ifdef ASPOSE_GET_SHARED_MEMBERS
92 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
93 #endif
94
95
96private:
97
99
100};
101
102} // namespace Serialization
103} // namespace Xml
104} // namespace System
105
106
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
Service class improving XmlWriter experience.
Definition: xml_serialization_writer.h:28
Contains the XML namespaces and prefixes that the Serialization::XmlSerializer uses to generate quali...
Definition: xml_serializer_namespaces.h:42
ArrayPtr< SharedPtr< XmlQualifiedName > > ToArray()
Returns the array of prefix and namespace pairs in an Serialization::XmlSerializerNamespaces object.
int32_t get_Count()
Returns the number of prefix and namespace pairs in the collection.
XmlSerializerNamespaces(const ArrayPtr< SharedPtr< XmlQualifiedName > > &namespaces)
Initializes a new instance of the Serialization::XmlSerializerNamespaces class.
void Add(const String &prefix, const String &ns)
Adds a prefix and namespace pair to an Serialization::XmlSerializerNamespaces object.
void set_Namespaces(const SharedPtr< Collections::Generic::Dictionary< String, String > > &value)
XmlSerializerNamespaces()
Initializes a new instance of the Serialization::XmlSerializerNamespaces class.
SharedPtr< Collections::Generic::Dictionary< String, String > > get_Namespaces()
SharedPtr< Collections::Generic::List< SharedPtr< XmlQualifiedName > > > get_NamespaceList()
XmlSerializerNamespaces(const SharedPtr< XmlSerializerNamespaces > &namespaces)
Initializes a new instance of the Serialization::XmlSerializerNamespaces class, using the specified i...
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:18
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9