COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
covise::coConfigRoot Class Referenceabstract

#include <coConfigRoot.h>

Inheritance diagram for covise::coConfigRoot:
Inheritance graph
[legend]
Collaboration diagram for covise::coConfigRoot:
Collaboration graph
[legend]

Public Member Functions

 coConfigRoot (const QString &name, const QString &filename, bool create=false, coConfigGroup *group=NULL)
 
virtual ~coConfigRoot ()
 
virtual coConfigEntryStringList getScopeList (const QString &section=0, const QString &variableName=0) const
 
virtual coConfigEntryStringList getVariableList (const QString &section=0) const
 
virtual coConfigEntryString getValue (const QString &variable, const QString &section, const QString &defaultValue) const
 
virtual coConfigEntryString getValue (const QString &variable, const QString &section) const
 
virtual coConfigEntryString getValue (const QString &simpleVariable) const
 
virtual const char * getEntry (const char *simpleVariable) const
 
virtual bool isOn (const QString &variable, const QString &section, bool defaultValue) const
 
virtual bool isOn (const QString &variable, const QString &section) const
 
virtual bool isOn (const QString &simpleVariable, bool defaultValue) const
 
virtual bool isOn (const QString &simpleVariable) const
 
virtual void setValue (const QString &variable, const QString &value, const QString &section, const QString &targetHost=0, bool move=false)
 
virtual bool deleteValue (const QString &variable, const QString &section, const QString &targetHost=0)
 
virtual bool deleteSection (const QString &section, const QString &targetHost=0)
 
virtual QStringList getHostnameList () const
 
virtual QString getActiveHost () const
 
virtual bool setActiveHost (const QString &host)
 
virtual const QString & getConfigName () const
 
virtual void reload ()
 
virtual bool save (const QString &filename=QString::null) const
 
void setGroup (coConfigGroup *group)
 
void setReadOnly (bool ro)
 
bool isReadOnly () const
 
QStringList getHosts ()
 
coConfigEntrygetConfigForHost (const QString &hostname)
 
coConfigEntrygetGlobalConfig ()
 
virtual coConfigRootclone () const =0
 
virtual void merge (const coConfigRoot *with)=0
 

Static Public Member Functions

static coConfigRootcreateNew (const QString &name, const QString &filename, bool create=false, coConfigGroup *group=NULL)
 

Protected Member Functions

virtual void load (bool create=false)=0
 
void init ()
 
QString findConfigFile (const QString &filename, bool preferGlobal=false)
 
void findLocalConfig (const QString &filename, QFile &target)
 
void findGlobalConfig (const QString &filename, QFile &target)
 
void clear ()
 
virtual void createGlobalConfig ()=0
 
virtual void createHostConfig (const QString &hostname)=0
 

Protected Attributes

coConfigGroupgroup
 
QString filename
 
QString activeHostname
 
QStringList hostnames
 
QString configName
 
coConfigEntryglobalConfig
 
coConfigEntryhostConfig
 
QHash< QString, coConfigEntry * > hostConfigs
 
bool create
 
bool readOnly
 
QSet< QString > included
 

Friends

class coConfigXercesRoot
 

Constructor & Destructor Documentation

coConfigRoot::coConfigRoot ( const QString &  name,
const QString &  filename,
bool  create = false,
coConfigGroup group = NULL 
)
coConfigRoot::~coConfigRoot ( )
virtual

Member Function Documentation

void coConfigRoot::clear ( )
protected
virtual coConfigRoot* covise::coConfigRoot::clone ( ) const
pure virtual

Implemented in covise::coConfigXercesRoot.

virtual void covise::coConfigRoot::createGlobalConfig ( )
protectedpure virtual

Implemented in covise::coConfigXercesRoot.

virtual void covise::coConfigRoot::createHostConfig ( const QString &  hostname)
protectedpure virtual

Implemented in covise::coConfigXercesRoot.

coConfigRoot * coConfigRoot::createNew ( const QString &  name,
const QString &  filename,
bool  create = false,
coConfigGroup group = NULL 
)
static
bool coConfigRoot::deleteSection ( const QString &  section,
const QString &  targetHost = 0 
)
virtual
bool coConfigRoot::deleteValue ( const QString &  variable,
const QString &  section,
const QString &  targetHost = 0 
)
virtual
QString coConfigRoot::findConfigFile ( const QString &  filename,
bool  preferGlobal = false 
)
protected
void coConfigRoot::findGlobalConfig ( const QString &  filename,
QFile &  target 
)
protected
void coConfigRoot::findLocalConfig ( const QString &  filename,
QFile &  target 
)
protected
QString coConfigRoot::getActiveHost ( ) const
virtual
coConfigEntry * coConfigRoot::getConfigForHost ( const QString &  hostname)
const QString & coConfigRoot::getConfigName ( ) const
virtual
const char * coConfigRoot::getEntry ( const char *  simpleVariable) const
virtual
coConfigEntry* covise::coConfigRoot::getGlobalConfig ( )
inline
QStringList coConfigRoot::getHostnameList ( ) const
virtual
QStringList coConfigRoot::getHosts ( )
coConfigEntryStringList coConfigRoot::getScopeList ( const QString &  section = 0,
const QString &  variableName = 0 
) const
virtual
coConfigEntryString coConfigRoot::getValue ( const QString &  variable,
const QString &  section,
const QString &  defaultValue 
) const
virtual
coConfigEntryString coConfigRoot::getValue ( const QString &  variable,
const QString &  section 
) const
virtual
coConfigEntryString coConfigRoot::getValue ( const QString &  simpleVariable) const
virtual
coConfigEntryStringList coConfigRoot::getVariableList ( const QString &  section = 0) const
virtual
void coConfigRoot::init ( )
protected
bool coConfigRoot::isOn ( const QString &  variable,
const QString &  section,
bool  defaultValue 
) const
virtual
bool coConfigRoot::isOn ( const QString &  variable,
const QString &  section 
) const
virtual
bool coConfigRoot::isOn ( const QString &  simpleVariable,
bool  defaultValue 
) const
virtual
bool coConfigRoot::isOn ( const QString &  simpleVariable) const
virtual
bool coConfigRoot::isReadOnly ( ) const
virtual void covise::coConfigRoot::load ( bool  create = false)
protectedpure virtual

Implemented in covise::coConfigXercesRoot.

virtual void covise::coConfigRoot::merge ( const coConfigRoot with)
pure virtual

Implemented in covise::coConfigXercesRoot.

void coConfigRoot::reload ( )
virtual
bool coConfigRoot::save ( const QString &  filename = QString::null) const
virtual
bool coConfigRoot::setActiveHost ( const QString &  host)
virtual
void coConfigRoot::setGroup ( coConfigGroup group)
void coConfigRoot::setReadOnly ( bool  ro)
void coConfigRoot::setValue ( const QString &  variable,
const QString &  value,
const QString &  section,
const QString &  targetHost = 0,
bool  move = false 
)
virtual

Friends And Related Function Documentation

friend class coConfigXercesRoot
friend

Member Data Documentation

QString covise::coConfigRoot::activeHostname
protected
QString covise::coConfigRoot::configName
protected
bool covise::coConfigRoot::create
protected
QString covise::coConfigRoot::filename
protected
coConfigEntry* covise::coConfigRoot::globalConfig
protected
coConfigGroup* covise::coConfigRoot::group
protected
coConfigEntry* covise::coConfigRoot::hostConfig
protected
QHash<QString, coConfigEntry *> covise::coConfigRoot::hostConfigs
protected
QStringList covise::coConfigRoot::hostnames
protected
QSet<QString> covise::coConfigRoot::included
protected
bool covise::coConfigRoot::readOnly
protected

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