foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
advconfig_entry_string_impl_MT

#include <advconfig.h>

+ Inheritance diagram for advconfig_entry_string_impl_MT:

Public Member Functions

 advconfig_entry_string_impl_MT (const char *p_name, const GUID &p_guid, const GUID &p_parent, double p_priority, const char *p_initialstate, t_uint32 p_prefFlags)
 
void get_default_state (pfc::string_base &out)
 
t_uint32 get_flags ()
 
GUID get_guid ()
 
void get_name (pfc::string_base &p_out)
 
GUID get_parent ()
 
t_uint32 get_preferences_flags ()
 
double get_sort_priority ()
 
void get_state (pfc::string_base &p_out)
 
void reset ()
 
void set_state (const char *p_string, t_size p_length=~0)
 
- Public Member Functions inherited from advconfig_entry_string
 FB2K_MAKE_SERVICE_INTERFACE (advconfig_entry_string, advconfig_entry)
 
void get_default_state_ (pfc::string_base &out)
 
- Public Member Functions inherited from advconfig_entry
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (advconfig_entry)
 
t_uint32 get_preferences_flags_ ()
 
- 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

const pfc::string8 m_initialstate
 
const pfc::string8 m_name
 
const GUID m_parent
 
const t_uint32 m_prefFlags
 
const double m_priority
 
cfg_string m_state
 
critical_section m_sync
 

Additional Inherited Members

- Public Types inherited from advconfig_entry_string
enum  { flag_is_integer = 1 << 0, flag_is_signed = 1 << 1 }
 
- Public Types inherited from service_base
typedef service_base t_interface
 
- Static Public Member Functions inherited from advconfig_entry
static bool g_find (service_ptr_t< advconfig_entry > &out, const GUID &id)
 
template<typename outptr >
static bool g_find_t (outptr &out, const GUID &id)
 
- Static Public Attributes inherited from advconfig_entry
static const GUID guid_branch_decoding = { 0x904c272b, 0x2317, 0x4c3c, { 0xb2, 0xff, 0xc5, 0xa0, 0x12, 0x5e, 0x2c, 0xc2 } }
 
static const GUID guid_branch_display = { 0x6c4bc1c8, 0xbaf4, 0x40c3, { 0x9d, 0xb1, 0x9, 0x50, 0x7f, 0xc, 0xc, 0xb9 } }
 
static const GUID guid_branch_playback = { 0xc48d430d, 0x112, 0x4922, { 0x97, 0x23, 0x28, 0x38, 0xc7, 0xd9, 0x7d, 0xd7 } }
 
static const GUID guid_branch_tagging = { 0xe8fe273f, 0xdd00, 0x476e, { 0xa7, 0x90, 0xe5, 0x9d, 0xf6, 0xb8, 0xf8, 0xd4 } }
 
static const GUID guid_branch_tools = { 0x35365484, 0xcc58, 0x4926, { 0x97, 0xe1, 0x5e, 0x63, 0xf3, 0xab, 0xb9, 0xe2 } }
 
static const GUID guid_root = { 0x34949f34, 0xe655, 0x4f09, { 0xba, 0x50, 0xfa, 0xeb, 0x4d, 0x9b, 0x77, 0x69 } }
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Special version if advconfig_entry_string_impl that allows the value to be retrieved from worker threads.

Definition at line 255 of file advconfig.h.

Constructor & Destructor Documentation

advconfig_entry_string_impl_MT::advconfig_entry_string_impl_MT ( const char *  p_name,
const GUID p_guid,
const GUID p_parent,
double  p_priority,
const char *  p_initialstate,
t_uint32  p_prefFlags 
)
inline

Definition at line 257 of file advconfig.h.

258  : m_name(p_name), m_parent(p_parent), m_priority(p_priority), m_initialstate(p_initialstate), m_state(p_guid,p_initialstate), m_prefFlags(p_prefFlags) {}
const double m_priority
Definition: advconfig.h:282
const t_uint32 m_prefFlags
Definition: advconfig.h:284
const pfc::string8 m_name
Definition: advconfig.h:279
const pfc::string8 m_initialstate
Definition: advconfig.h:279
cfg_string m_state
Definition: advconfig.h:280
const GUID m_parent
Definition: advconfig.h:283

Member Function Documentation

void advconfig_entry_string_impl_MT::get_default_state ( pfc::string_base out)
inline

Definition at line 276 of file advconfig.h.

276 {out = m_initialstate;}
const pfc::string8 m_initialstate
Definition: advconfig.h:279
t_uint32 advconfig_entry_string_impl_MT::get_flags ( )
inlinevirtual

Implements advconfig_entry_string.

Definition at line 275 of file advconfig.h.

275 {return 0;}
GUID advconfig_entry_string_impl_MT::get_guid ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 260 of file advconfig.h.

260 {return m_state.get_guid();}
cfg_string m_state
Definition: advconfig.h:280
GUID get_guid() const
Definition: cfg_var.h:59
void advconfig_entry_string_impl_MT::get_name ( pfc::string_base p_out)
inlinevirtual

Implements advconfig_entry.

Definition at line 259 of file advconfig.h.

259 {p_out = m_name;}
const pfc::string8 m_name
Definition: advconfig.h:279
GUID advconfig_entry_string_impl_MT::get_parent ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 261 of file advconfig.h.

261 {return m_parent;}
const GUID m_parent
Definition: advconfig.h:283
t_uint32 advconfig_entry_string_impl_MT::get_preferences_flags ( )
inlinevirtual

Reimplemented from advconfig_entry_string_v2.

Definition at line 277 of file advconfig.h.

277 {return m_prefFlags;}
const t_uint32 m_prefFlags
Definition: advconfig.h:284
double advconfig_entry_string_impl_MT::get_sort_priority ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 266 of file advconfig.h.

266 {return m_priority;}
const double m_priority
Definition: advconfig.h:282
void advconfig_entry_string_impl_MT::get_state ( pfc::string_base p_out)
inlinevirtual

Implements advconfig_entry_string.

Definition at line 267 of file advconfig.h.

267  {
268  insync(m_sync);
269  p_out = m_state;
270  }
cfg_string m_state
Definition: advconfig.h:280
critical_section m_sync
Definition: advconfig.h:281
void advconfig_entry_string_impl_MT::reset ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 262 of file advconfig.h.

262  {
263  insync(m_sync);
265  }
const pfc::string8 m_initialstate
Definition: advconfig.h:279
cfg_string m_state
Definition: advconfig.h:280
critical_section m_sync
Definition: advconfig.h:281
void advconfig_entry_string_impl_MT::set_state ( const char *  p_string,
t_size  p_length = ~0 
)
inlinevirtual

Implements advconfig_entry_string.

Definition at line 271 of file advconfig.h.

271  {
272  insync(m_sync);
273  m_state.set_string(p_string,p_length);
274  }
void set_string(const char *p_string, t_size p_length=~0)
Definition: string8_impl.h:15
cfg_string m_state
Definition: advconfig.h:280
critical_section m_sync
Definition: advconfig.h:281

Field Documentation

const pfc::string8 advconfig_entry_string_impl_MT::m_initialstate
private

Definition at line 279 of file advconfig.h.

const pfc::string8 advconfig_entry_string_impl_MT::m_name
private

Definition at line 279 of file advconfig.h.

const GUID advconfig_entry_string_impl_MT::m_parent
private

Definition at line 283 of file advconfig.h.

const t_uint32 advconfig_entry_string_impl_MT::m_prefFlags
private

Definition at line 284 of file advconfig.h.

const double advconfig_entry_string_impl_MT::m_priority
private

Definition at line 282 of file advconfig.h.

cfg_string advconfig_entry_string_impl_MT::m_state
private

Definition at line 280 of file advconfig.h.

critical_section advconfig_entry_string_impl_MT::m_sync
private

Definition at line 281 of file advconfig.h.


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