#include <config_object.h>
|
static bool | g_find (service_ptr_t< config_object > &p_out, const GUID &p_guid) |
|
static void | g_get_data_bool (const GUID &p_guid, bool &p_out) |
|
static bool | g_get_data_bool_simple (const GUID &p_guid, bool p_default) |
|
static void | g_get_data_int32 (const GUID &p_guid, t_int32 &p_out) |
|
static t_int32 | g_get_data_int32_simple (const GUID &p_guid, t_int32 p_default) |
|
static void | g_get_data_string (const GUID &p_guid, pfc::string_base &p_out) |
|
template<class T > |
static void | g_get_data_struct_t (const GUID &p_guid, T &p_out) |
|
static void | g_set_data_bool (const GUID &p_guid, bool p_val) |
|
static void | g_set_data_int32 (const GUID &p_guid, t_int32 p_val) |
|
static void | g_set_data_string (const GUID &p_guid, const char *p_data, t_size p_length=~0) |
|
template<class T > |
static void | g_set_data_struct_t (const GUID &p_guid, const T &p_in) |
|
Definition at line 16 of file config_object.h.
config_object::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT |
( |
config_object |
| ) |
|
Definition at line 14 of file config_object.cpp.
20 if (ptr->get_guid() == p_guid)
bool next(service_ptr_t< t_query > &p_out)
void config_object::g_get_data_bool |
( |
const GUID & |
p_guid, |
|
|
bool & |
p_out |
|
) |
| |
|
static |
bool config_object::g_get_data_bool_simple |
( |
const GUID & |
p_guid, |
|
|
bool |
p_default |
|
) |
| |
|
static |
Definition at line 86 of file config_object.cpp.
89 if (!
g_find(ptr,p_guid))
throw exception_service_not_found();
90 return ptr->get_data_bool_simple(p_default);
static bool g_find(service_ptr_t< config_object > &p_out, const GUID &p_guid)
void config_object::g_get_data_int32 |
( |
const GUID & |
p_guid, |
|
|
t_int32 & |
p_out |
|
) |
| |
|
static |
Definition at line 74 of file config_object.cpp.
76 if (!
g_find(ptr,p_guid))
throw exception_service_not_found();
77 ptr->get_data_int32(p_out);
static bool g_find(service_ptr_t< config_object > &p_out, const GUID &p_guid)
Definition at line 93 of file config_object.cpp.
96 if (!
g_find(ptr,p_guid))
throw exception_service_not_found();
97 return ptr->get_data_int32_simple(p_default);
static bool g_find(service_ptr_t< config_object > &p_out, const GUID &p_guid)
Definition at line 29 of file config_object.cpp.
32 if (!
g_find(ptr,p_guid))
throw exception_service_not_found();
33 ptr->get_data_string(p_out);
static bool g_find(service_ptr_t< config_object > &p_out, const GUID &p_guid)
template<class T >
void config_object::g_get_data_struct_t |
( |
const GUID & |
p_guid, |
|
|
T & |
p_out |
|
) |
| |
|
static |
Definition at line 17 of file config_object_impl.h.
19 if (!
g_find(ptr,p_guid))
throw exception_service_not_found();
20 return ptr->get_data_struct_t<
T>(p_out);
static bool g_find(service_ptr_t< config_object > &p_out, const GUID &p_guid)
void config_object::g_set_data_bool |
( |
const GUID & |
p_guid, |
|
|
bool |
p_val |
|
) |
| |
|
static |
void config_object::g_set_data_int32 |
( |
const GUID & |
p_guid, |
|
|
t_int32 |
p_val |
|
) |
| |
|
static |
Definition at line 80 of file config_object.cpp.
82 if (!
g_find(ptr,p_guid))
throw exception_service_not_found();
83 ptr->set_data_int32(p_val);
static bool g_find(service_ptr_t< config_object > &p_out, const GUID &p_guid)
void config_object::g_set_data_string |
( |
const GUID & |
p_guid, |
|
|
const char * |
p_data, |
|
|
t_size |
p_length = ~0 |
|
) |
| |
|
static |
Definition at line 36 of file config_object.cpp.
39 if (!
g_find(ptr,p_guid))
throw exception_service_not_found();
40 ptr->set_data_string(p_data,p_length);
static bool g_find(service_ptr_t< config_object > &p_out, const GUID &p_guid)
template<class T >
void config_object::g_set_data_struct_t |
( |
const GUID & |
p_guid, |
|
|
const T & |
p_in |
|
) |
| |
|
static |
Definition at line 24 of file config_object_impl.h.
26 if (!
g_find(ptr,p_guid))
throw exception_service_not_found();
27 return ptr->set_data_struct_t<
T>(p_in);
static bool g_find(service_ptr_t< config_object > &p_out, const GUID &p_guid)
void config_object::get_data_bool |
( |
bool & |
p_out | ) |
|
bool config_object::get_data_bool_simple |
( |
bool |
p_default | ) |
|
Definition at line 58 of file config_object.cpp.
63 }
catch(...) {
return p_default;}
void get_data_bool(bool &p_out)
void config_object::get_data_int32 |
( |
t_int32 & |
p_out | ) |
|
Definition at line 43 of file config_object.cpp.
46 get_data_struct_t<t_int32>(temp);
void order_le_to_native_t(T ¶m)
Definition at line 66 of file config_object.cpp.
71 }
catch(...) {
return p_default;}
void get_data_int32(t_int32 &p_out)
t_size config_object::get_data_raw |
( |
void * |
p_out, |
|
|
t_size |
p_bytes |
|
) |
| |
Definition at line 146 of file config_object.cpp.
148 stream_writer_fixedbuffer stream(p_out,p_bytes,ret);
abort_callback_impl abort_callback_dummy
virtual void get_data(stream_writer *p_stream, abort_callback &p_abort) const =0
t_size config_object::get_data_raw_length |
( |
| ) |
|
Definition at line 154 of file config_object.cpp.
156 stream_writer_get_length stream(ret);
abort_callback_impl abort_callback_dummy
virtual void get_data(stream_writer *p_stream, abort_callback &p_abort) const =0
Definition at line 172 of file config_object.cpp.
173 stream_writer_string stream(p_out);
abort_callback_impl abort_callback_dummy
virtual void get_data(stream_writer *p_stream, abort_callback &p_abort) const =0
template<class T >
void config_object::get_data_struct_t |
( |
T & |
p_out | ) |
|
Definition at line 7 of file config_object_impl.h.
8 if (
get_data_raw(&p_out,
sizeof(
T)) !=
sizeof(
T))
throw exception_io_data_truncation();
t_size get_data_raw(void *p_out, t_size p_bytes)
virtual GUID config_object::get_guid |
( |
| ) |
const |
|
pure virtual |
void config_object::set_data_bool |
( |
bool |
p_val | ) |
|
void config_object::set_data_int32 |
( |
t_int32 |
p_val | ) |
|
Definition at line 51 of file config_object.cpp.
55 set_data_struct_t<t_int32>(temp);
void order_native_to_le_t(T ¶m)
void config_object::set_data_raw |
( |
const void * |
p_data, |
|
|
t_size |
p_bytes, |
|
|
bool |
p_sendnotify = true |
|
) |
| |
Definition at line 162 of file config_object.cpp.
abort_callback_impl abort_callback_dummy
virtual void set_data(stream_reader *p_stream, abort_callback &p_abort, bool p_sendnotify=true)=0
void config_object::set_data_string |
( |
const char * |
p_data, |
|
|
t_size |
p_length |
|
) |
| |
Definition at line 168 of file config_object.cpp.
t_size strlen_max(const char *ptr, t_size max)
void set_data_raw(const void *p_data, t_size p_bytes, bool p_sendnotify=true)
template<class T >
void config_object::set_data_struct_t |
( |
const T & |
p_in | ) |
|
Definition at line 12 of file config_object_impl.h.
void set_data_raw(const void *p_data, t_size p_bytes, bool p_sendnotify=true)
The documentation for this class was generated from the following files: