openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::OutputArchiveBase< Derived > Class Template Reference

#include <serialize.hh>

Inheritance diagram for openmsx::OutputArchiveBase< Derived >:
Inheritance graph
[legend]
Collaboration diagram for openmsx::OutputArchiveBase< Derived >:
Collaboration graph
[legend]

Public Member Functions

template<typename Base , typename T >
void serializeInlinedBase (T &t, unsigned version)
 
template<typename T , typename... Args>
void serializeWithID (const char *tag, const T &t, Args...)
 
void serialize_blob (const char *tag, const void *data, size_t len, bool diff=true)
 
template<typename T >
void serialize (const char *tag, const T &t)
 
template<typename T >
void serializePointerID (const char *tag, const T &t)
 
template<typename T >
void serializePolymorphic (const char *tag, const T &t)
 
template<typename T >
void serializeOnlyOnce (const char *tag, const T &t)
 
void serializeChar (const char *tag, char c)
 
- Public Member Functions inherited from openmsx::ArchiveBase< Derived >
template<typename Base , typename T >
void serializeBase (T &t)
 Is this archive a loader or a saver. More...
 
template<typename Base , typename T >
void serializeInlinedBase (T &t, unsigned version)
 Serialize the base class of this classtype. More...
 
bool needVersion () const
 Does this archive store version information. More...
 
bool isReverseSnapshot () const
 Is this a reverse-snapshot? More...
 
bool translateEnumToString () const
 Does this archive store enums as strings. More...
 
template<typename T >
void attribute (const char *name, T &t)
 Load/store an attribute from/in the archive. More...
 
void attribute (const char *name, const char *value)
 
bool canHaveOptionalAttributes () const
 Some archives (like XML archives) can store optional attributes. More...
 
bool hasAttribute (const char *)
 Check the presence of a (optional) attribute. More...
 
bool findAttribute (const char *, unsigned &)
 Optimization: combination of hasAttribute() and getAttribute(). More...
 
bool canCountChildren () const
 Some archives (like XML archives) can count the number of subtags that belong to the current tag. More...
 
int countChildren () const
 Count the number of child tags. More...
 
void beginTag (const char *)
 Indicate begin of a tag. More...
 
void endTag (const char *)
 Indicate begin of a tag. More...
 
- Public Member Functions inherited from openmsx::OutputArchiveBase2
bool isLoader () const
 
bool versionAtLeast (unsigned, unsigned) const
 
bool versionBelow (unsigned, unsigned) const
 
void skipSection (bool)
 
template<typename T >
unsigned generateId (const T *p)
 
template<typename T >
unsigned getId (const T *p)
 

Protected Member Functions

 OutputArchiveBase ()
 
- Protected Member Functions inherited from openmsx::ArchiveBase< Derived >
Derived & self ()
 Returns a reference to the most derived class. More...
 
- Protected Member Functions inherited from openmsx::OutputArchiveBase2
 OutputArchiveBase2 ()
 

Detailed Description

template<typename Derived>
class openmsx::OutputArchiveBase< Derived >

Definition at line 411 of file serialize.hh.

Constructor & Destructor Documentation

§ OutputArchiveBase()

template<typename Derived>
openmsx::OutputArchiveBase< Derived >::OutputArchiveBase ( )
inlineprotected

Definition at line 479 of file serialize.hh.

Member Function Documentation

§ serialize()

template<typename Derived>
template<typename T >
void openmsx::OutputArchiveBase< Derived >::serialize ( const char *  tag,
const T &  t 
)
inline

Definition at line 443 of file serialize.hh.

Referenced by openmsx::StoreMachineCommand::execute().

§ serialize_blob()

template<typename Derived >
void openmsx::OutputArchiveBase< Derived >::serialize_blob ( const char *  tag,
const void *  data,
size_t  len,
bool  diff = true 
)

Definition at line 77 of file serialize.cc.

§ serializeChar()

template<typename Derived>
void openmsx::OutputArchiveBase< Derived >::serializeChar ( const char *  tag,
char  c 
)
inline

Definition at line 471 of file serialize.hh.

§ serializeInlinedBase()

template<typename Derived>
template<typename Base , typename T >
void openmsx::OutputArchiveBase< Derived >::serializeInlinedBase ( T &  t,
unsigned  version 
)
inline

Definition at line 415 of file serialize.hh.

§ serializeOnlyOnce()

template<typename Derived>
template<typename T >
void openmsx::OutputArchiveBase< Derived >::serializeOnlyOnce ( const char *  tag,
const T &  t 
)
inline

Definition at line 463 of file serialize.hh.

§ serializePointerID()

template<typename Derived>
template<typename T >
void openmsx::OutputArchiveBase< Derived >::serializePointerID ( const char *  tag,
const T &  t 
)
inline

Definition at line 450 of file serialize.hh.

§ serializePolymorphic()

template<typename Derived>
template<typename T >
void openmsx::OutputArchiveBase< Derived >::serializePolymorphic ( const char *  tag,
const T &  t 
)
inline

Definition at line 457 of file serialize.hh.

§ serializeWithID()

template<typename Derived>
template<typename T , typename... Args>
void openmsx::OutputArchiveBase< Derived >::serializeWithID ( const char *  tag,
const T &  t,
Args...   
)
inline

Definition at line 430 of file serialize.hh.


The documentation for this class was generated from the following files: