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

Public Member Functions

 FieldStringizer (std::stringstream &ss)
 
template<typename Field >
void operator() (size_t flags, Field &field, const char *name, const char *units)
 
template<typename T >
void operator() (size_t flags, Size< T > &size, const char *name, const char *units)
 
template<>
void operator() (size_t flags, bool &value, const char *name, const char *units)
 
template<>
void operator() (size_t flags, Handle &handle, const char *name, const char *units)
 
template<>
void operator() (size_t flags, const char *&value, const char *name, const char *units)
 

Private Member Functions

 NONCOPYABLE (FieldStringizer)
 
void WriteName (const char *name)
 
void WriteUnits (const char *units)
 
template<typename Field >
void Write (size_t flags, Field &field, const char *name, const char *units, typename Field::Enum *)
 
template<typename Field >
void Write (size_t flags, Field &field, const char *name, const char *units,...)
 

Private Attributes

std::stringstream & ss
 

Constructor & Destructor Documentation

◆ FieldStringizer()

SMBIOS::FieldStringizer::FieldStringizer ( std::stringstream &  ss)
inline

Member Function Documentation

◆ NONCOPYABLE()

SMBIOS::FieldStringizer::NONCOPYABLE ( FieldStringizer  )
private

◆ operator()() [1/5]

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

◆ operator()() [2/5]

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

◆ operator()() [3/5]

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

◆ operator()() [4/5]

template<>
void SMBIOS::FieldStringizer::operator() ( size_t  flags,
Handle handle,
const char *  name,
const char *  units 
)

◆ operator()() [5/5]

template<typename T >
void SMBIOS::FieldStringizer::operator() ( size_t  flags,
Size< T > &  size,
const char *  name,
const char *  units 
)
inline

◆ Write() [1/2]

template<typename Field >
void SMBIOS::FieldStringizer::Write ( size_t  flags,
Field &  field,
const char *  name,
const char *  units,
typename Field::Enum *   
)
inlineprivate

◆ Write() [2/2]

template<typename Field >
void SMBIOS::FieldStringizer::Write ( size_t  flags,
Field &  field,
const char *  name,
const char *  units,
  ... 
)
inlineprivate

◆ WriteName()

void SMBIOS::FieldStringizer::WriteName ( const char *  name)
inlineprivate

◆ WriteUnits()

void SMBIOS::FieldStringizer::WriteUnits ( const char *  units)
inlineprivate

Member Data Documentation

◆ ss

std::stringstream& SMBIOS::FieldStringizer::ss
private

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