Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
SMBIOS::FieldInitializer Class Reference

Public Member Functions

 FieldInitializer (const Header *header, const Strings &strings)
 
template<typename Field >
void operator() (size_t flags, Field &field, const char *name, const char *units)
 
template<>
void operator() (size_t flags, bool &t, const char *name, const char *units)
 
template<>
void operator() (size_t flags, const char *&t, const char *name, const char *units)
 

Private Member Functions

 NONCOPYABLE (FieldInitializer)
 
template<typename T >
T ReadValue ()
 
template<typename Field >
void Read (Field &field, typename Field::T *)
 
template<typename Field >
void Read (Field &field,...)
 

Private Attributes

const u8data
 
const u8end
 
const Stringsstrings
 

Constructor & Destructor Documentation

◆ FieldInitializer()

SMBIOS::FieldInitializer::FieldInitializer ( const Header header,
const Strings strings 
)
inline

Member Function Documentation

◆ NONCOPYABLE()

SMBIOS::FieldInitializer::NONCOPYABLE ( FieldInitializer  )
private

◆ operator()() [1/3]

template<>
void SMBIOS::FieldInitializer::operator() ( size_t  flags,
bool &  t,
const char *  name,
const char *  units 
)

◆ operator()() [2/3]

template<>
void SMBIOS::FieldInitializer::operator() ( size_t  flags,
const char *&  t,
const char *  name,
const char *  units 
)

◆ operator()() [3/3]

template<typename Field >
void SMBIOS::FieldInitializer::operator() ( size_t  flags,
Field &  field,
const char *  name,
const char *  units 
)
inline

◆ Read() [1/2]

template<typename Field >
void SMBIOS::FieldInitializer::Read ( Field &  field,
typename Field::T  
)
inlineprivate

◆ Read() [2/2]

template<typename Field >
void SMBIOS::FieldInitializer::Read ( Field &  field,
  ... 
)
inlineprivate

◆ ReadValue()

template<typename T >
T SMBIOS::FieldInitializer::ReadValue ( )
inlineprivate

Member Data Documentation

◆ data

const u8* SMBIOS::FieldInitializer::data
private

◆ end

const u8* SMBIOS::FieldInitializer::end
private

◆ strings

const Strings& SMBIOS::FieldInitializer::strings
private

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