OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Singleton class maintaining parameters affecting the automatic tie point generation. More...
#include <ossimDemToolConfig.h>
Public Member Functions | |
virtual | ~ossimDemToolConfig () |
Destructor. More... | |
bool | readConfig (const std::string &configName="") |
bool | diagnosticLevel (unsigned int level) const |
Convenience method returns TRUE if the currently set diagnostic level is <= level. More... | |
![]() | |
JsonConfig () | |
Default Ctor loads all default .json files in the share/ossim system dir. More... | |
JsonConfig (const ossimFilename &configFile) | |
virtual | ~JsonConfig () |
Destructor. More... | |
bool | open (const ossimFilename &configFile) |
Opens and parses JSON file. The "parameters" keyword is expected in the root node. More... | |
virtual void | loadJSON (const Json::Value ¶ms_json_node) |
Reads the params controlling the process from the JSON node named "parameters". More... | |
virtual void | saveJSON (Json::Value ¶ms_json_node) const |
Reads the params controlling the process from the JSON node named "parameters". More... | |
JsonParam & | getParameter (const char *paramName) |
Returns a parameter (might be a null parameter if paramName not found in the configuration. More... | |
void | setParameter (const JsonParam &p) |
Adds parameter to the configuration. More... | |
bool | diagnosticLevel (unsigned int level) const |
Convenience method returns TRUE if the currently set diagnostic level is <= level. More... | |
bool | paramExists (const char *paramName) const |
![]() | |
JsonInterface () | |
virtual | ~JsonInterface () |
Static Public Member Functions | |
static ossimDemToolConfig & | instance () |
Singleton implementation. More... | |
Private Member Functions | |
ossimDemToolConfig () | |
ossimDemToolConfig (const ossimDemToolConfig &) | |
Additional Inherited Members | |
![]() | |
JsonConfig (const JsonConfig &) | |
bool | getBoolValue (bool &rtn_val, const std::string &json_value) const |
![]() | |
std::map< std::string, JsonParam > | m_paramsMap |
![]() | |
static JsonParam | s_nullParam |
Singleton class maintaining parameters affecting the automatic tie point generation.
The state is imported and exported via JSON. There are default configuration files that must be part of the install, that are accessed by this class. Custom settings can also be st
Definition at line 22 of file ossimDemToolConfig.h.
|
virtual |
Destructor.
Definition at line 33 of file ossimDemToolConfig.cpp.
|
private |
Definition at line 25 of file ossimDemToolConfig.cpp.
|
inlineprivate |
Definition at line 38 of file ossimDemToolConfig.h.
bool ossimDemToolConfig::diagnosticLevel | ( | unsigned int | level | ) | const |
Convenience method returns TRUE if the currently set diagnostic level is <= level.
|
static |
Singleton implementation.
Definition at line 19 of file ossimDemToolConfig.cpp.
Referenced by ossimDemTool::getParameters(), and ossimDemTool::loadJSON().
bool ossimDemToolConfig::readConfig | ( | const std::string & | configName = "" | ) |
Definition at line 38 of file ossimDemToolConfig.cpp.
References ossimPreferences::instance(), ossimFilename::isDir(), ossimNotify(), ossimNotifyLevel_WARN, ossimFilename::setPath(), and ossimException::what().