40 static Settings& fetch(
const char* settings_name=0);
42 bool write(
bool read_before=
true)
const;
46 bool reRead() {
return doRead(
false); }
51 static Settings* fetchExternal(
const char* settings_name,
52 const char* dtect_user,
53 const char* usr_settings_dir);
64 static Settings* doFetch(
const char*,
const char*,
const char*,
68 void remove() {
delete this; }
77 #define mSettUse(fn,basekey,key,value) \ 78 Settings::common().fn( IOPar::compKey(basekey,key), value ) 79 #define mSettGet(basekey,key) \ 81 Settings::common()[ IOPar::compKey(basekey,key) ] 82 #define mSettWrite() \ 84 Settings::common().write(); #define mExpClass(module)
Definition: commondefs.h:160
~Settings()
Definition: settings.h:60
bool reRead()
Definition: settings.h:46
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Settings(const char *fnm)
Definition: settings.h:58
#define mExternC(module)
Definition: commondefs.h:167
Settings class holds the user settings. It is an IOPar.
Definition: settings.h:34
BufferString fname_
Definition: settings.h:62
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
static Settings & common()
Definition: settings.h:38
Export_Basic const char * GetSettingsDataDir(void)