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

#include <dsp.h>

+ Inheritance diagram for dsp_preset_impl:

Public Member Functions

 dsp_preset_impl ()
 
 dsp_preset_impl (const dsp_preset_impl &p_source)
 
 dsp_preset_impl (const dsp_preset &p_source)
 
const void * get_data () const
 
t_size get_data_size () const
 
GUID get_owner () const
 
const dsp_preset_imploperator= (const dsp_preset_impl &p_source)
 
const dsp_preset_imploperator= (const dsp_preset &p_source)
 
void set_data (const void *p_data, t_size p_data_size)
 
void set_data_from_stream (stream_reader *p_stream, t_size p_bytes, abort_callback &p_abort)
 
void set_owner (const GUID &p_owner)
 
- Public Member Functions inherited from dsp_preset
void contents_from_stream (stream_reader *p_stream, abort_callback &p_abort)
 
void contents_to_stream (stream_writer *p_stream, abort_callback &p_abort) const
 
void copy (const dsp_preset &p_source)
 
bool operator!= (const dsp_preset &p_other) const
 
const dsp_presetoperator= (const dsp_preset &p_source)
 
bool operator== (const dsp_preset &p_other) const
 

Private Attributes

pfc::array_t< t_uint8m_data
 
GUID m_owner
 

Additional Inherited Members

- Static Public Member Functions inherited from dsp_preset
static void g_contents_from_stream_skip (stream_reader *p_stream, abort_callback &p_abort)
 
- Protected Member Functions inherited from dsp_preset
 dsp_preset ()
 
 ~dsp_preset ()
 

Detailed Description

Definition at line 252 of file dsp.h.

Constructor & Destructor Documentation

dsp_preset_impl::dsp_preset_impl ( )
inline

Definition at line 255 of file dsp.h.

255 {}
dsp_preset_impl::dsp_preset_impl ( const dsp_preset_impl p_source)
inline

Definition at line 256 of file dsp.h.

256 {copy(p_source);}
void copy(const dsp_preset &p_source)
Definition: dsp.h:197
dsp_preset_impl::dsp_preset_impl ( const dsp_preset p_source)
inline

Definition at line 257 of file dsp.h.

257 {copy(p_source);}
void copy(const dsp_preset &p_source)
Definition: dsp.h:197

Member Function Documentation

const void* dsp_preset_impl::get_data ( ) const
inlinevirtual

Implements dsp_preset.

Definition at line 264 of file dsp.h.

264 {return m_data.get_ptr();}
const t_item * get_ptr() const
Definition: array.h:213
pfc::array_t< t_uint8 > m_data
Definition: dsp.h:270
t_size dsp_preset_impl::get_data_size ( ) const
inlinevirtual

Implements dsp_preset.

Definition at line 265 of file dsp.h.

265 {return m_data.get_size();}
pfc::array_t< t_uint8 > m_data
Definition: dsp.h:270
t_size get_size() const
Definition: array.h:130
GUID dsp_preset_impl::get_owner ( ) const
inlinevirtual

Implements dsp_preset.

Definition at line 262 of file dsp.h.

262 {return m_owner;}
GUID m_owner
Definition: dsp.h:269
const dsp_preset_impl& dsp_preset_impl::operator= ( const dsp_preset_impl p_source)
inline

Definition at line 259 of file dsp.h.

259 {copy(p_source); return *this;}
void copy(const dsp_preset &p_source)
Definition: dsp.h:197
const dsp_preset_impl& dsp_preset_impl::operator= ( const dsp_preset p_source)
inline

Definition at line 260 of file dsp.h.

260 {copy(p_source); return *this;}
void copy(const dsp_preset &p_source)
Definition: dsp.h:197
void dsp_preset_impl::set_data ( const void *  p_data,
t_size  p_data_size 
)
inlinevirtual

Implements dsp_preset.

Definition at line 266 of file dsp.h.

266 {m_data.set_data_fromptr((const t_uint8*)p_data,p_data_size);}
uint8_t t_uint8
Definition: int_types.h:9
pfc::array_t< t_uint8 > m_data
Definition: dsp.h:270
void set_data_fromptr(const t_source *p_buffer, t_size p_count)
Warning: buffer pointer must not point to buffer allocated by this array (fixme). ...
Definition: array.h:139
void dsp_preset_impl::set_data_from_stream ( stream_reader p_stream,
t_size  p_bytes,
abort_callback p_abort 
)
virtual

Implements dsp_preset.

Definition at line 246 of file dsp.cpp.

246  {
247  m_data.set_size(p_bytes);
248  if (p_bytes > 0) p_stream->read_object(m_data.get_ptr(),p_bytes,p_abort);
249 }
const t_item * get_ptr() const
Definition: array.h:213
void set_size(t_size p_size)
Definition: array.h:104
pfc::array_t< t_uint8 > m_data
Definition: dsp.h:270
void dsp_preset_impl::set_owner ( const GUID p_owner)
inlinevirtual

Implements dsp_preset.

Definition at line 263 of file dsp.h.

263 {m_owner = p_owner;}
GUID m_owner
Definition: dsp.h:269

Field Documentation

pfc::array_t<t_uint8> dsp_preset_impl::m_data
private

Definition at line 270 of file dsp.h.

GUID dsp_preset_impl::m_owner
private

Definition at line 269 of file dsp.h.


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