CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_complex_content_extension.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_content.h>
6#include <system/shared_ptr.h>
7
8
10namespace System
11{
12namespace Xml
13{
14namespace Schema
15{
16class XmlSchemaAnyAttribute;
17class XmlSchemaComplexType;
18class XmlSchemaObjectCollection;
19class XmlSchemaParticle;
20} // namespace Schema
21class XmlQualifiedName;
22} // namespace Xml
23} // namespace System
25
26namespace System {
27
28namespace Xml {
29
30namespace Schema {
31
37class ASPOSECPP_SHARED_CLASS XmlSchemaComplexContentExtension : public XmlSchemaContent
38{
41
42 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
43 ASPOSECPP_SHARED_RTTI_INFO_DECL();
44
45public:
46
49
50private:
52 friend class XmlSchemaComplexType;
54
55public:
56
62 ASPOSECPP_SHARED_API void set_BaseTypeName(const SharedPtr<XmlQualifiedName>& value);
68 ASPOSECPP_SHARED_API void set_Particle(const SharedPtr<XmlSchemaParticle>& value);
78 ASPOSECPP_SHARED_API void set_AnyAttribute(const SharedPtr<XmlSchemaAnyAttribute>& value);
79
81 ASPOSECPP_SHARED_API XmlSchemaComplexContentExtension();
82
83protected:
84
86 void SetAttributes(const SharedPtr<XmlSchemaObjectCollection>& newAttributes);
87
88 #ifdef ASPOSE_GET_SHARED_MEMBERS
89 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
90 #endif
92
93private:
94
98 SharedPtr<XmlQualifiedName> _baseTypeName;
99
100 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
101
102};
103
104} // namespace Schema
105} // namespace Xml
106} // namespace System
107
108
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
The base class for any element that can contain annotation elements.
Definition: xml_schema_annotated.h:35
Represents the extension element from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_complex_content_extension.h:38
void set_BaseTypeName(const SharedPtr< XmlQualifiedName > &value)
Sets the name of the complex type from which this type is derived by extension.
SharedPtr< XmlSchemaObjectCollection > get_Attributes()
Returns the collection of attributes for the complex content. Contains XmlSchemaAttribute and XmlSche...
SharedPtr< XmlSchemaAnyAttribute > get_AnyAttribute()
Returns the XmlSchemaAnyAttribute component of the complex content model.
SharedPtr< XmlSchemaParticle > get_Particle()
Returns one of the XmlSchemaGroupRef, XmlSchemaChoice, XmlSchemaAll, or XmlSchemaSequence classes.
XmlSchemaComplexContentExtension()
Initializes a new instance of the XmlSchemaComplexContentExtension class.
void set_AnyAttribute(const SharedPtr< XmlSchemaAnyAttribute > &value)
Sets the XmlSchemaAnyAttribute component of the complex content model.
void set_Particle(const SharedPtr< XmlSchemaParticle > &value)
Sets one of the XmlSchemaGroupRef, XmlSchemaChoice, XmlSchemaAll, or XmlSchemaSequence classes.
SharedPtr< XmlQualifiedName > get_BaseTypeName()
Returns the name of the complex type from which this type is derived by extension.
Represents the complexType element from XML Schema as specified by the World Wide Web Consortium (W3C...
Definition: xml_schema_complex_type.h:64
An abstract class for schema content.
Definition: xml_schema_content.h:16
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