2013-10-03 17:38:47 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Enums.h *
|
|
|
|
* *
|
|
|
|
* System::Xml Enumerations definition file. *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved. *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _SYSTEM_XML_ENUMS_
|
|
|
|
#define _SYSTEM_XML_ENUMS_
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Xml
|
|
|
|
{
|
|
|
|
struct ConformanceLevel
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
Auto,
|
|
|
|
Fragment,
|
|
|
|
Document
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct EntityHandling
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
ExpandCharEntities = 2,
|
2013-10-03 17:38:47 +02:00
|
|
|
ExpandEntities = 1
|
2013-05-05 18:18:41 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Formatting
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Indented
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct NewLineHandling
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
Replace,
|
|
|
|
Entitize,
|
|
|
|
None
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ReadState
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
Initial,
|
|
|
|
Interactive,
|
|
|
|
Error,
|
|
|
|
EndOfFile,
|
|
|
|
Closed
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ValidationType
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Schema
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WhitespaceHandling
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
All,
|
|
|
|
Significant,
|
|
|
|
None
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WriteState
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
Start,
|
|
|
|
Prolog,
|
|
|
|
Element,
|
|
|
|
Attribute,
|
|
|
|
Content,
|
|
|
|
Closed,
|
|
|
|
Error
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct XmlDateTimeSerializationMode
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
Local,
|
|
|
|
Utc,
|
|
|
|
Unspecified,
|
|
|
|
RoundtripKind
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct XmlNamespaceScope
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
All,
|
|
|
|
ExcludeXml,
|
|
|
|
Local
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct XmlNodeChangedAction
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
Insert,
|
|
|
|
Remove,
|
|
|
|
Change
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct XmlNodeOrder
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
Before,
|
|
|
|
After,
|
|
|
|
Same,
|
|
|
|
Unknown
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct XmlNodeType
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Element,
|
|
|
|
Attribute,
|
|
|
|
Text,
|
|
|
|
CDATA,
|
|
|
|
EntityReference,
|
|
|
|
Entity,
|
|
|
|
ProcessingInstruction,
|
|
|
|
Comment,
|
|
|
|
Document,
|
|
|
|
DocumentType,
|
|
|
|
DocumentFragment,
|
|
|
|
Notation,
|
|
|
|
Whitespace,
|
|
|
|
SignificantWhitespace,
|
|
|
|
EndElement,
|
|
|
|
EndEntity,
|
|
|
|
XmlDeclaration
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct XmlOutputMethod
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
AutoDetect = 3,
|
|
|
|
Xml = 0
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct XmlSpace
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Default,
|
|
|
|
Preserve
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct XmlTokenizedType
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
CDATA,
|
|
|
|
ID,
|
|
|
|
IDREF,
|
|
|
|
IDREFS,
|
|
|
|
ENTITY,
|
|
|
|
ENTITIES,
|
|
|
|
NMTOKEN,
|
|
|
|
NMTOKENS,
|
|
|
|
NOTATION,
|
|
|
|
ENUMERATION,
|
|
|
|
QName,
|
|
|
|
NCName,
|
|
|
|
None
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies the amount of input or output checking that the created System::Xml::XmlReader and
|
|
|
|
* System::Xml::XmlWriter objects perform.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef ConformanceLevel::type ConformanceLevel_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies how the System::Xml::XmlTextReader or System::Xml::XmlValidatingReader handle entities.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef EntityHandling::type EntityHandling_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies formatting options for the System::Xml::XmlTextWriter.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef Formatting::type Formatting_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies how to handle line breaks.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef NewLineHandling::type NewLineHandling_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies the state of the reader.
|
|
|
|
*/
|
|
|
|
typedef ReadState::type ReadState_t;
|
|
|
|
/**
|
|
|
|
* Specifies the type of validation to perform.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef ValidationType::type ValidationType_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies how white space is handled.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef WhitespaceHandling::type WhitespaceHandling_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies the state of the System::Xml::XmlWriter.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef WriteState::type WriteState_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies how to treat the time value when converting between string and System::DateTime.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef XmlDateTimeSerializationMode::type XmlDateTimeSerializationMode_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Defines the namespace scope.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef XmlNamespaceScope::type XmlNamespaceScope_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies the type of node change.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef XmlNodeChangedAction::type XmlNodeChangedAction_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Describes the document order of a node compared to a second node.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef XmlNodeOrder::type XmlNodeOrder_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies the type of node.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef XmlNodeType::type XmlNodeType_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies the method used to serialize the System::Xml::XmlWriter output.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef XmlOutputMethod::type XmlOutputMethod_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Specifies the current xml:space scope.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef XmlSpace::type XmlSpace_t;
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Represents the XML type for the string. This allows the string to be read as a particular XML type, for example
|
|
|
|
* a CDATA section type.
|
|
|
|
*/
|
|
|
|
typedef XmlTokenizedType::type XmlTokenizedType_t;
|
2013-05-05 18:18:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_XML_ENUMS_
|