ClanLib  2.3.7
Public Types | Public Member Functions | List of all members
CL_NetGameEventValue Class Reference

CL_NetGameEventValue. More...

#include <event_value.h>

Public Types

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

Public Member Functions

 CL_NetGameEventValue ()
 
 CL_NetGameEventValue (int value)
 Constructs a NetGameEventValue. More...
 
 CL_NetGameEventValue (unsigned int value)
 Constructs a NetGameEventValue. More...
 
 CL_NetGameEventValue (float value)
 Constructs a NetGameEventValue. More...
 
 CL_NetGameEventValue (const CL_String &value)
 Constructs a NetGameEventValue. More...
 
 CL_NetGameEventValue (const CL_StringRef &value)
 Constructs a NetGameEventValue. More...
 
 CL_NetGameEventValue (const char *str)
 Constructs a NetGameEventValue. More...
 
 CL_NetGameEventValue (const wchar_t *str)
 Constructs a NetGameEventValue. More...
 
 CL_NetGameEventValue (bool value)
 
 CL_NetGameEventValue (Type type)
 Constructs a NetGameEventValue. More...
 
void add_member (const CL_NetGameEventValue &value)
 Add member. More...
 
const CL_NetGameEventValueget_member (unsigned int index) const
 
unsigned int get_member_count () const
 
Type get_type () const
 Get Type. More...
 
bool is_boolean () const
 Is Boolean. 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_uinteger () const
 Is Uinteger. More...
 
 operator bool () const
 
 operator CL_String () const
 
 operator float () const
 
 operator int () const
 
 operator unsigned int () const
 
void set_member (unsigned int index, const CL_NetGameEventValue &value)
 Set member. More...
 
bool to_boolean () const
 To boolean. More...
 
int to_integer () const
 To integer. More...
 
float to_number () const
 To number. More...
 
CL_String to_string () const
 To string. More...
 
unsigned int to_uinteger () const
 

Detailed Description

CL_NetGameEventValue.

Member Enumeration Documentation

Enumerator
null 
integer 
uinteger 
string 
boolean 
number 
complex 

Constructor & Destructor Documentation

CL_NetGameEventValue::CL_NetGameEventValue ( )
CL_NetGameEventValue::CL_NetGameEventValue ( int  value)

Constructs a NetGameEventValue.

Parameters
value= value
CL_NetGameEventValue::CL_NetGameEventValue ( unsigned int  value)

Constructs a NetGameEventValue.

Parameters
value= value
CL_NetGameEventValue::CL_NetGameEventValue ( float  value)

Constructs a NetGameEventValue.

Parameters
value= value
CL_NetGameEventValue::CL_NetGameEventValue ( const CL_String value)

Constructs a NetGameEventValue.

Parameters
value= String
CL_NetGameEventValue::CL_NetGameEventValue ( const CL_StringRef value)

Constructs a NetGameEventValue.

Parameters
value= String Ref
CL_NetGameEventValue::CL_NetGameEventValue ( const char *  str)

Constructs a NetGameEventValue.

Parameters
str= char
CL_NetGameEventValue::CL_NetGameEventValue ( const wchar_t *  str)

Constructs a NetGameEventValue.

Parameters
str= wchar_t
CL_NetGameEventValue::CL_NetGameEventValue ( bool  value)
explicit
CL_NetGameEventValue::CL_NetGameEventValue ( Type  type)

Constructs a NetGameEventValue.

Parameters
type= Type

Member Function Documentation

void CL_NetGameEventValue::add_member ( const CL_NetGameEventValue value)

Add member.

Parameters
value= Net Game Event Value
const CL_NetGameEventValue& CL_NetGameEventValue::get_member ( unsigned int  index) const
unsigned int CL_NetGameEventValue::get_member_count ( ) const
Type CL_NetGameEventValue::get_type ( ) const

Get Type.

Returns
type
bool CL_NetGameEventValue::is_boolean ( ) const

Is Boolean.

Returns
true = boolean
bool CL_NetGameEventValue::is_complex ( ) const

Is Complex.

Returns
true = complex
bool CL_NetGameEventValue::is_integer ( ) const

Is Integer.

Returns
true = integer
bool CL_NetGameEventValue::is_null ( ) const

Is Null.

Returns
true = null
bool CL_NetGameEventValue::is_number ( ) const

Is Number.

Returns
true = number
bool CL_NetGameEventValue::is_string ( ) const

Is String.

Returns
true = string
bool CL_NetGameEventValue::is_uinteger ( ) const

Is Uinteger.

Returns
true = uinteger
CL_NetGameEventValue::operator bool ( ) const
inline
CL_NetGameEventValue::operator CL_String ( ) const
inline
CL_NetGameEventValue::operator float ( ) const
inline
CL_NetGameEventValue::operator int ( ) const
inline
CL_NetGameEventValue::operator unsigned int ( ) const
inline
void CL_NetGameEventValue::set_member ( unsigned int  index,
const CL_NetGameEventValue value 
)

Set member.

Parameters
index= value
value= Net Game Event Value
bool CL_NetGameEventValue::to_boolean ( ) const

To boolean.

Returns
bool
int CL_NetGameEventValue::to_integer ( ) const

To integer.

Returns
int
float CL_NetGameEventValue::to_number ( ) const

To number.

Returns
float
CL_String CL_NetGameEventValue::to_string ( ) const

To string.

Returns
String
unsigned int CL_NetGameEventValue::to_uinteger ( ) const

Member Data Documentation

bool CL_NetGameEventValue::value_bool
float CL_NetGameEventValue::value_float
int CL_NetGameEventValue::value_int
unsigned int CL_NetGameEventValue::value_uint

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