foobar2000 SDK  2015-01-14
Public Member Functions | Private Attributes
config_object_fixed_const_impl_t< p_size >

#include <config_object_impl.h>

+ Inheritance diagram for config_object_fixed_const_impl_t< p_size >:

Public Member Functions

 config_object_fixed_const_impl_t (const GUID &p_guid, const void *p_data)
 
void get_data (stream_writer *p_stream, abort_callback &p_abort) const
 
GUID get_guid () const
 
void set_data (stream_reader *p_stream, abort_callback &p_abort, bool p_notify)
 
- Public Member Functions inherited from config_object
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (config_object)
 
void get_data_bool (bool &p_out)
 
bool get_data_bool_simple (bool p_default)
 
void get_data_int32 (t_int32 &p_out)
 
t_int32 get_data_int32_simple (t_int32 p_default)
 
t_size get_data_raw (void *p_out, t_size p_bytes)
 
t_size get_data_raw_length ()
 
void get_data_string (pfc::string_base &p_out)
 
template<class T >
void get_data_struct_t (T &p_out)
 
void set_data_bool (bool p_val)
 
void set_data_int32 (t_int32 p_val)
 
void set_data_raw (const void *p_data, t_size p_bytes, bool p_sendnotify=true)
 
void set_data_string (const char *p_data, t_size p_length)
 
template<class T >
void set_data_struct_t (const T &p_in)
 
- Public Member Functions inherited from service_base
template<typename outPtr_t >
bool cast (outPtr_t &outPtr)
 
virtual int service_add_ref ()=0 throw ()
 
virtual bool service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid)
 
template<class T >
bool service_query_t (service_ptr_t< T > &p_out)
 
virtual int service_release ()=0 throw ()
 

Private Attributes

t_uint8 m_data [p_size]
 
const GUID m_guid
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Static Public Member Functions inherited from config_object
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)
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

template<t_size p_size>
class config_object_fixed_const_impl_t< p_size >

Definition at line 52 of file config_object_impl.h.

Constructor & Destructor Documentation

template<t_size p_size>
config_object_fixed_const_impl_t< p_size >::config_object_fixed_const_impl_t ( const GUID p_guid,
const void *  p_data 
)
inline

Definition at line 54 of file config_object_impl.h.

54 : m_guid(p_guid) {memcpy(m_data,p_data,p_size);}

Member Function Documentation

template<t_size p_size>
void config_object_fixed_const_impl_t< p_size >::get_data ( stream_writer p_stream,
abort_callback p_abort 
) const
inlinevirtual

Implements config_object.

Definition at line 57 of file config_object_impl.h.

57 { p_stream->write_object(m_data,p_size,p_abort); }
template<t_size p_size>
GUID config_object_fixed_const_impl_t< p_size >::get_guid ( ) const
inlinevirtual

Implements config_object.

Definition at line 55 of file config_object_impl.h.

55 {return m_guid;}
template<t_size p_size>
void config_object_fixed_const_impl_t< p_size >::set_data ( stream_reader p_stream,
abort_callback p_abort,
bool  p_notify 
)
inlinevirtual

Implements config_object.

Definition at line 58 of file config_object_impl.h.

58 { PFC_ASSERT(!"Should not get here."); }

Field Documentation

template<t_size p_size>
t_uint8 config_object_fixed_const_impl_t< p_size >::m_data[p_size]
private

Definition at line 61 of file config_object_impl.h.

template<t_size p_size>
const GUID config_object_fixed_const_impl_t< p_size >::m_guid
private

Definition at line 62 of file config_object_impl.h.


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