31#include "../../Core/System/databuffer.h"
235 void throw_if_not_complex()
const;
247 std::string value_string;
249 std::vector<NetGameEventValue> value_complex;
General purpose data buffer.
Definition: databuffer.h:42
NetGameEventValue.
Definition: event_value.h:40
void set_member(unsigned int index, const NetGameEventValue &value)
Set member.
int value_int
Definition: event_value.h:240
NetGameEventValue(unsigned char value)
Constructs a NetGameEventValue.
NetGameEventValue(int value)
Constructs a NetGameEventValue.
NetGameEventValue(const char *str)
Constructs a NetGameEventValue.
NetGameEventValue(const std::string &value)
Constructs a NetGameEventValue.
NetGameEventValue(Type type)
Constructs a NetGameEventValue.
bool is_complex() const
Is Complex.
NetGameEventValue(bool value)
Constructs a NetGameEventValue.
float get_number() const
To number.
unsigned int get_uinteger() const
To unsigned integer.
std::string get_string() const
To string.
unsigned char value_uchar
Definition: event_value.h:243
unsigned int value_uint
Definition: event_value.h:241
NetGameEventValue(const wchar_t *str)
Constructs a NetGameEventValue.
const NetGameEventValue & get_member(unsigned int index) const
int get_integer() const
To integer.
DataBuffer get_binary() const
To binary.
Type get_type() const
Get Type.
bool is_number() const
Is Number.
bool is_string() const
Is String.
bool value_bool
Definition: event_value.h:245
bool is_null() const
Is Null.
NetGameEventValue(unsigned int value)
Constructs a NetGameEventValue.
bool is_boolean() const
Is Boolean.
bool is_binary() const
Is Binary.
int get_character() const
To character.
char value_char
Definition: event_value.h:242
unsigned int get_ucharacter() const
To unsigned character.
bool is_ucharacter() const
Is Ucharacter.
unsigned int get_member_count() const
void add_member(const NetGameEventValue &value)
Add member.
bool is_integer() const
Is Integer.
Type
Definition: event_value.h:43
operator std::string() const
Definition: event_value.h:226
NetGameEventValue(char value)
Constructs a NetGameEventValue.
float value_float
Definition: event_value.h:244
bool is_uinteger() const
Is Uinteger.
NetGameEventValue(float value)
Constructs a NetGameEventValue.
static std::string to_string(const NetGameEventValue &)
Helper function to obtain a string representation of an EventValue object.
bool get_boolean() const
To boolean.
NetGameEventValue(const DataBuffer &value)
Constructs a NetGameEventValue.
bool is_character() const
Is Character.