3#include <xml/xml_node.h>
4#include <xml/xml_element.h>
5#include <xml/xml_document.h>
6#include <xml/xml_attribute.h>
7#include <xml/i_xml_serializable.h>
8#include <system/type_info.h>
9#include <system/string.h>
10#include <system/shared_ptr.h>
11#include <system/reflection/assembly.h>
12#include <system/object.h>
13#include <system/exceptions.h>
14#include <system/date_time.h>
15#include <system/array.h>
18#include "xml/xml_reader.h"
19#include "xml/xml_qualified_name.h"
20#include "xml/xml_serializer.h"
22namespace System {
namespace Xml {
namespace Serialization {
58 ASPOSECPP_SHARED_API
void CheckReaderCount(int32_t& whileIterations, int32_t& readerCount);
63 if (a !=
nullptr && index < a->get_Length())
75 size = a->get_Length() * 2;
90 if (length == 0 && isNullable)
97 return System::MakeArray<T>(length);
99 if (a->get_Length() == length)
115 ASPOSECPP_SHARED_API
virtual void InitIDs() = 0;
173 ASPOSECPP_SHARED_API int64_t
178#ifdef ASPOSE_GET_SHARED_MEMBERS
180 ASPOSECPP_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
187 int32_t delayedFixupId;
188 int32_t readCount, whileIterationCount;
202 bool TargetReady(
String id);
static void Copy(const ArrayPtr< SrcType > &srcArray, const ArrayPtr< DstType > &dstArray, int64_t count)
Copies the specified number of elements from the source array to the destination array.
Definition: array.h:1116
Forward declaration of Dictionary class.
Definition: dictionary.h:96
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:113
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
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
Represents a particular type and provides information about it.
Definition: type_info.h:109
Service class improving XmlReader experience.
Definition: xml_serialization_reader.h:28
static System::ArrayPtr< uint8_t > ToByteArrayHex(String value)
System::SharedPtr< XmlQualifiedName > ToXmlQualifiedName(String value)
System::SharedPtr< IXmlSerializable > ReadSerializable(System::SharedPtr< IXmlSerializable > serializable)
void UnreferencedObject(String id, System::SharedPtr< Object > o)
Exception CreateMissingIXmlSerializableType(String name, String ns, String clrType)
bool ReadReference(String &fixupReference)
Exception CreateInvalidCastException(const TypeInfo &type, System::SharedPtr< Object > value, String id)
System::ArrayPtr< T > ShrinkArray(System::ArrayPtr< T > a, int length, TypeInfo elementType, bool isNullable)
Definition: xml_serialization_reader.h:88
void UnknownElement(System::SharedPtr< Object > o, System::SharedPtr< XmlElement > elem)
void UnknownNode(System::SharedPtr< Object > o)
System::ArrayPtr< uint8_t > ToByteArrayHex(bool isNull)
bool IsXmlnsAttribute(String name)
static DateTime ToDateTime(String value)
System::SharedPtr< Object > ReadTypedNull(System::SharedPtr< XmlQualifiedName > type)
static DateTime ToDate(String value)
System::SharedPtr< XmlReader > get_Reader()
Exception CreateInvalidCastException(const TypeInfo &type, System::SharedPtr< Object > value)
Exception CreateUnknownNodeException()
void UnknownNode(System::SharedPtr< Object > o, String qnames)
System::SharedPtr< XmlQualifiedName > ReadNullableQualifiedName()
Exception CreateBadDerivationException(String xsdDerived, String nsDerived, String xsdBase, String nsBase, String clrDerived, String clrBase)
static String ToXmlNCName(String value)
System::SharedPtr< Object > ReadReferencedElement(String name, String ns)
System::SharedPtr< XmlDocument > get_Document()
String ReadString(String value, bool trim)
virtual void InitCallbacks()=0
String ReadNullableString()
void Referenced(System::SharedPtr< Object > o)
void AddTarget(String id, System::SharedPtr< Object > o)
static String ToXmlNmToken(String value)
void set_IsReturnValue(bool value)
static DateTime ToTime(String value)
static char16_t ToChar(String value)
int64_t ToEnum(String value, System::SharedPtr< System::Collections::Generic::Dictionary< System::String, int64_t > > h, String typeName)
static String ToXmlNmTokens(String value)
void UnknownElement(System::SharedPtr< Object > o, System::SharedPtr< XmlElement > elem, String qnames)
Exception CreateAbstractTypeException(String name, String ns)
String ReadString(String value)
System::ArrayPtr< uint8_t > ToByteArrayBase64(bool isNull)
System::SharedPtr< Object > ReadReferencedElement()
static System::ArrayPtr< uint8_t > ToByteArrayBase64(String value)
Exception CreateCtorHasSecurityException(String typeName)
System::SharedPtr< XmlDocument > ReadXmlDocument(bool wrapped)
static System::SharedPtr< Reflection::Assembly > ResolveDynamicAssembly(String assemblyFullName)
void ReadReferencedElements()
void Initialize(System::SharedPtr< XmlReader > reader, System::SharedPtr< XmlSerializer > eventSource)
Initializes XmlSerializationReader class.
System::ArrayPtr< T > EnsureArrayIndex(System::ArrayPtr< T > a, int index, System::TypeInfo elementType)
Definition: xml_serialization_reader.h:61
System::SharedPtr< Object > ReadTypedPrimitive(System::SharedPtr< XmlQualifiedName > type)
System::SharedPtr< Object > ReadReferencingElement(String name, String ns, String &fixupReference)
Exception CreateUnknownConstantException(String value, const TypeInfo &enumType)
void ParseWsdlArrayType(System::SharedPtr< XmlAttribute > attr)
String CollapseWhitespace(String value)
System::SharedPtr< Object > ReadReferencingElement(String &fixupReference)
void UnknownAttribute(System::SharedPtr< Object > o, System::SharedPtr< XmlAttribute > attr)
int32_t get_ReaderCount()
void FixupArrayRefs(System::SharedPtr< Object > fixup)
static String ToXmlName(String value)
System::SharedPtr< Object > GetTarget(String id)
System::SharedPtr< XmlQualifiedName > ReadElementQualifiedName()
int32_t GetArrayLength(String name, String ns)
void UnknownAttribute(System::SharedPtr< Object > o, System::SharedPtr< XmlAttribute > attr, String qnames)
System::SharedPtr< Object > ReadReferencingElement(String name, String ns, bool elementCanBeType, String &fixupReference)
System::SharedPtr< XmlNode > ReadXmlNode(bool wrapped)
System::SharedPtr< IXmlSerializable > ReadSerializable(System::SharedPtr< IXmlSerializable > serializable, bool wrappedAny)
Exception CreateInaccessibleConstructorException(String typeName)
Exception CreateUnknownTypeException(System::SharedPtr< XmlQualifiedName > type)
Exception CreateReadOnlyCollectionException(String name)
System::SharedPtr< XmlQualifiedName > GetXsiType()
void set_DecodeName(bool value)
void CheckReaderCount(int32_t &whileIterations, int32_t &readerCount)
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9