SIXP
SIXP API
 All Classes Functions Variables Enumerations Enumerator Pages
six::sixp::client::sixp_variant Class Reference

Variant data type used for all information received. More...

Public Member Functions

sixp_variantoperator= (const sixp_variant &v)
 Assignment operator.
 
void to_string (char *s, sixp_uint32_t max) const
 Convert the value to a string.
 

Public Attributes

bool is_null
 Null value?
 
field_info::field_type type
 Type of value.
 
union {
   bool   tbool_value
 Value if type==tbool.
 
   sixp_time_t   tdate_value
 Value if type==tdate.
 
   double   tdouble_value
 Value if type==tdouble.
 
   char *   tstring_value
 Value if type==tstring.
 
   sixp_time_t   ttime_value
 Value if type==ttime.
 
   sixp_time_t   ttimestamp_value
 Value if type==ttimestamp.
 
   sixp_uint16_t   tuint16_value
 Value if type==tuint16.
 
   sixp_uint32_t   tuint32_value
 Value if type==tuint32.
 
value
 

Detailed Description

Variant data type used for all information received.

Member Function Documentation

void six::sixp::client::sixp_variant::to_string ( char *  s,
sixp_uint32_t  max 
) const

Convert the value to a string.

Parameters
sBuffer to hold the value.
maxMax size of value.