0.45.0
![]() |
#include <iConfig.h>
Inherits igor::iModule< iConfig >.
Public Member Functions | |
void | read (const iaString &filename) |
bool | write (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 | hasValue (const iaString &setting) const |
void | setValue (const iaString &setting, const iaString &value) |
void | setValue (const iaString &setting, const std::vector< iaString > &values) |
Friends | |
class | iModule< iConfig > |
Additional Inherited Members | |
![]() | |
static IGOR_INLINE iConfig & | getInstance () |
static IGOR_INLINE bool | isInstantiated () |
static void | createInstance () |
static void | destroyInstance () |
![]() | |
iModule ()=default | |
virtual | ~iModule ()=default |
reader for general Igor configuration file.
usually located at config/Igor.xml
key | the given setting |
key | the given setting |
key | the given setting |
key | the given setting |
bool igor::iConfig::hasValue | ( | const iaString & | setting | ) | const |
setting | the given setting |
void igor::iConfig::read | ( | const iaString & | filename | ) |
opens and reads configuration file from filesystem.
using tinyXML API
filename | path to configuration file |
sets value on setting and overrides all values that been there before
setting | the setting to set |
value | the value to set |
sets multiple values on setting and overrides all values that been there before
setting | the setting to set |
values | the values to set |
bool igor::iConfig::write | ( | const iaString & | filename = "" | ) |
writes current configuration to given file
filename | the given filename |