CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_group.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_annotated.h>
6#include <system/string.h>
7#include <cstdint>
8
9
11namespace System
12{
13namespace Xml
14{
15namespace Schema
16{
17class BaseProcessor;
18class Compiler;
19class Preprocessor;
20class SchemaCollectionCompiler;
21class SchemaCollectionPreprocessor;
22class XmlSchema;
23class XmlSchemaGroupBase;
24class XmlSchemaObject;
25class XmlSchemaParticle;
26} // namespace Schema
27class XmlQualifiedName;
28} // namespace Xml
29} // namespace System
31
32namespace System {
33
34namespace Xml {
35
36namespace Schema {
37
44class ASPOSECPP_SHARED_CLASS XmlSchemaGroup : public XmlSchemaAnnotated
45{
48
49 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
50 ASPOSECPP_SHARED_RTTI_INFO_DECL();
51
52public:
53
56
57private:
59 friend class BaseProcessor;
60 friend class Preprocessor;
61 friend class SchemaCollectionCompiler;
62 friend class SchemaCollectionPreprocessor;
63 friend class Compiler;
64 friend class XmlSchema;
66
67public:
68
71 ASPOSECPP_SHARED_API String get_Name();
74 ASPOSECPP_SHARED_API void set_Name(const String& value);
80 ASPOSECPP_SHARED_API void set_Particle(const SharedPtr<XmlSchemaGroupBase>& value);
84
86 ASPOSECPP_SHARED_API XmlSchemaGroup();
87
88protected:
89
91 SharedPtr<XmlSchemaParticle> get_CanonicalParticle();
92 void set_CanonicalParticle(const SharedPtr<XmlSchemaParticle>& value);
93 SharedPtr<XmlSchemaGroup> get_Redefined();
94 void set_Redefined(const SharedPtr<XmlSchemaGroup>& value);
95 int32_t get_SelfReferenceCount();
96 void set_SelfReferenceCount(int32_t value);
97 ASPOSECPP_SHARED_API String get_NameAttribute() override;
98 ASPOSECPP_SHARED_API void set_NameAttribute(String value) override;
99
100 void SetQualifiedName(const SharedPtr<XmlQualifiedName>& value);
101 ASPOSECPP_SHARED_API SharedPtr<XmlSchemaObject> Clone() override;
102 SharedPtr<XmlSchemaObject> Clone(const SharedPtr<XmlSchema>& parentSchema);
103
104 #ifdef ASPOSE_GET_SHARED_MEMBERS
105 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
106 #endif
108
109private:
110
111 String _name;
113 SharedPtr<XmlSchemaParticle> _canonicalParticle;
115 SharedPtr<XmlSchemaGroup> _redefined;
116 int32_t _selfReferenceCount;
117
118 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
119
120};
121
122} // namespace Schema
123} // namespace Xml
124} // namespace System
125
126
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
The base class for any element that can contain annotation elements.
Definition: xml_schema_annotated.h:35
Represents the group element from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_group.h:45
XmlSchemaGroup()
Initializes a new instance of the XmlSchemaGroup class.
void set_Particle(const SharedPtr< XmlSchemaGroupBase > &value)
Sets one of the XmlSchemaChoice, XmlSchemaAll, or XmlSchemaSequence classes.
SharedPtr< XmlQualifiedName > get_QualifiedName()
Returns the qualified name of the schema group.
void set_Name(const String &value)
Sets the name of the schema group.
String get_Name()
Returns the name of the schema group.
SharedPtr< XmlSchemaGroupBase > get_Particle()
Returns one of the XmlSchemaChoice, XmlSchemaAll, or XmlSchemaSequence classes.
An in-memory representation of an XML Schema, as specified in the World Wide Web Consortium (W3C) XML...
Definition: xml_schema.h:78
Represents the root class for the Xml schema object model hierarchy and serves as a base class for cl...
Definition: xml_schema_object.h:47
@ Schema
Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas....
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9