#include <cfg_var.h>

Public Member Functions | |
| cfg_int_t (const GUID &p_guid, t_inttype p_default) | |
| const cfg_int_t< t_inttype > & | operator= (const cfg_int_t< t_inttype > &p_val) |
| t_inttype | operator= (t_inttype p_val) |
| operator t_inttype () const | |
| t_inttype | get_value () 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_int_t< t_inttype >::cfg_int_t | ( | const GUID & | p_guid, | |
| t_inttype | p_default | |||
| ) | [inline, explicit] |
| 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. | |
| p_default | Default value of the variable. |
| void cfg_int_t< t_inttype >::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_int_t< t_inttype >::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_int_t<t_inttype>& cfg_int_t< t_inttype >::operator= | ( | const cfg_int_t< t_inttype > & | p_val | ) | [inline] |
| t_inttype cfg_int_t< t_inttype >::operator= | ( | t_inttype | p_val | ) | [inline] |
| cfg_int_t< t_inttype >::operator t_inttype | ( | ) | const [inline] |
| t_inttype cfg_int_t< t_inttype >::get_value | ( | ) | const [inline] |
1.5.5