CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_simple_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;
19} // namespace Schema
20class XmlQualifiedName;
21} // namespace Xml
22} // namespace System
24
25namespace System {
26
27namespace Xml {
28
29namespace Schema {
30
37class ASPOSECPP_SHARED_CLASS XmlSchemaSimpleContentExtension : 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);
71 ASPOSECPP_SHARED_API void set_AnyAttribute(const SharedPtr<XmlSchemaAnyAttribute>& value);
72
74 ASPOSECPP_SHARED_API XmlSchemaSimpleContentExtension();
75
76protected:
77
79 void SetAttributes(const SharedPtr<XmlSchemaObjectCollection>& newAttributes);
80
81 #ifdef ASPOSE_GET_SHARED_MEMBERS
82 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
83 #endif
85
86private:
87
90 SharedPtr<XmlQualifiedName> _baseTypeName;
91
92 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
93
94};
95
96} // namespace Schema
97} // namespace Xml
98} // namespace System
99
100
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 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
Represents the extension element for simple content from XML Schema as specified by the World Wide We...
Definition: xml_schema_simple_content_extension.h:38
XmlSchemaSimpleContentExtension()
Initializes a new instance of the XmlSchemaSimpleContentExtension class.
SharedPtr< XmlSchemaAnyAttribute > get_AnyAttribute()
Returns the XmlSchemaAnyAttribute to be used for the attribute value.
SharedPtr< XmlSchemaObjectCollection > get_Attributes()
Returns the collection of XmlSchemaAttribute and XmlSchemaAttributeGroupRef.
SharedPtr< XmlQualifiedName > get_BaseTypeName()
Returns the name of a built-in data type or simple type from which this type is extended.
void set_AnyAttribute(const SharedPtr< XmlSchemaAnyAttribute > &value)
Sets the XmlSchemaAnyAttribute to be used for the attribute value.
void set_BaseTypeName(const SharedPtr< XmlQualifiedName > &value)
Sets the name of a built-in data type or simple type from which this type is extended.
@ 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