foobar2000 SDK  2015-08-03
Public Member Functions
dsp_entry_impl_nopreset_t< T, t_entry >

#include <dsp.h>

+ Inheritance diagram for dsp_entry_impl_nopreset_t< T, t_entry >:

Public Member Functions

bool get_default_preset (dsp_preset &p_out)
 
GUID get_guid ()
 
void get_name (pfc::string_base &p_out)
 
bool have_config_popup ()
 
bool instantiate (service_ptr_t< dsp > &p_out, const dsp_preset &p_preset)
 
bool show_config_popup (dsp_preset &p_data, HWND p_parent)
 

Detailed Description

template<class T, class t_entry = dsp_entry>
class dsp_entry_impl_nopreset_t< T, t_entry >

Definition at line 320 of file dsp.h.

Member Function Documentation

template<class T, class t_entry = dsp_entry>
bool dsp_entry_impl_nopreset_t< T, t_entry >::get_default_preset ( dsp_preset p_out)
inline

Definition at line 323 of file dsp.h.

324  {
325  p_out.set_owner(T::g_get_guid());
326  p_out.set_data(0,0);
327  return true;
328  }
virtual void set_owner(const GUID &p_owner)=0
virtual void set_data(const void *p_data, t_size p_data_size)=0
template<class T, class t_entry = dsp_entry>
GUID dsp_entry_impl_nopreset_t< T, t_entry >::get_guid ( )
inline

Definition at line 338 of file dsp.h.

338 {return T::g_get_guid();}
template<class T, class t_entry = dsp_entry>
void dsp_entry_impl_nopreset_t< T, t_entry >::get_name ( pfc::string_base p_out)
inline

Definition at line 322 of file dsp.h.

322 {T::g_get_name(p_out);}
template<class T, class t_entry = dsp_entry>
bool dsp_entry_impl_nopreset_t< T, t_entry >::have_config_popup ( )
inline

Definition at line 340 of file dsp.h.

340 {return false;}
template<class T, class t_entry = dsp_entry>
bool dsp_entry_impl_nopreset_t< T, t_entry >::instantiate ( service_ptr_t< dsp > &  p_out,
const dsp_preset p_preset 
)
inline

Definition at line 329 of file dsp.h.

330  {
331  if (p_preset.get_owner() == T::g_get_guid() && p_preset.get_data_size() == 0)
332  {
333  p_out = new service_impl_t<T>();
334  return p_out.is_valid();
335  }
336  else return false;
337  }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Definition: service_impl.h:4
bool is_valid() const
Definition: service.h:119
virtual t_size get_data_size() const =0
virtual GUID get_owner() const =0
template<class T, class t_entry = dsp_entry>
bool dsp_entry_impl_nopreset_t< T, t_entry >::show_config_popup ( dsp_preset p_data,
HWND  p_parent 
)
inline

Definition at line 341 of file dsp.h.

341 {return false;}

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