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

#include <dsp.h>

+ Inheritance diagram for cfg_dsp_chain_config:

Public Member Functions

 cfg_dsp_chain_config (const GUID &p_guid)
 
t_size get_count () const
 
bool get_data (dsp_chain_config &p_data) const
 
const dsp_presetget_item (t_size p_index) const
 
void reset ()
 
void set_data (const dsp_chain_config &p_data)
 
- Public Member Functions inherited from cfg_var
GUID get_guid () const
 
- Public Member Functions inherited from cfg_var_reader
 cfg_var_reader (const GUID &guid)
 
 ~cfg_var_reader ()
 
- Public Member Functions inherited from cfg_var_writer
 cfg_var_writer (const GUID &guid)
 
 ~cfg_var_writer ()
 

Protected Member Functions

void get_data_raw (stream_writer *p_stream, abort_callback &p_abort)
 
void set_data_raw (stream_reader *p_stream, t_size p_sizehint, abort_callback &p_abort)
 
- Protected Member Functions inherited from cfg_var
 cfg_var (const GUID &p_guid)
 

Private Attributes

dsp_chain_config_impl m_data
 

Additional Inherited Members

- Static Public Member Functions inherited from cfg_var_reader
static void config_read_file (stream_reader *p_stream, abort_callback &p_abort)
 
- Static Public Member Functions inherited from cfg_var_writer
static void config_write_file (stream_writer *p_stream, abort_callback &p_abort)
 
- Data Fields inherited from cfg_var_reader
const GUID m_guid
 
- Data Fields inherited from cfg_var_writer
const GUID m_guid
 

Detailed Description

Definition at line 446 of file dsp.h.

Constructor & Destructor Documentation

cfg_dsp_chain_config::cfg_dsp_chain_config ( const GUID p_guid)
inline

Definition at line 452 of file dsp.h.

452 : cfg_var(p_guid) {}
cfg_var(const GUID &p_guid)
Definition: cfg_var.h:57

Member Function Documentation

t_size cfg_dsp_chain_config::get_count ( ) const
inline

Definition at line 453 of file dsp.h.

453 {return m_data.get_count();}
dsp_chain_config_impl m_data
Definition: dsp.h:458
t_size get_count() const
Definition: dsp.cpp:188
bool cfg_dsp_chain_config::get_data ( dsp_chain_config p_data) const

Definition at line 140 of file dsp.cpp.

140  {
141  p_data.copy(m_data);
142  return true;
143 }
dsp_chain_config_impl m_data
Definition: dsp.h:458
void copy(const dsp_chain_config &p_source)
Definition: dsp.cpp:251
void cfg_dsp_chain_config::get_data_raw ( stream_writer p_stream,
abort_callback p_abort 
)
protectedvirtual

Retrieves state of the variable. Called only from main thread, when writing configuration file.

Parameters
p_streamStream receiving state of the variable.

Implements cfg_var_writer.

Definition at line 153 of file dsp.cpp.

153  {
154  m_data.contents_to_stream(p_stream,p_abort);
155 }
void contents_to_stream(stream_writer *p_stream, abort_callback &p_abort) const
Definition: dsp.cpp:116
dsp_chain_config_impl m_data
Definition: dsp.h:458
const dsp_preset& cfg_dsp_chain_config::get_item ( t_size  p_index) const
inline

Definition at line 454 of file dsp.h.

454 {return m_data.get_item(p_index);}
dsp_chain_config_impl m_data
Definition: dsp.h:458
const dsp_preset & get_item(t_size p_index) const
Definition: dsp.cpp:193
void cfg_dsp_chain_config::reset ( )

Definition at line 149 of file dsp.cpp.

149  {
150  m_data.remove_all();
151 }
void remove_all()
Definition: dsp.cpp:171
dsp_chain_config_impl m_data
Definition: dsp.h:458
void cfg_dsp_chain_config::set_data ( const dsp_chain_config p_data)

Definition at line 145 of file dsp.cpp.

145  {
146  m_data.copy(p_data);
147 }
dsp_chain_config_impl m_data
Definition: dsp.h:458
void copy(const dsp_chain_config &p_source)
Definition: dsp.cpp:251
void cfg_dsp_chain_config::set_data_raw ( stream_reader p_stream,
t_size  p_sizehint,
abort_callback p_abort 
)
protectedvirtual

Sets state of the variable. Called only from main thread, when reading configuration file.

Parameters
p_streamStream containing new state of the variable.
p_sizehintNumber of bytes contained in the stream; reading past p_sizehint bytes will fail (EOF).

Implements cfg_var_reader.

Definition at line 157 of file dsp.cpp.

157  {
158  m_data.contents_from_stream(p_stream,p_abort);
159 }
dsp_chain_config_impl m_data
Definition: dsp.h:458
void contents_from_stream(stream_reader *p_stream, abort_callback &p_abort)
Definition: dsp.cpp:124

Field Documentation

dsp_chain_config_impl cfg_dsp_chain_config::m_data
private

Definition at line 458 of file dsp.h.


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