config.h File Reference

Configuration Handles command line configuration and configuration files parsing. More...

#include "utils.h"
#include <list>

Go to the source code of this file.

Classes

class  CfgItem
 Configuration item. More...
class  Cfg
 Program configuration. More...
class  OptionFather
class  Option< T >
class  Options
 Management of command line configuration. More...

Defines

#define CFG_SEP   '='
#define CFG_COMMENT   "#"
#define DEFAULT_CFG   "default.cfg"
#define SINGLE_VALUE   -1

Typedefs

typedef list< CfgItemCfgItemList
typedef CfgItemList::iterator CfgItemListIter
typedef Option< int > OptionInt
typedef Option< bool > OptionBool
typedef Option< string > OptionString
typedef list< OptionFather * > OptionList

Enumerations

enum  itemType_e {
  IT_STR, IT_BOOL, IT_INT, IT_FLOAT,
  IT_INT_AR, IT_FLOAT_AR
}
enum  optionType_e { OT_STRING, OT_BOOL_POS, OT_BOOL_NEG, OT_INT }

Functions

bool fillItemFromString (void *item, itemType_e type, string s, int index=SINGLE_VALUE)
string getItemAsString (void *item, itemType_e type, int index=SINGLE_VALUE)

Variables

Cfg cfg
Options options


Detailed Description

Configuration Handles command line configuration and configuration files parsing.


Generated on Thu Aug 6 23:29:07 2009 for akimot by  doxygen 1.5.7.1