17 using namespace ossim;
52 preferencesKWL().findKey( std::string(
"ossim_share_directory" ) );
54 if (!shareDir.
isDir())
55 throw ossimException(
"Nonexistent share drive provided for config files.");
58 configFilename =
"demToolConfig.json";
59 configFilename.
setPath(shareDir);
60 if (!open(configFilename))
90 "config file at <"<< configFilename <<
">. Error: "<<e.
what()<<endl;
This code was derived from https://gist.github.com/mshockwave.
ossimFilename & setPath(const ossimString &p)
virtual const char * what() const
Returns the error message.
static ossimPreferences * instance()
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)