Archive.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.

interface Archive
void
archiveBaseClass
(
string type
,
string key
,)

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