#include <cfg_var.h>

Public Member Functions | |
| cfg_struct_t (const GUID &p_guid, const t_struct &p_val) | |
| cfg_struct_t (const GUID &p_guid, int filler) | |
| const cfg_struct_t< t_struct > & | operator= (const cfg_struct_t< t_struct > &p_val) |
| const cfg_struct_t< t_struct > & | operator= (const t_struct &p_val) |
| const t_struct & | get_value () const |
| t_struct & | get_value () |
| operator t_struct () const | |
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) |
| cfg_struct_t< t_struct >::cfg_struct_t | ( | const GUID & | p_guid, | |
| const t_struct & | p_val | |||
| ) | [inline] |
| 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_struct_t< t_struct >::cfg_struct_t | ( | const GUID & | p_guid, | |
| int | filler | |||
| ) | [inline] |
| 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. |
| void cfg_struct_t< t_struct >::get_data_raw | ( | stream_writer * | p_stream, | |
| abort_callback & | p_abort | |||
| ) | [inline, protected, virtual] |
Retrieves state of the variable. Called only from main thread, when writing configuration file.
| p_stream | Stream receiving state of the variable. |
Implements cfg_var_writer.
| void cfg_struct_t< t_struct >::set_data_raw | ( | stream_reader * | p_stream, | |
| t_size | p_sizehint, | |||
| abort_callback & | p_abort | |||
| ) | [inline, protected, virtual] |
Sets state of the variable. Called only from main thread, when reading configuration file.
| 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.
| const cfg_struct_t<t_struct>& cfg_struct_t< t_struct >::operator= | ( | const cfg_struct_t< t_struct > & | p_val | ) | [inline] |
| const cfg_struct_t<t_struct>& cfg_struct_t< t_struct >::operator= | ( | const t_struct & | p_val | ) | [inline] |
| const t_struct& cfg_struct_t< t_struct >::get_value | ( | ) | const [inline] |
| t_struct& cfg_struct_t< t_struct >::get_value | ( | ) | [inline] |
| cfg_struct_t< t_struct >::operator t_struct | ( | ) | const [inline] |
1.5.5