28 static ossimTrace traceExec (
"ossimPreferences:exec");
29 static ossimTrace traceDebug (
"ossimPreferences:debug");
31 static const char* PREF_FILE_ENV_VAR_NAME =
"OSSIM_PREFS_FILE";
80 static const char MODULE[] =
"ossimPreferences::loadPreferences()";
84 <<
"DEBUG: " << MODULE <<
" entering...\n";
87 bool parsed_ok =
false;
92 char* pref_filename = getenv(PREF_FILE_ENV_VAR_NAME);
111 <<
"WARNING: " << MODULE
112 <<
", an error was encountered loading the prefererences " 114 <<
"environment variable \"" << PREF_FILE_ENV_VAR_NAME <<
"\"." 115 <<
"Preferences were not loaded.\n";
123 <<
"DEBUG: " << MODULE <<
"returning...\n";
136 static const char MODULE[] =
"ossimPreferences::loadPreferences(filename)";
140 <<
"DEBUG: " << MODULE <<
", entering...\n";
163 <<
"WARNING: " << MODULE
164 <<
", an error was encountered loading the prefererences " 165 <<
"file at \"" << pathname <<
"\". Preferences were not " 172 <<
"DEBUG: " << MODULE<<
", returning...\n";
186 static const char MODULE[] =
"ossimPreferences::savePreferences()";
190 <<
"DEBUG: " << MODULE <<
", entering...\n";
207 <<
"DEBUG:" << MODULE <<
", returning...\n";
221 static const char MODULE[] =
"ossimPreferences::savePreferences()";
225 <<
"DEBUG: "<< MODULE <<
", entering...\n";
241 <<
"DEBUG: " << MODULE <<
", returning...\n";
Represents serializable keyword/value map.
bool addFile(const char *file)
virtual bool write(const char *file, const char *comment=0) const
Methods to dump the ossimKeywordlist to a file on disk.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
bool savePreferences() const
static ossimPreferences * theInstance
static ossimPreferences * instance()
void addPreference(const char *key, const char *value)
void addPreferences(const ossimKeywordlist &kwl, const char *prefix=0, bool stripPrefix=true)
bool theInstanceIsModified
ossimFilename thePrefFilename
void setExpandEnvVarsFlag(bool flag)
ossimFilename getPreferencesFilename() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)