0.44.0
|
#include <iConfigReader.h>
Inherits igor::iModule< iConfigReader >.
Public Member Functions | |
void | readConfiguration (const iaString &filename) |
bool | writeConfiguration (const iaString &filename) |
const iaString | getValue (const iaString &setting) const |
int64 | getValueAsInt (const iaString &setting) const |
float64 | getValueAsFloat (const iaString &setting) const |
const std::vector< iaString > | getValueAsArray (const iaString &setting) const |
bool | hasSetting (const iaString &setting) const |
Friends | |
class | iModule< iConfigReader > |
Additional Inherited Members | |
Static Public Member Functions inherited from igor::iModule< iConfigReader > | |
static IGOR_INLINE iConfigReader & | getInstance () |
static IGOR_INLINE bool | isInstantiated () |
static void | create () |
static void | destroy () |
Protected Member Functions inherited from igor::iModule< iConfigReader > | |
iModule ()=default | |
virtual | ~iModule ()=default |
reader for general Igor configuration file.
usually located at config/Igor.xml
key | the given setting |
const std::vector< iaString > igor::iConfigReader::getValueAsArray | ( | const iaString & | setting | ) | const |
key | the given setting |
key | the given setting |
key | the given setting |
bool igor::iConfigReader::hasSetting | ( | const iaString & | setting | ) | const |
setting | the given setting |
void igor::iConfigReader::readConfiguration | ( | const iaString & | filename | ) |
opens and reads configuration file from filesystem.
using tinyXML API
filename | path to configuration file |
bool igor::iConfigReader::writeConfiguration | ( | const iaString & | filename | ) |
writes current configuration to given file
filename | the given filename |
|
friend |