liblcf
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Struct< S > Class Template Reference

#include <reader_struct.h>

+ Collaboration diagram for Struct< S >:

Public Member Functions

template<>
void WriteLcf (const RPG::Save &obj, LcfWriter &stream)
 

Static Public Member Functions

static void ReadLcf (S &obj, LcfReader &stream)
 
static void WriteLcf (const S &obj, LcfWriter &stream)
 
static int LcfSize (const S &obj, LcfWriter &stream)
 
static void WriteXml (const S &obj, XmlWriter &stream)
 
static void BeginXml (S &obj, XmlReader &stream)
 
static void ReadLcf (std::vector< S > &obj, LcfReader &stream)
 
static void WriteLcf (const std::vector< S > &obj, LcfWriter &stream)
 
static int LcfSize (const std::vector< S > &obj, LcfWriter &stream)
 
static void WriteXml (const std::vector< S > &obj, XmlWriter &stream)
 
static void BeginXml (std::vector< S > &obj, XmlReader &stream)
 

Private Types

typedef std::map< int, const
Field< S > * > 
field_map_type
 
typedef std::map< const char
*const, const Field< S >
*, StringComparator
tag_map_type
 
typedef IDReaderT< S,
IDChecker< S >::value > 
IDReader
 

Static Private Member Functions

static void MakeFieldMap ()
 
static void MakeTagMap ()
 

Static Private Attributes

static const Field< S > * fields []
 
static field_map_type field_map
 
static tag_map_type tag_map
 
static const char *const name
 

Friends

template<class T >
class StructXmlHandler
 
template<class T >
class StructVectorXmlHandler
 
template<class T >
class StructFieldXmlHandler
 

Detailed Description

template<class S>
class Struct< S >

Definition at line 35 of file reader_struct.h.

Member Typedef Documentation

template<class S >
typedef std::map<int, const Field<S>* > Struct< S >::field_map_type
private

Definition at line 518 of file reader_struct.h.

template<class S >
typedef IDReaderT<S, IDChecker<S>::value > Struct< S >::IDReader
private

Definition at line 520 of file reader_struct.h.

template<class S >
typedef std::map<const char* const, const Field<S>*, StringComparator> Struct< S >::tag_map_type
private

Definition at line 519 of file reader_struct.h.

Member Function Documentation

template<class S >
void Struct< S >::BeginXml ( S &  obj,
XmlReader stream 
)
static

Definition at line 177 of file reader_struct.cpp.

References XmlReader::SetHandler().

Referenced by TypeReader< T, Category::Struct >::BeginXml(), TypeReader< std::vector< T >, Category::Struct >::BeginXml(), and TreeMapXmlHandler::StartElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class S >
void Struct< S >::BeginXml ( std::vector< S > &  obj,
XmlReader stream 
)
static

Definition at line 240 of file reader_struct.cpp.

References XmlReader::SetHandler().

+ Here is the call graph for this function:

template<class S >
int Struct< S >::LcfSize ( const S &  obj,
LcfWriter stream 
)
static

Definition at line 109 of file reader_struct.cpp.

References Field< S >::id, LcfReader::IntSize(), Field< S >::IsDefault(), and Field< S >::LcfSize().

Referenced by TypeReader< T, Category::Struct >::LcfSize(), and TypeReader< std::vector< T >, Category::Struct >::LcfSize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class S >
int Struct< S >::LcfSize ( const std::vector< S > &  obj,
LcfWriter stream 
)
static

Definition at line 204 of file reader_struct.cpp.

References LcfReader::IntSize().

+ Here is the call graph for this function:

template<class S >
void Struct< S >::MakeFieldMap ( )
staticprivate

Definition at line 20 of file reader_struct.cpp.

template<class S >
void Struct< S >::MakeTagMap ( )
staticprivate

Definition at line 28 of file reader_struct.cpp.

Referenced by StructXmlHandler< S >::StructXmlHandler().

+ Here is the caller graph for this function:

template<class S >
void Struct< S >::ReadLcf ( S &  obj,
LcfReader stream 
)
static
template<class S >
void Struct< S >::ReadLcf ( std::vector< S > &  obj,
LcfReader stream 
)
static

Definition at line 184 of file reader_struct.cpp.

References LcfReader::ReadInt().

+ Here is the call graph for this function:

template<>
void Struct< RPG::Save >::WriteLcf ( const RPG::Save obj,
LcfWriter stream 
)
template<class S >
void Struct< S >::WriteLcf ( const S &  obj,
LcfWriter stream 
)
static
template<class S >
void Struct< S >::WriteLcf ( const std::vector< S > &  obj,
LcfWriter stream 
)
static

Definition at line 194 of file reader_struct.cpp.

References LcfWriter::WriteInt().

+ Here is the call graph for this function:

template<class S >
void Struct< S >::WriteXml ( const S &  obj,
XmlWriter stream 
)
static
template<class S >
void Struct< S >::WriteXml ( const std::vector< S > &  obj,
XmlWriter stream 
)
static

Definition at line 216 of file reader_struct.cpp.

Friends And Related Function Documentation

template<class S >
template<class T >
friend class StructFieldXmlHandler
friend

Definition at line 531 of file reader_struct.h.

template<class S >
template<class T >
friend class StructVectorXmlHandler
friend

Definition at line 530 of file reader_struct.h.

template<class S >
template<class T >
friend class StructXmlHandler
friend

Definition at line 529 of file reader_struct.h.

Member Data Documentation

template<class S >
std::map< int, const Field< S > * > Struct< S >::field_map
staticprivate

Definition at line 522 of file reader_struct.h.

template<class S >
const Field<S>* Struct< S >::fields[]
staticprivate

Definition at line 521 of file reader_struct.h.

template<class S >
const char* const Struct< S >::name
staticprivate

Definition at line 524 of file reader_struct.h.

template<class S >
std::map< const char *const, const Field< S > *, StringComparator > Struct< S >::tag_map
staticprivate

Definition at line 523 of file reader_struct.h.


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