NetGameEventValue. More...

#include <event_value.h>

Public Types

enum  Type {
  null, integer, uinteger, character,
  ucharacter, string, boolean, number,
  complex, binary
}
 

Public Member Functions

 NetGameEventValue ()
 
 NetGameEventValue (int value)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (unsigned int value)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (char value)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (unsigned char value)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (float value)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (const std::string &value)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (const char *str)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (const wchar_t *str)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (bool value)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (const DataBuffer &value)
 Constructs a NetGameEventValue. More...
 
 NetGameEventValue (Type type)
 Constructs a NetGameEventValue. More...
 
void add_member (const NetGameEventValue &value)
 Add member. More...
 
DataBuffer get_binary () const
 To binary. More...
 
bool get_boolean () const
 To boolean. More...
 
int get_character () const
 To character. More...
 
int get_integer () const
 To integer. More...
 
const NetGameEventValueget_member (unsigned int index) const
 
unsigned int get_member_count () const
 
float get_number () const
 To number. More...
 
std::string get_string () const
 To string. More...
 
Type get_type () const
 Get Type. More...
 
unsigned int get_ucharacter () const
 To unsigned character. More...
 
unsigned int get_uinteger () const
 To unsigned integer. More...
 
bool is_binary () const
 Is Binary. More...
 
bool is_boolean () const
 Is Boolean. More...
 
bool is_character () const
 Is Character. More...
 
bool is_complex () const
 Is Complex. More...
 
bool is_integer () const
 Is Integer. More...
 
bool is_null () const
 Is Null. More...
 
bool is_number () const
 Is Number. More...
 
bool is_string () const
 Is String. More...
 
bool is_ucharacter () const
 Is Ucharacter. More...
 
bool is_uinteger () const
 Is Uinteger. More...
 
 operator bool () const
 
 operator DataBuffer () const
 
 operator float () const
 
 operator int () const
 
 operator std::string () const
 
 operator unsigned char () const
 
 operator unsigned int () const
 
void set_member (unsigned int index, const NetGameEventValue &value)
 Set member. More...
 

Static Public Member Functions

static std::string to_string (const NetGameEventValue &)
 Helper function to obtain a string representation of an EventValue object. More...
 

Detailed Description

Constructor & Destructor Documentation

clan::NetGameEventValue::NetGameEventValue ( )
clan::NetGameEventValue::NetGameEventValue ( int  value)

Constructs a NetGameEventValue.

Parameters
value= value
clan::NetGameEventValue::NetGameEventValue ( unsigned int  value)

Constructs a NetGameEventValue.

Parameters
value= value
clan::NetGameEventValue::NetGameEventValue ( char  value)

Constructs a NetGameEventValue.

Parameters
value= value
clan::NetGameEventValue::NetGameEventValue ( unsigned char  value)

Constructs a NetGameEventValue.

Parameters
value= value
clan::NetGameEventValue::NetGameEventValue ( float  value)

Constructs a NetGameEventValue.

Parameters
value= value
clan::NetGameEventValue::NetGameEventValue ( const std::string value)

Constructs a NetGameEventValue.

Parameters
value= String
clan::NetGameEventValue::NetGameEventValue ( const char *  str)

Constructs a NetGameEventValue.

Parameters
str= char
clan::NetGameEventValue::NetGameEventValue ( const wchar_t *  str)

Constructs a NetGameEventValue.

Parameters
str= wchar_t
clan::NetGameEventValue::NetGameEventValue ( bool  value)
explicit

Constructs a NetGameEventValue.

Parameters
value= bool
clan::NetGameEventValue::NetGameEventValue ( const DataBuffer value)

Constructs a NetGameEventValue.

Parameters
value= DataBuffer
clan::NetGameEventValue::NetGameEventValue ( Type  type)

Constructs a NetGameEventValue.

Parameters
type= Type

Member Function Documentation

void clan::NetGameEventValue::add_member ( const NetGameEventValue value)

Add member.

Parameters
value= Net Game Event Value
DataBuffer clan::NetGameEventValue::get_binary ( ) const

To binary.

Returns
binary

Referenced by operator DataBuffer().

bool clan::NetGameEventValue::get_boolean ( ) const

To boolean.

Returns
bool

Referenced by operator bool().

int clan::NetGameEventValue::get_character ( ) const

To character.

Returns
char
int clan::NetGameEventValue::get_integer ( ) const

To integer.

Returns
int

Referenced by operator int().

const NetGameEventValue& clan::NetGameEventValue::get_member ( unsigned int  index) const
unsigned int clan::NetGameEventValue::get_member_count ( ) const
float clan::NetGameEventValue::get_number ( ) const

To number.

Returns
float

Referenced by operator float().

std::string clan::NetGameEventValue::get_string ( ) const

To string.

Returns
String

Referenced by operator std::string().

Type clan::NetGameEventValue::get_type ( ) const

Get Type.

Returns
type
unsigned int clan::NetGameEventValue::get_ucharacter ( ) const

To unsigned character.

Returns
unsigned char

Referenced by operator unsigned char().

unsigned int clan::NetGameEventValue::get_uinteger ( ) const

To unsigned integer.

Returns
unsigned int

Referenced by operator unsigned int().

bool clan::NetGameEventValue::is_binary ( ) const

Is Binary.

Returns
true = binary
bool clan::NetGameEventValue::is_boolean ( ) const

Is Boolean.

Returns
true = boolean
bool clan::NetGameEventValue::is_character ( ) const

Is Character.

Returns
true = character
bool clan::NetGameEventValue::is_complex ( ) const

Is Complex.

Returns
true = complex
bool clan::NetGameEventValue::is_integer ( ) const

Is Integer.

Returns
true = integer
bool clan::NetGameEventValue::is_null ( ) const

Is Null.

Returns
true = null
bool clan::NetGameEventValue::is_number ( ) const

Is Number.

Returns
true = number
bool clan::NetGameEventValue::is_string ( ) const

Is String.

Returns
true = string
bool clan::NetGameEventValue::is_ucharacter ( ) const

Is Ucharacter.

Returns
true = ucharacter
bool clan::NetGameEventValue::is_uinteger ( ) const

Is Uinteger.

Returns
true = uinteger
clan::NetGameEventValue::operator bool ( ) const
inline

References get_boolean().

clan::NetGameEventValue::operator DataBuffer ( ) const
inline

References get_binary().

clan::NetGameEventValue::operator float ( ) const
inline

References get_number().

clan::NetGameEventValue::operator int ( ) const
inline

References get_integer().

clan::NetGameEventValue::operator std::string ( ) const
inline

References get_string().

clan::NetGameEventValue::operator unsigned char ( ) const
inline

References get_ucharacter().

clan::NetGameEventValue::operator unsigned int ( ) const
inline

References get_uinteger().

void clan::NetGameEventValue::set_member ( unsigned int  index,
const NetGameEventValue value 
)

Set member.

Parameters
index= value
value= Net Game Event Value
static std::string clan::NetGameEventValue::to_string ( const NetGameEventValue )
static

Helper function to obtain a string representation of an EventValue object.

Member Data Documentation

bool clan::NetGameEventValue::value_bool
char clan::NetGameEventValue::value_char
float clan::NetGameEventValue::value_float
int clan::NetGameEventValue::value_int
unsigned char clan::NetGameEventValue::value_uchar
unsigned int clan::NetGameEventValue::value_uint

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