XmlArchive

This class is a concrete implementation of the Archive interface. This archive uses XML as the final format for the serialized data.

final
class XmlArchive : ArchiveBase!(U)(
U = char
) {}

Constructors

this
this(ErrorCallback errorCallback)

Creates a new instance of this class with the give error callback.

Members

Functions

archive
void archive(string value, string key, Id id)
void archive(wstring value, string key, Id id)
void archive(dstring value, string key, Id id)
void archive(bool value, string key, Id id)
void archive(byte value, string key, Id id)
void archive(char value, string key, Id id)
void archive(dchar value, string key, Id id)
void archive(double value, string key, Id id)
void archive(float value, string key, Id id)
void archive(int value, string key, Id id)
void archive(long value, string key, Id id)
void archive(real value, string key, Id id)
void archive(short value, string key, Id id)
void archive(ubyte value, string key, Id id)
void archive(uint value, string key, Id id)
void archive(ulong value, string key, Id id)
void archive(ushort value, string key, Id id)
void archive(wchar value, string key, Id id)

Archives the given value.

archiveArray
void archiveArray(Array array, string type, string key, Id id, void delegate() dg)

Archives an array.

archiveAssociativeArray
void archiveAssociativeArray(string keyType, string valueType, size_t length, string key, Id id, void delegate() dg)

Archives an associative array.

archiveAssociativeArrayKey
void archiveAssociativeArrayKey(string key, void delegate() dg)

Archives an associative array key.

archiveAssociativeArrayValue
void archiveAssociativeArrayValue(string key, void delegate() dg)

Archives an associative array value.

archiveBaseClass
void archiveBaseClass(string type, string key, Id id)

Archives a base class.

archiveEnum
void archiveEnum(bool value, string type, string key, Id id)
void archiveEnum(byte value, string type, string key, Id id)
void archiveEnum(char value, string type, string key, Id id)
void archiveEnum(dchar value, string type, string key, Id id)
void archiveEnum(int value, string type, string key, Id id)
void archiveEnum(long value, string type, string key, Id id)
void archiveEnum(short value, string type, string key, Id id)
void archiveEnum(ubyte value, string type, string key, Id id)
void archiveEnum(uint value, string type, string key, Id id)
void archiveEnum(ulong value, string type, string key, Id id)
void archiveEnum(ushort value, string type, string key, Id id)
void archiveEnum(wchar value, string type, string key, Id id)

Archives the given value.

archiveNull
void archiveNull(string type, string key)

Archives a null pointer or reference.

archiveObject
void archiveObject(string runtimeType, string type, string key, Id id, void delegate() dg)

Archives an object, either a class or an interface.

archivePointer
void archivePointer(string key, Id id, void delegate() dg)

Archives a pointer.

archiveReference
void archiveReference(string key, Id id)

Archives a reference.

archiveSlice
void archiveSlice(Slice slice, Id sliceId, Id arrayId)

Archives a slice.

archiveStruct
void archiveStruct(string type, string key, Id id, void delegate() dg)

Archives a struct.

beginArchiving
void beginArchiving()

Starts the archiving process. Call this method before archiving any values.

beginUnarchiving
void beginUnarchiving(UntypedData untypedData)

Begins the unarchiving process. Call this method before unarchiving any values.

data
Data data()

Returns the data stored in the archive in an typed form.

postProcessArray
void postProcessArray(Id id)

Performs post processing of the array associated with the given id.

reset
void reset()

Resets the archive. This resets the archive in a state making it ready to start a new archiving process.

unarchiveArray
Id unarchiveArray(string key, void delegate(size_t) dg)

Unarchives the value associated with the given key as an array.

unarchiveArray
void unarchiveArray(Id id, void delegate(size_t) dg)

Unarchives the value associated with the given id as an array.

unarchiveAssociativeArray
Id unarchiveAssociativeArray(string key, void delegate(size_t length) dg)

Unarchives the value associated with the given id as an associative array.

unarchiveAssociativeArrayKey
void unarchiveAssociativeArrayKey(string key, void delegate() dg)

Unarchives an associative array key.

unarchiveAssociativeArrayValue
void unarchiveAssociativeArrayValue(string key, void delegate() dg)

Unarchives an associative array value.

unarchiveBaseClass
void unarchiveBaseClass(string key)

Unarchives the base class associated with the given key.

unarchiveBool
bool unarchiveBool(string key, Id id)

Unarchives the value associated with the given key.

unarchiveBool
bool unarchiveBool(Id id)

Unarchives the value associated with the given id.

unarchiveByte
byte unarchiveByte(string key, Id id)

Unarchives the value associated with the given key.

unarchiveByte
byte unarchiveByte(Id id)

Unarchives the value associated with the given id.

unarchiveChar
char unarchiveChar(string key, Id id)

Unarchives the value associated with the given key.

unarchiveChar
char unarchiveChar(Id id)

Unarchives the value associated with the given id.

unarchiveDchar
dchar unarchiveDchar(string key, Id id)

Unarchives the value associated with the given key.

unarchiveDchar
dchar unarchiveDchar(Id id)

Unarchives the value associated with the given id.

unarchiveDouble
double unarchiveDouble(string key, Id id)

Unarchives the value associated with the given key.

unarchiveDouble
double unarchiveDouble(Id id)

Unarchives the value associated with the given id.

unarchiveDstring
dstring unarchiveDstring(string key, Id id)

Unarchives the string associated with the given id.

unarchiveDstring
dstring unarchiveDstring(Id id)

Unarchives the string associated with the given key.

unarchiveEnumBool
bool unarchiveEnumBool(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumBool
bool unarchiveEnumBool(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumByte
byte unarchiveEnumByte(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumByte
byte unarchiveEnumByte(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumChar
char unarchiveEnumChar(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumChar
char unarchiveEnumChar(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumDchar
dchar unarchiveEnumDchar(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumDchar
dchar unarchiveEnumDchar(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumInt
int unarchiveEnumInt(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumInt
int unarchiveEnumInt(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumLong
long unarchiveEnumLong(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumLong
long unarchiveEnumLong(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumShort
short unarchiveEnumShort(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumShort
short unarchiveEnumShort(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumUbyte
ubyte unarchiveEnumUbyte(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumUbyte
ubyte unarchiveEnumUbyte(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumUint
uint unarchiveEnumUint(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumUint
uint unarchiveEnumUint(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumUlong
ulong unarchiveEnumUlong(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumUlong
ulong unarchiveEnumUlong(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumUshort
ushort unarchiveEnumUshort(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumUshort
ushort unarchiveEnumUshort(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveEnumWchar
wchar unarchiveEnumWchar(string key, Id id)

Unarchives the value associated with the given key as a bool.

unarchiveEnumWchar
wchar unarchiveEnumWchar(Id id)

Unarchives the value associated with the given id as a bool.

unarchiveFloat
float unarchiveFloat(string key, Id id)

Unarchives the value associated with the given key.

unarchiveFloat
float unarchiveFloat(Id id)

Unarchives the value associated with the given id.

unarchiveInt
int unarchiveInt(string key, Id id)

Unarchives the value associated with the given key.

unarchiveInt
int unarchiveInt(Id id)

Unarchives the value associated with the given id.

unarchiveLong
long unarchiveLong(string key, Id id)

Unarchives the value associated with the given key.

unarchiveLong
long unarchiveLong(Id id)

Unarchives the value associated with the given id.

unarchiveObject
void unarchiveObject(string key, Id id, Object result, void delegate() dg)

Unarchives the object associated with the given key.

unarchivePointer
Id unarchivePointer(string key, void delegate() dg)

Unarchives the pointer associated with the given key.

unarchiveReal
real unarchiveReal(string key, Id id)

Unarchives the value associated with the given key.

unarchiveReal
real unarchiveReal(Id id)

Unarchives the value associated with the given id.

unarchiveReference
Id unarchiveReference(string key)

Unarchives the reference associated with the given key.

unarchiveShort
short unarchiveShort(string key, Id id)

Unarchives the value associated with the given key.

unarchiveShort
short unarchiveShort(Id id)

Unarchives the value associated with the given id.

unarchiveSlice
Slice unarchiveSlice(string key)

Unarchives the slice associated with the given key.

unarchiveString
string unarchiveString(string key, Id id)

Unarchives the string associated with the given id.

unarchiveString
string unarchiveString(Id id)

Unarchives the string associated with the given key.

unarchiveStruct
Id unarchiveStruct(string key, void delegate() dg)

Unarchives the struct associated with the given key.

unarchiveStruct
void unarchiveStruct(Id id, void delegate() dg)

Unarchives the struct associated with the given id.

unarchiveUbyte
ubyte unarchiveUbyte(string key, Id id)

Unarchives the value associated with the given key.

unarchiveUbyte
ubyte unarchiveUbyte(Id id)

Unarchives the value associated with the given id.

unarchiveUint
uint unarchiveUint(string key, Id id)

Unarchives the value associated with the given key.

unarchiveUint
uint unarchiveUint(Id id)

Unarchives the value associated with the given id.

unarchiveUlong
ulong unarchiveUlong(string key, Id id)

Unarchives the value associated with the given key.

unarchiveUlong
ulong unarchiveUlong(Id id)

Unarchives the value associated with the given id.

unarchiveUshort
ushort unarchiveUshort(string key, Id id)

Unarchives the value associated with the given key.

unarchiveUshort
ushort unarchiveUshort(Id id)

Unarchives the value associated with the given id.

unarchiveWchar
wchar unarchiveWchar(string key, Id id)

Unarchives the value associated with the given key.

unarchiveWchar
wchar unarchiveWchar(Id id)

Unarchives the value associated with the given id.

unarchiveWstring
wstring unarchiveWstring(string key, Id id)

Unarchives the string associated with the given id.

unarchiveWstring
wstring unarchiveWstring(Id id)

Unarchives the string associated with the given key.

untypedData
UntypedData untypedData()

Returns the data stored in the archive in an untyped form.

Meta