foobar2000 SDK  2015-08-03
Public Member Functions
advconfig_integer_factory

#include <advconfig.h>

+ Inheritance diagram for advconfig_integer_factory:

Public Member Functions

 advconfig_integer_factory (const char *p_name, const GUID &p_guid, const GUID &p_parent, double p_priority, t_uint64 p_initialstate, t_uint64 p_min, t_uint64 p_max, t_uint32 p_prefFlags=0)
 
t_uint64 get () const
 
 operator t_uint64 () const
 
t_uint64 operator= (t_uint64 val)
 
void set (t_uint64 val)
 
- Public Member Functions inherited from service_factory_single_t< advconfig_entry_integer_impl >
advconfig_entry_integer_implget_static_instance ()
 
const advconfig_entry_integer_implget_static_instance () const
 
 TEMPLATE_CONSTRUCTOR_FORWARD_FLOOD (service_factory_single_t, g_instance) void instance_create(service_ptr_t< service_base > &p_out)
 
- Public Member Functions inherited from service_factory_base_t< advconfig_entry_integer_impl::t_interface_entrypoint >
 service_factory_base_t ()
 
- Public Member Functions inherited from service_factory_base
const GUIDget_class_guid () const
 
virtual void instance_create (service_ptr_t< service_base > &p_out)=0
 

Additional Inherited Members

- Static Public Member Functions inherited from service_factory_base
static bool enum_create (service_ptr_t< service_base > &p_out, service_class_ref p_class, t_size p_index)
 
static service_class_ref enum_find_class (const GUID &p_guid)
 
static t_size enum_get_count (service_class_ref p_class)
 
static bool is_service_present (const GUID &g)
 
- Data Fields inherited from service_factory_base
service_factory_base__internal__next
 
- Static Public Attributes inherited from service_factory_base
static service_factory_base__internal__list = NULL
 
- Protected Member Functions inherited from service_factory_base
 service_factory_base (const GUID &p_guid, service_factory_base *&factoryList)
 
 ~service_factory_base ()
 

Detailed Description

Service factory helper around integer-specialized advconfig_entry_string implementation. Use this class to register your own integer entries in Advanced Preferences.
Usage: static advconfig_integer_factory myint(name, itemID, parentID, priority, initialValue, minValue, maxValue);.

Definition at line 227 of file advconfig.h.

Constructor & Destructor Documentation

advconfig_integer_factory::advconfig_integer_factory ( const char *  p_name,
const GUID p_guid,
const GUID p_parent,
double  p_priority,
t_uint64  p_initialstate,
t_uint64  p_min,
t_uint64  p_max,
t_uint32  p_prefFlags = 0 
)
inline

Definition at line 229 of file advconfig.h.

230  : service_factory_single_t<advconfig_entry_integer_impl>(p_name,p_guid,p_parent,p_priority,p_initialstate,p_min,p_max,p_prefFlags) {}

Member Function Documentation

t_uint64 advconfig_integer_factory::get ( ) const
inline

Definition at line 232 of file advconfig.h.

advconfig_entry_integer_impl & get_static_instance()
Definition: service.h:629
t_uint64 get_state_int() const
Definition: advconfig.h:206
advconfig_integer_factory::operator t_uint64 ( ) const
inline

Definition at line 235 of file advconfig.h.

235 {return get();}
t_uint64 advconfig_integer_factory::operator= ( t_uint64  val)
inline

Definition at line 236 of file advconfig.h.

236 {set(val); return val;}
void advconfig_integer_factory::set ( t_uint64  val)
inline

Definition at line 233 of file advconfig.h.

void set_state_int(t_uint64 val)
Definition: advconfig.h:207
advconfig_entry_integer_impl & get_static_instance()
Definition: service.h:629

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