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
 
char const *const name
 
char const *const name
 
char const *const name
 
char const *const name
 
char const *const name
 

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 708 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 137 of file reader_flags.cpp.

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

+ Here is the caller graph for this function:

◆ idx()

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

Definition at line 732 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 80 of file reader_flags.cpp.

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

+ Here is the caller graph for this function:

◆ name() [1/6]

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

Definition at line 24 of file ldb_terrain_flags.h.

◆ name() [2/6]

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

Definition at line 24 of file ldb_trooppagecondition_flags.h.

◆ name() [3/6]

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

Definition at line 24 of file lmu_eventpagecondition_flags.h.

◆ name() [4/6]

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

Definition at line 24 of file lsd_saveeasyrpgtext_flags.h.

◆ name() [5/6]

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

Definition at line 24 of file lsd_saveeasyrpgwindow_flags.h.

◆ name() [6/6]

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 27 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 727 of file reader_struct.h.

◆ WriteLcf()

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

Definition at line 54 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 95 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 712 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 713 of file reader_struct.h.

◆ name

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

Definition at line 710 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 711 of file reader_struct.h.


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