COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
covise::coConfigGroup Class Reference

#include <coConfigGroup.h>

Public Member Functions

 coConfigGroup (const QString &groupName)
 
virtual ~coConfigGroup ()
 
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 &configuration=QString::null, const QString &targetHost=QString::null, bool move=false)
 
virtual void setValue (const QString &simpleVariable, const QString &value)
 
virtual bool deleteValue (const QString &variable, const QString &section, const QString &configuration=QString::null, const QString &targetHost=QString::null)
 
virtual bool deleteSection (const QString &section, const QString &configuration=QString::null, const QString &targetHost=QString::null)
 
virtual QStringList getHostnameList ()
 
virtual QString getActiveHost () const
 
virtual bool setActiveHost (const QString &host)
 
virtual const QString & getGroupName () const
 
virtual void reload ()
 
virtual coConfigRootaddConfig (const QString &filename, const QString &name, bool create=false)
 
virtual void removeConfig (const QString &name)
 
virtual bool save (const QString &filename=QString::null) const
 
void setReadOnly (const QString &config, bool ro)
 
void setReadOnly (bool ro)
 
bool isReadOnly (const QString &config) const
 
bool isReadOnly () const
 
virtual coConfigGroupclone () const
 
virtual void merge (const coConfigGroup *with)
 
void flatten ()
 

Private Member Functions

 coConfigGroup (const coConfigGroup *source)
 

Private Attributes

QString activeHostname
 
QStringList hostnames
 
QString groupName
 
bool readOnly
 
QHash< QString, coConfigRoot * > configs
 

Constructor & Destructor Documentation

coConfigGroup::coConfigGroup ( const QString &  groupName)
coConfigGroup::~coConfigGroup ( )
virtual
coConfigGroup::coConfigGroup ( const coConfigGroup source)
private

Member Function Documentation

coConfigRoot * coConfigGroup::addConfig ( const QString &  filename,
const QString &  name,
bool  create = false 
)
virtual
coConfigGroup * coConfigGroup::clone ( ) const
virtual
bool coConfigGroup::deleteSection ( const QString &  section,
const QString &  configuration = QString::null,
const QString &  targetHost = QString::null 
)
virtual
bool coConfigGroup::deleteValue ( const QString &  variable,
const QString &  section,
const QString &  configuration = QString::null,
const QString &  targetHost = QString::null 
)
virtual
void coConfigGroup::flatten ( )

Flattens the configuration structure that only one tree remains. The name of the configuration is taken from the first configuration.

QString coConfigGroup::getActiveHost ( ) const
virtual
const char * coConfigGroup::getEntry ( const char *  simpleVariable) const
virtual
const QString & coConfigGroup::getGroupName ( ) const
virtual
QStringList coConfigGroup::getHostnameList ( )
virtual
coConfigEntryStringList coConfigGroup::getScopeList ( const QString &  section = 0,
const QString &  variableName = 0 
) const
virtual
coConfigEntryString coConfigGroup::getValue ( const QString &  variable,
const QString &  section,
const QString &  defaultValue 
) const
virtual
coConfigEntryString coConfigGroup::getValue ( const QString &  variable,
const QString &  section 
) const
virtual
coConfigEntryString coConfigGroup::getValue ( const QString &  simpleVariable) const
virtual
coConfigEntryStringList coConfigGroup::getVariableList ( const QString &  section = 0) const
virtual
bool coConfigGroup::isOn ( const QString &  variable,
const QString &  section,
bool  defaultValue 
) const
virtual
bool coConfigGroup::isOn ( const QString &  variable,
const QString &  section 
) const
virtual
bool coConfigGroup::isOn ( const QString &  simpleVariable,
bool  defaultValue 
) const
virtual
bool coConfigGroup::isOn ( const QString &  simpleVariable) const
virtual
bool coConfigGroup::isReadOnly ( const QString &  config) const
bool coConfigGroup::isReadOnly ( ) const
void coConfigGroup::merge ( const coConfigGroup with)
virtual
void coConfigGroup::reload ( )
virtual
void coConfigGroup::removeConfig ( const QString &  name)
virtual
bool coConfigGroup::save ( const QString &  filename = QString::null) const
virtual
bool coConfigGroup::setActiveHost ( const QString &  host)
virtual
void coConfigGroup::setReadOnly ( const QString &  config,
bool  ro 
)
void coConfigGroup::setReadOnly ( bool  ro)
void coConfigGroup::setValue ( const QString &  variable,
const QString &  value,
const QString &  section,
const QString &  configuration = QString::null,
const QString &  targetHost = QString::null,
bool  move = false 
)
virtual
void coConfigGroup::setValue ( const QString &  simpleVariable,
const QString &  value 
)
virtual

Member Data Documentation

QString covise::coConfigGroup::activeHostname
private
QHash<QString, coConfigRoot *> covise::coConfigGroup::configs
private
QString covise::coConfigGroup::groupName
private
QStringList covise::coConfigGroup::hostnames
private
bool covise::coConfigGroup::readOnly
private

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