XmlArchive.archiveBaseClass

Archives a base class.

This method is used to indicate that the all following calls to archive a value should be part of the base class. This method is usually called within the callback passed to archiveObject. The archiveObject method can the mark the end of the class.

class XmlArchive(U = char)
void
archiveBaseClass
(
string type
,
string key
,
Id id
)

Parameters

type string

the type of the base class to archive

key string

the key associated with the base class

id Id

the id associated with the base class

Examples

class ArchiveBase {}
class Foo : ArchiveBase {}

auto archive = new XmlArchive!();
archive.archiveBaseClass("ArchiveBase", "base", 0);

Meta