Snowman  0.1.0
Public Types | Public Member Functions | Public Attributes | List of all members
snowboy::OptionInfo Struct Reference
Collaboration diagram for snowboy::OptionInfo:
Collaboration graph
[legend]

Public Types

enum  type {
  kBool = 0x2 , kInt32 = 0x4 , kUint32 = 0x8 , kFloat = 0x10 ,
  kString = 0x20 , kInt64 = 0x40 , kUint64 = 0x80
}
 

Public Member Functions

 OptionInfo (bool *ptr)
 
 OptionInfo (std::string *ptr)
 
 OptionInfo (uint32_t *ptr)
 
 OptionInfo (int32_t *ptr)
 
 OptionInfo (uint64_t *ptr)
 
 OptionInfo (int64_t *ptr)
 
 OptionInfo (float *ptr)
 
std::string GetActualMessage () const
 
std::string GetDefaultMessage () const
 
void SetValue (const std::string &v)
 

Public Attributes

std::string m_default_value
 
std::string m_info
 
union {
   bool *   m_bool_value
 
   int32_t *   m_int_value
 
   uint32_t *   m_uint_value
 
   int64_t *   m_int64_value
 
   uint64_t *   m_uint64_value
 
   float *   m_float_value
 
   std::string *   m_string_value
 
}; 
 
type m_type
 

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