CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_attribute_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 XmlSchemaAnyAttribute;
23class XmlSchemaObject;
24class XmlSchemaObjectCollection;
25class XmlSchemaObjectTable;
26} // namespace Schema
27class XmlQualifiedName;
28} // namespace Xml
29} // namespace System
31
32namespace System {
33
34namespace Xml {
35
36namespace Schema {
37
43class ASPOSECPP_SHARED_CLASS XmlSchemaAttributeGroup : public XmlSchemaAnnotated
44{
47
48 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
49 ASPOSECPP_SHARED_RTTI_INFO_DECL();
50
51public:
52
55
56private:
58 friend class BaseProcessor;
59 friend class Preprocessor;
60 friend class SchemaCollectionCompiler;
61 friend class SchemaCollectionPreprocessor;
62 friend class Compiler;
64
65public:
66
69 ASPOSECPP_SHARED_API String get_Name();
72 ASPOSECPP_SHARED_API void set_Name(const String& value);
82 ASPOSECPP_SHARED_API void set_AnyAttribute(const SharedPtr<XmlSchemaAnyAttribute>& value);
89
91 ASPOSECPP_SHARED_API XmlSchemaAttributeGroup();
92
93protected:
94
96 SharedPtr<XmlSchemaObjectTable> get_AttributeUses();
97 SharedPtr<XmlSchemaAnyAttribute> get_AttributeWildcard();
98 void set_AttributeWildcard(const SharedPtr<XmlSchemaAnyAttribute>& value);
100 void set_Redefined(const SharedPtr<XmlSchemaAttributeGroup>& value);
101 int32_t get_SelfReferenceCount();
102 void set_SelfReferenceCount(int32_t value);
103 ASPOSECPP_SHARED_API String get_NameAttribute() override;
104 ASPOSECPP_SHARED_API void set_NameAttribute(String value) override;
105
106 void SetQualifiedName(const SharedPtr<XmlQualifiedName>& value);
107 ASPOSECPP_SHARED_API SharedPtr<XmlSchemaObject> Clone() override;
108
109 #ifdef ASPOSE_GET_SHARED_MEMBERS
110 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
111 #endif
113
114private:
115
116 String _name;
121 SharedPtr<XmlSchemaObjectTable> _attributeUses;
122 SharedPtr<XmlSchemaAnyAttribute> _attributeWildcard;
123 int32_t _selfReferenceCount;
124
125 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
126
127};
128
129} // namespace Schema
130} // namespace Xml
131} // namespace System
132
133
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 attributeGroup element from the XML Schema as specified by the World Wide Web Consorti...
Definition: xml_schema_attribute_group.h:44
SharedPtr< XmlSchemaAnyAttribute > get_AnyAttribute()
Returns the XmlSchemaAnyAttribute component of the attribute group.
void set_Name(const String &value)
Sets the name of the attribute group.
XmlSchemaAttributeGroup()
Initializes a new instance of the XmlSchemaAttributeGroup class.
SharedPtr< XmlQualifiedName > get_QualifiedName()
Returns the qualified name of the attribute group.
String get_Name()
Returns the name of the attribute group.
void set_AnyAttribute(const SharedPtr< XmlSchemaAnyAttribute > &value)
Sets the XmlSchemaAnyAttribute component of the attribute group.
SharedPtr< XmlSchemaObjectCollection > get_Attributes()
Returns the collection of attributes for the attribute group. Contains XmlSchemaAttribute and XmlSche...
SharedPtr< XmlSchemaAttributeGroup > get_RedefinedAttributeGroup()
Returns the redefined attribute group property from the XML Schema.
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