![]() |
anatomist
4.7.0
3D neuroimaging data viewer
|
This class stores global configuration settings, read by default from $HOME/.anatomist/config/settings.cfg. More...
#include <anatomist/application/globalConfig.h>


Public Member Functions | |
| GlobalConfiguration () | |
| virtual | ~GlobalConfiguration () |
| virtual std::string | configFilename (const std::string &initial) |
| Builds a default config filename if not given. More... | |
| virtual void | load (const std::string &filename="") |
| virtual void | apply () |
| applies config settings to the program More... | |
| virtual void | update () |
| updates the config from the current program state More... | |
| virtual void | save (const std::string &filename="") |
| void | registerLocalConfiguration (LocalConfiguration *cfg) |
| void | unregisterLocalConfiguration (LocalConfiguration *cfg) |
Public Member Functions inherited from Tree | |
| Tree (bool allowChildren=true, const std::string &str="") | |
| virtual | ~Tree () |
| virtual bool | check (const carto::SyntaxSet &syntax, std::set< std::string > &missing) const |
| std::set< Tree * > | getElementsWith (const std::string &, bool recurse=true) const |
| std::set< Tree * > | getElementsWith (const std::string &, const T &, bool recurse=true) const |
| virtual size_t | size () const __attribute__((__deprecated__)) |
| virtual size_t | childrenSize () const |
| virtual void | accept (TreeVisitor &visitor) |
| virtual void | const_accept (ConstTreeVisitor &visitor) const |
| virtual void | accept (TreeVisitor &visitor) |
| virtual void | const_accept (ConstTreeVisitor &visitor) const |
Public Member Functions inherited from carto::SyntaxedObject< T > | |
| SyntaxedObject (const std::string &s) | |
| SyntaxedObject (const SyntaxedObject &x) | |
| SyntaxedObject (const SyntaxedObject< PropertySet > &x) | |
Public Member Functions inherited from BaseTree | |
| BaseTree (bool allowsChildren=true) | |
| virtual | ~BaseTree () |
| const std::list< BaseTree *> & | children () const |
| bool | getAllowsChildren () const |
| BaseTree * | getChildAt (unsigned childIndex) const |
| int | getIndex (BaseTree *node) const |
| BaseTree * | getParent () const |
| BaseTree * | getTopParent () |
| const BaseTree * | getTopParent () const |
| bool | isLeaf () const |
| void | insert (BaseTree *child, int index=-1) |
| void | remove (unsigned index) |
| void | remove (BaseTree *node) |
| void | removeFromParent () |
| void | setParent (BaseTree *newParent) |
| void | clear () |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | rend () const |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | rend () const |
Protected Member Functions | |
| virtual void | initSyntax () |
Protected Attributes | |
| std::string | _filename |
| carto::SyntaxSet | _syntax |
| std::list< LocalConfiguration * > | _configs |
Additional Inherited Members | |
Public Types inherited from carto::SyntaxedObject< T > | |
| typedef internal::SyntaxedObjectSwitch< T, SUPERSUBCLASS(Interface, T)>::ContentType | ContentType |
Public Types inherited from BaseTree | |
| typedef std::list< BaseTree *>::iterator | iterator |
| typedef std::list< BaseTree *>::const_iterator | const_iterator |
| typedef std::list< BaseTree *>::reverse_iterator | reverse_iterator |
| typedef std::list< BaseTree *>::const_reverse_iterator | const_reverse_iterator |
This class stores global configuration settings, read by default from $HOME/.anatomist/config/settings.cfg.
Definition at line 52 of file globalConfig.h.
| anatomist::GlobalConfiguration::GlobalConfiguration | ( | ) |
|
virtual |
|
virtual |
applies config settings to the program
|
virtual |
Builds a default config filename if not given.
If initial is not empty, simply returns it. If initial is empty, returns the default path ( ~/.anatomist/config/settings.cfg )
|
protectedvirtual |
|
virtual |
| void anatomist::GlobalConfiguration::registerLocalConfiguration | ( | LocalConfiguration * | cfg | ) |
|
virtual |
| void anatomist::GlobalConfiguration::unregisterLocalConfiguration | ( | LocalConfiguration * | cfg | ) |
|
virtual |
updates the config from the current program state
|
protected |
Definition at line 78 of file globalConfig.h.
|
protected |
Definition at line 76 of file globalConfig.h.
|
protected |
Definition at line 77 of file globalConfig.h.