Reflect Archive Class Hierarchy
From Nocturnal Initiative
Contents |
Archive Class Hierarchy
Reflect::Archive
Archive is a base class for different flat file formats for storing serialized Elements. The virtual API it declares is consumed by Serializers that read and write pointers to other Elements. It also contains the main static API for reading and writing those files: Archive::FromFile and Archive::ToFile, respectively.
Instances of Archive are stack allocated (within the mentioned static API).
Reflect::ArchiveBinary
ArchiveBinary is instantiated within the Archive static API, and implements the custom binary format for storing serialized instances that derive from Element.
Reflect::ArchiveXML
ArchiveXML is analogous to ArchiveBinary but reads and writes human-readable XML files. The XML files it writes are pretty specific to Reflect, and as such ArchiveXML is not designed to facilitate the translation of schema-based XML files into Element objects. That work is typically best suited for custom document-based parsing code.
