commore  1.0.6-SNAPSHOT
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::GlobVarLog Class Reference

#include <GlobVar.h>

+ Inheritance diagram for commore::GlobVarLog:

Public Member Functions

 GlobVarLog (const Symbol &module, const AChar *source_file_name)
 
 GlobVarLog (const Symbol &module, const AChar *source_file_name, Int defaultValue)
 
 operator Int () const
 
Int get () const
 
Int set (Int value)
 
GlobVarLogoperator++ (int)
 
GlobVarLogoperator-- (int)
 
- Public Member Functions inherited from commore::GlobVar
const Symbolget_module () const
 
const Symbolget_name () const
 

Static Public Member Functions

static size_t get_names (const Symbol &module, ListSymbol &names)
 
static Int get (const Symbol &module, const Symbol &name)
 
static Int set (const Symbol &module, const Symbol &name, Int value)
 
static Int get_default (const Symbol &module)
 
static Int get_default ()
 
static Int set_default (const Symbol &module, Int value)
 
static Int set_default (Int value)
 
- Static Public Member Functions inherited from commore::GlobVar
static size_t get_modules (ListSymbol &modules)
 

Additional Inherited Members

- Protected Member Functions inherited from commore::GlobVar
 GlobVar (const Symbol &module, const Symbol &name, int type)
 
- Protected Attributes inherited from commore::GlobVar
Impl * impl_
 

Detailed Description

Log level global variable Used by loggin macros

Constructor & Destructor Documentation

commore::GlobVarLog::GlobVarLog ( const Symbol module,
const AChar *  source_file_name 
)
Parameters
modulemodule name
source_file_namesource file name

Member Function Documentation

Int commore::GlobVarLog::get ( ) const
Returns
variable value
static Int commore::GlobVarLog::get ( const Symbol module,
const Symbol name 
)
static
Parameters
modulename
name
Returns
value of variable
static Int commore::GlobVarLog::get_default ( const Symbol module)
static
Parameters
modulename
Returns
the default value for module
static Int commore::GlobVarLog::get_default ( )
static
Returns
default value
static size_t commore::GlobVarLog::get_names ( const Symbol module,
ListSymbol names 
)
static

Get list of Int variable names of module

Parameters
modulename
names
commore::GlobVarLog::operator Int ( ) const
inline
Returns
global var value
GlobVarLog& commore::GlobVarLog::operator++ ( int  )

Increment variable value

GlobVarLog& commore::GlobVarLog::operator-- ( int  )

Decrement variable value

Int commore::GlobVarLog::set ( Int  value)

Set variable value

Parameters
valuenew variable value
Returns
previous variable value
static Int commore::GlobVarLog::set ( const Symbol module,
const Symbol name,
Int  value 
)
static

Set a Int variable value

Parameters
modulename
name
valuenew variable value
Returns
previous value of variable
static Int commore::GlobVarLog::set_default ( const Symbol module,
Int  value 
)
static

Set module default value

Parameters
modulename
valuenew value
Returns
previous value
static Int commore::GlobVarLog::set_default ( Int  value)
static

Set default value

Parameters
valuenew value
Returns
previous value

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