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

#include <coConfigXercesRoot.h>

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

Public Member Functions

 coConfigXercesRoot (const QString &name, const QString &filename, bool create=false, coConfigGroup *group=NULL)
 
 coConfigXercesRoot (const xercesc::DOMNode *node, const QString &name, const QString &filename=QString::null, coConfigGroup *group=NULL)
 
virtual ~coConfigXercesRoot ()
 
virtual coConfigRootclone () const
 
virtual void merge (const coConfigRoot *with)
 
- Public Member Functions inherited from covise::coConfigRoot
 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 ()
 

Private Member Functions

 coConfigXercesRoot (const coConfigXercesRoot *source)
 
void setContentsFromDom (const xercesc::DOMNode *node)
 
xercesc::DOMNode * loadFile (const QString &filename)
 
virtual void load (bool create=false)
 
virtual void createGlobalConfig ()
 
virtual void createHostConfig (const QString &hostname)
 

Additional Inherited Members

- Static Public Member Functions inherited from covise::coConfigRoot
static coConfigRootcreateNew (const QString &name, const QString &filename, bool create=false, coConfigGroup *group=NULL)
 
- Protected Member Functions inherited from covise::coConfigRoot
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 ()
 
- Protected Attributes inherited from covise::coConfigRoot
coConfigGroupgroup
 
QString filename
 
QString activeHostname
 
QStringList hostnames
 
QString configName
 
coConfigEntryglobalConfig
 
coConfigEntryhostConfig
 
QHash< QString, coConfigEntry * > hostConfigs
 
bool create
 
bool readOnly
 
QSet< QString > included
 

Constructor & Destructor Documentation

coConfigXercesRoot::coConfigXercesRoot ( const QString &  name,
const QString &  filename,
bool  create = false,
coConfigGroup group = NULL 
)
coConfigXercesRoot::coConfigXercesRoot ( const xercesc::DOMNode *  node,
const QString &  name,
const QString &  filename = QString::null,
coConfigGroup group = NULL 
)
coConfigXercesRoot::~coConfigXercesRoot ( )
virtual
coConfigXercesRoot::coConfigXercesRoot ( const coConfigXercesRoot source)
private

Creates a copy of a coConfigXercesRoot. The group the copy belongs to is set to 0. Makes a deep copy of all coConfigEntries belonging to this group.

Member Function Documentation

coConfigRoot * coConfigXercesRoot::clone ( ) const
virtual

Implements covise::coConfigRoot.

void coConfigXercesRoot::createGlobalConfig ( )
privatevirtual

Implements covise::coConfigRoot.

void coConfigXercesRoot::createHostConfig ( const QString &  hostname)
privatevirtual

Implements covise::coConfigRoot.

void coConfigXercesRoot::load ( bool  create = false)
privatevirtual

Implements covise::coConfigRoot.

xercesc::DOMNode * coConfigXercesRoot::loadFile ( const QString &  filename)
private
void coConfigXercesRoot::merge ( const coConfigRoot with)
virtual

Implements covise::coConfigRoot.

void coConfigXercesRoot::setContentsFromDom ( const xercesc::DOMNode *  node)
private

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