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

#include <componentversion.h>

+ Inheritance diagram for componentversion_impl_simple:

Public Member Functions

 componentversion_impl_simple (const char *p_name, const char *p_version, const char *p_about)
 
virtual void get_about_message (pfc::string_base &out)
 
virtual void get_component_name (pfc::string_base &out)
 
virtual void get_component_version (pfc::string_base &out)
 
virtual void get_file_name (pfc::string_base &out)
 
- Public Member Functions inherited from componentversion
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (componentversion)
 
- 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 char * about
 
const char * name
 
const char * version
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Implementation helper. You typically want to use DECLARE_COMPONENT_VERSION() instead.

Definition at line 13 of file componentversion.h.

Constructor & Destructor Documentation

componentversion_impl_simple::componentversion_impl_simple ( const char *  p_name,
const char *  p_version,
const char *  p_about 
)
inlineexplicit

Definition at line 21 of file componentversion.h.

21 : name(p_name), version(p_version), about(p_about ? p_about : "") {}

Member Function Documentation

virtual void componentversion_impl_simple::get_about_message ( pfc::string_base out)
inlinevirtual

Implements componentversion.

Definition at line 20 of file componentversion.h.

20 {out.set_string(about?about:"");}
virtual void set_string(const char *p_string, t_size p_length=~0)
Definition: string_base.h:198
virtual void componentversion_impl_simple::get_component_name ( pfc::string_base out)
inlinevirtual

Implements componentversion.

Definition at line 18 of file componentversion.h.

18 {out.set_string(name?name:"");}
virtual void set_string(const char *p_string, t_size p_length=~0)
Definition: string_base.h:198
virtual void componentversion_impl_simple::get_component_version ( pfc::string_base out)
inlinevirtual

Implements componentversion.

Definition at line 19 of file componentversion.h.

19 {out.set_string(version?version:"");}
virtual void set_string(const char *p_string, t_size p_length=~0)
Definition: string_base.h:198
virtual void componentversion_impl_simple::get_file_name ( pfc::string_base out)
inlinevirtual

Implements componentversion.

Definition at line 17 of file componentversion.h.

const char * get_my_file_name()
Retrieves filename of calling dll, excluding extension, e.g. "foo_asdf".
virtual void set_string(const char *p_string, t_size p_length=~0)
Definition: string_base.h:198

Field Documentation

const char * componentversion_impl_simple::about
private

Definition at line 14 of file componentversion.h.

const char* componentversion_impl_simple::name
private

Definition at line 14 of file componentversion.h.

const char * componentversion_impl_simple::version
private

Definition at line 14 of file componentversion.h.


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