cfg_obj< TObj > Class Template Reference

#include <cfg_var.h>

Inheritance diagram for cfg_obj< TObj >:

cfg_var cfg_var_reader cfg_var_writer

List of all members.

Public Member Functions

 cfg_obj (const GUID &guid)
template<typename TInitData>
 cfg_obj (const GUID &guid, const TInitData &initData)
TObj & val ()
TObj const & val () const
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)

template<typename TObj>
class cfg_obj< TObj >


Constructor & Destructor Documentation

template<typename TObj>
cfg_obj< TObj >::cfg_obj ( const GUID &  guid  )  [inline]

template<typename TObj>
template<typename TInitData>
cfg_obj< TObj >::cfg_obj ( const GUID &  guid,
const TInitData &  initData 
) [inline]


Member Function Documentation

template<typename TObj>
TObj& cfg_obj< TObj >::val (  )  [inline]

template<typename TObj>
TObj const& cfg_obj< TObj >::val (  )  const [inline]

template<typename TObj>
void cfg_obj< TObj >::get_data_raw ( stream_writer *  p_stream,
abort_callback &  p_abort 
) [inline, virtual]

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

Parameters:
p_stream Stream receiving state of the variable.

Implements cfg_var_writer.

template<typename TObj>
void cfg_obj< TObj >::set_data_raw ( stream_reader *  p_stream,
t_size  p_sizehint,
abort_callback &  p_abort 
) [inline, virtual]

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

Parameters:
p_stream Stream containing new state of the variable.
p_sizehint Number of bytes contained in the stream; reading past p_sizehint bytes will fail (EOF).

Implements cfg_var_reader.


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

Generated on Fri Apr 25 18:49:41 2008 for foobar2000 SDK by  doxygen 1.5.5