cfg_var_reader Class Reference

Reader part of cfg_var object. In most cases, you should use cfg_var instead of using cfg_var_reader directly. More...

#include <cfg_var.h>

Inheritance diagram for cfg_var_reader:

cfg_objListImporter< TObj, TImport > cfg_var cfg_dsp_chain_config cfg_guidlist cfg_int_t< t_inttype > cfg_obj< TObj > cfg_objList< TObj > cfg_objListEx< TList > cfg_string cfg_struct_t< t_struct > cfg_window_placement cfg_window_size config_object_fixed_impl_t< p_size > config_object_impl

List of all members.

Public Member Functions

 cfg_var_reader (const GUID &guid)
 ~cfg_var_reader ()
virtual void set_data_raw (stream_reader *p_stream, t_size p_sizehint, abort_callback &p_abort)=0

Static Public Member Functions

static void config_read_file (stream_reader *p_stream, abort_callback &p_abort)
 For internal use only, do not call.

Public Attributes

const GUID m_guid


Detailed Description

Reader part of cfg_var object. In most cases, you should use cfg_var instead of using cfg_var_reader directly.

Constructor & Destructor Documentation

cfg_var_reader::cfg_var_reader ( const GUID &  guid  )  [inline]

Parameters:
p_guid GUID of the variable, used to identify variable implementations owning specific configuration file entries when reading the configuration file back. You must generate a new GUID every time you declare a new cfg_var.

cfg_var_reader::~cfg_var_reader (  )  [inline]


Member Function Documentation

virtual void cfg_var_reader::set_data_raw ( stream_reader *  p_stream,
t_size  p_sizehint,
abort_callback &  p_abort 
) [pure 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).

Implemented in cfg_int_t< t_inttype >, cfg_string, cfg_struct_t< t_struct >, cfg_objList< TObj >, cfg_objListEx< TList >, cfg_obj< TObj >, cfg_dsp_chain_config, cfg_guidlist, cfg_window_placement, cfg_window_size, cfg_int_t< bool >, and cfg_int_t< uint64_t >.

static void cfg_var_reader::config_read_file ( stream_reader *  p_stream,
abort_callback &  p_abort 
) [static]

For internal use only, do not call.


Member Data Documentation


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