Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members

Config::ConfigModule Class Reference

#include <py_config.h>

List of all members.

Public Member Functions

 ConfigModule (PyObject *parent, char *name)
ConfigModuleadd (char *name, PyObject *obj)
ConfigModuleadd (char *name, const char *str)
ConfigModuleadd (char *name, int value, API::EnumModule *_enum=0)
int getInteger (char *name)
char * getString (char *name)
int setInteger (char *name, int value)
int setString (char *name, const char *str)
PyObject * dict ()
char * name ()
 operator PyObject * ()
API::EnumModulegetEnum (std::string name)


Detailed Description

python module wrapper for saving settings


Constructor & Destructor Documentation

Config::ConfigModule::ConfigModule PyObject *  parent,
char *  name
 

creates a ConfigModule as child or parent with given name


Member Function Documentation

ConfigModule& Config::ConfigModule::add char *  name,
int  value,
API::EnumModule _enum = 0
 

adds an integer option which is a field of _enum

ConfigModule& Config::ConfigModule::add char *  name,
const char *  str
 

adds a string option and return itself

ConfigModule& Config::ConfigModule::add char *  name,
PyObject *  obj
 

adds a python object and return itself

PyObject* Config::ConfigModule::dict  ) 
 

returns dictionary of wrapped python module

API::EnumModule* Config::ConfigModule::getEnum std::string  name  )  [inline]
 

returns enum module of given option

int Config::ConfigModule::getInteger char *  name  ) 
 

retrieves integer from config module

char* Config::ConfigModule::getString char *  name  ) 
 

retrieves string from config module

char* Config::ConfigModule::name  ) 
 

returns name of config module

Config::ConfigModule::operator PyObject *  )  [inline]
 

casts config module to python object

int Config::ConfigModule::setInteger char *  name,
int  value
 

sets integer in config module

int Config::ConfigModule::setString char *  name,
const char *  str
 

sets string in config module


The documentation for this class was generated from the following file:
Generated on Sun May 2 20:02:58 2004 by doxygen 1.3.2