liblcf
lcf::Flags< S > Class Template Reference

#include <reader_struct.h>

+ Collaboration diagram for lcf::Flags< S >:

Static Public Member Functions

static const char * tag (int idx)
 
static int idx (const char *tag)
 
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 Member Functions

char const *const name
 
decltype(Flags< rpg::Terrain::Flags >::flag_names) flag_names
 
decltype(Flags< rpg::Terrain::Flags >::flags_is2k3) flags_is2k3
 
char const *const name
 
decltype(Flags< rpg::TroopPageCondition::Flags >::flag_names) flag_names
 
decltype(Flags< rpg::TroopPageCondition::Flags >::flags_is2k3) flags_is2k3
 
char const *const name
 
decltype(Flags< rpg::EventPageCondition::Flags >::flag_names) flag_names
 
decltype(Flags< rpg::EventPageCondition::Flags >::flags_is2k3) flags_is2k3
 
char const *const name
 
decltype(Flags< rpg::SavePicture::Flags >::flag_names) flag_names
 
decltype(Flags< rpg::SavePicture::Flags >::flags_is2k3) flags_is2k3
 

Static Private Attributes

static const char *const name
 
static constexpr size_t num_flags = std::tuple_size<decltype(S::flags)>::value
 
static const std::array< const char *const, num_flagsflag_names
 
static const std::array< bool, num_flagsflags_is2k3
 

Detailed Description

template<class S>
class lcf::Flags< S >

Flags class template.

Definition at line 728 of file reader_struct.h.

Member Function Documentation

◆ BeginXml()

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

Definition at line 135 of file reader_flags.cpp.

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

+ Here is the caller graph for this function:

◆ flag_names() [1/4]

decltype(Flags< rpg::Terrain::Flags >::flag_names) lcf::Flags< rpg::Terrain::Flags >::flag_names
private

Definition at line 27 of file ldb_terrain_flags.h.

◆ flag_names() [2/4]

decltype(Flags< rpg::TroopPageCondition::Flags >::flag_names) lcf::Flags< rpg::TroopPageCondition::Flags >::flag_names
private

Definition at line 27 of file ldb_trooppagecondition_flags.h.

◆ flag_names() [3/4]

decltype(Flags< rpg::EventPageCondition::Flags >::flag_names) lcf::Flags< rpg::EventPageCondition::Flags >::flag_names
private

Definition at line 27 of file lmu_eventpagecondition_flags.h.

◆ flag_names() [4/4]

decltype(Flags< rpg::SavePicture::Flags >::flag_names) lcf::Flags< rpg::SavePicture::Flags >::flag_names
private

Definition at line 27 of file lsd_savepicture_flags.h.

◆ flags_is2k3() [1/4]

decltype(Flags< rpg::Terrain::Flags >::flags_is2k3) lcf::Flags< rpg::Terrain::Flags >::flags_is2k3
private

Definition at line 35 of file ldb_terrain_flags.h.

◆ flags_is2k3() [2/4]

decltype(Flags< rpg::TroopPageCondition::Flags >::flags_is2k3) lcf::Flags< rpg::TroopPageCondition::Flags >::flags_is2k3
private

Definition at line 41 of file ldb_trooppagecondition_flags.h.

◆ flags_is2k3() [3/4]

decltype(Flags< rpg::EventPageCondition::Flags >::flags_is2k3) lcf::Flags< rpg::EventPageCondition::Flags >::flags_is2k3
private

Definition at line 38 of file lmu_eventpagecondition_flags.h.

◆ flags_is2k3() [4/4]

decltype(Flags< rpg::SavePicture::Flags >::flags_is2k3) lcf::Flags< rpg::SavePicture::Flags >::flags_is2k3
private

Definition at line 38 of file lsd_savepicture_flags.h.

◆ idx()

template<class S >
int lcf::Flags< S >::idx ( const char *  tag)
inlinestatic

Definition at line 752 of file reader_struct.h.

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

+ Here is the caller graph for this function:

◆ LcfSize()

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

Definition at line 78 of file reader_flags.cpp.

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

+ Here is the caller graph for this function:

◆ name() [1/4]

char const *const lcf::Flags< rpg::Terrain::Flags >::name
private

Definition at line 24 of file ldb_terrain_flags.h.

◆ name() [2/4]

char const *const lcf::Flags< rpg::TroopPageCondition::Flags >::name
private

Definition at line 24 of file ldb_trooppagecondition_flags.h.

◆ name() [3/4]

char const *const lcf::Flags< rpg::EventPageCondition::Flags >::name
private

Definition at line 24 of file lmu_eventpagecondition_flags.h.

◆ name() [4/4]

char const *const lcf::Flags< rpg::SavePicture::Flags >::name
private

Definition at line 24 of file lsd_savepicture_flags.h.

◆ ReadLcf()

template<class S >
void lcf::Flags< S >::ReadLcf ( S &  obj,
LcfReader &  stream,
uint32_t  length 
)
static

Definition at line 25 of file reader_flags.cpp.

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

+ Here is the caller graph for this function:

◆ tag()

template<class S >
const char * lcf::Flags< S >::tag ( int  idx)
inlinestatic

Definition at line 747 of file reader_struct.h.

◆ WriteLcf()

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

Definition at line 52 of file reader_flags.cpp.

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

+ Here is the caller graph for this function:

◆ WriteXml()

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

Definition at line 93 of file reader_flags.cpp.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ flag_names

template<class S >
const std::array<const char* const, num_flags> lcf::Flags< S >::flag_names
staticprivate

Definition at line 732 of file reader_struct.h.

◆ flags_is2k3

template<class S >
const std::array<bool, num_flags> lcf::Flags< S >::flags_is2k3
staticprivate

Definition at line 733 of file reader_struct.h.

◆ name

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

Definition at line 730 of file reader_struct.h.

◆ num_flags

template<class S >
constexpr size_t lcf::Flags< S >::num_flags = std::tuple_size<decltype(S::flags)>::value
staticconstexprprivate

Definition at line 731 of file reader_struct.h.


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