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

#include <reader_struct.h>

+ Collaboration diagram for Flags< S >:

Classes

struct  Flag
 

Static Public Member Functions

static void ReadLcf (S &obj, LcfReader &stream, uint32_t length)
 
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)
 

Private Types

typedef std::map< const char
*const, const Flag
*, StringComparator
tag_map_type
 

Private Member Functions

template<>
char const *const name ("Terrain_Flags")
 
template<>
const Flags< flags_type >::Flagflags []
 
template<>
const uint32_t max_size
 
template<>
char const *const name ("TroopPageCondition_Flags")
 
template<>
const Flags< flags_type >::Flagflags []
 
template<>
const uint32_t max_size
 
template<>
char const *const name ("EventPageCondition_Flags")
 
template<>
const Flags< flags_type >::Flagflags []
 
template<>
const uint32_t max_size
 

Static Private Member Functions

static void MakeTagMap ()
 

Static Private Attributes

static const uint32_t max_size
 
static const Flagflags []
 
static tag_map_type tag_map
 
static const char *const name
 

Friends

template<class T >
class FlagsXmlHandler
 

Detailed Description

template<class S>
class Flags< S >

Flags class template.

Definition at line 604 of file reader_struct.h.

Member Typedef Documentation

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

Definition at line 614 of file reader_struct.h.

Member Function Documentation

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

Definition at line 108 of file reader_flags.cpp.

References XmlReader::SetHandler().

Referenced by TypeReader< T, Category::Flags >::BeginXml().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<>
const Flags< flags_type >::Flag * Flags< flags_type >::flags ( )
private

Definition at line 25 of file ldb_trooppagecondition_flags.cpp.

template<>
const Flags< flags_type >::Flag * Flags< flags_type >::flags ( )
private

Definition at line 25 of file lmu_eventpagecondition_flags.cpp.

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

Definition at line 56 of file reader_flags.cpp.

Referenced by TypeReader< T, Category::Flags >::LcfSize().

+ Here is the caller graph for this function:

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

Definition at line 15 of file reader_flags.cpp.

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

+ Here is the caller graph for this function:

template<>
const uint32_t Flags< flags_type >::max_size ( )
private

Definition at line 34 of file ldb_terrain_flags.cpp.

template<>
const uint32_t Flags< flags_type >::max_size ( )
private

Definition at line 37 of file lmu_eventpagecondition_flags.cpp.

template<>
const uint32_t Flags< flags_type >::max_size ( )
private

Definition at line 40 of file ldb_trooppagecondition_flags.cpp.

template<>
char const *const Flags< flags_type >::name ( "Terrain_Flags< S >"  )
private
template<>
char const *const Flags< flags_type >::name ( "TroopPageCondition_Flags< S >"  )
private
template<>
char const *const Flags< flags_type >::name ( "EventPageCondition_Flags< S >"  )
private
template<class S >
void Flags< S >::ReadLcf ( S &  obj,
LcfReader stream,
uint32_t  length 
)
static

Definition at line 23 of file reader_flags.cpp.

References LcfReader::Read().

Referenced by TypeReader< T, Category::Flags >::ReadLcf().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class S >
void Flags< S >::WriteLcf ( const S &  obj,
LcfWriter stream 
)
static

Definition at line 38 of file reader_flags.cpp.

References LcfWriter::Write().

Referenced by TypeReader< T, Category::Flags >::WriteLcf().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 67 of file reader_flags.cpp.

References XmlWriter::BeginElement(), XmlWriter::EndElement(), Flags< S >::Flag::name, Flags< S >::Flag::ref, and XmlWriter::WriteNode().

Referenced by TypeReader< T, Category::Flags >::WriteXml().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

template<class S >
template<class T >
friend class FlagsXmlHandler
friend

Definition at line 621 of file reader_struct.h.

Member Data Documentation

template<class S >
const Flag* Flags< S >::flags[]
staticprivate

Definition at line 615 of file reader_struct.h.

template<class S >
const uint32_t Flags< S >::max_size
staticprivate

Definition at line 613 of file reader_struct.h.

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

Definition at line 617 of file reader_struct.h.

template<class S >
std::map< const char *const, const typename Flags< S >::Flag *, StringComparator > Flags< S >::tag_map
staticprivate

Definition at line 616 of file reader_struct.h.


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