79 virtual void loadJSON(
const Json::Value& params_json_node);
82 virtual void saveJSON(Json::Value& params_json_node)
const;
85 JsonParam& getParameter(
const char* paramName);
91 bool diagnosticLevel(
unsigned int level)
const;
96 bool paramExists(
const char* paramName)
const;
101 bool getBoolValue(
bool& rtn_val,
const std::string& json_value)
const;
138 bool loadJSON(
const Json::Value& json_node);
140 void saveJSON(Json::Value& json_node)
const;
151 unsigned int asUint()
const;
163 void asVector(std::vector<double>& v)
const;
const ossimString & descr() const
void setValue(void *value)
const ossimString & label() const
JsonConfig(const JsonConfig &)
This code was derived from https://gist.github.com/mshockwave.
Base class for maintaining parameters affecting the runtime configuration of OSSIM executables...
unsigned int asUint() const
void asVector(std::vector< double > &v) const
std::vector< ossimString > _allowedValues
std::map< std::string, JsonParam > m_paramsMap
std::string asString() const
Represents a single configuration parameter.
void saveJSON(Json::Value &json_node) const
bool operator==(const JsonParam &p) const
const ossimString & name() const
friend std::ostream & operator<<(std::ostream &out, const JsonParam &obj)
Outputs JSON to output stream provided.
bool loadJSON(const Json::Value &json_node)
Initializes from a JSON node.
Pure virtual interface for classes implementing JSON-based load/save state.
ostream & operator<<(std::ostream &out, const JsonParam &obj)
std::basic_ostream< char > ostream
Base class for char output streams.
static JsonParam s_nullParam