#include <manifest.h>
|
template<typename T > |
bool | get_element (const std::string element_name, T &element_value) const |
| Get an element value from JSON document. More...
|
|
◆ Manifest_reader()
manifest::Manifest_reader::Manifest_reader |
( |
const std::string |
executable_path, |
|
|
const std::string |
instance_path, |
|
|
std::string |
json_schema = manifest_version_1_0 |
|
) |
| |
|
inlineexplicit |
◆ ~Manifest_reader()
manifest::Manifest_reader::~Manifest_reader |
( |
| ) |
|
|
default |
◆ components()
bool manifest::Manifest_reader::components |
( |
std::string & |
components_string | ) |
const |
|
inline |
◆ empty()
bool manifest::Manifest_reader::empty |
( |
| ) |
const |
|
inline |
◆ file_present()
bool manifest::Manifest_reader::file_present |
( |
| ) |
const |
|
inline |
◆ get_element()
template<typename T >
bool manifest::Manifest_reader::get_element |
( |
const std::string |
element_name, |
|
|
T & |
element_value |
|
) |
| const |
|
inlineprivate |
Get an element value from JSON document.
Assumption: Type is compatible with Get() function and type of element is matching with template argument.
- Parameters
-
[in] | element_name | Name of the element being searched |
[out] | element_value | Value of the element |
- Returns
- status of search operation
- Return values
-
true | Element found. Refer to element_value |
false | Element missing. |
◆ manifest_file()
std::string manifest::Manifest_reader::manifest_file |
( |
| ) |
const |
|
inline |
◆ read_local_manifest()
bool manifest::Manifest_reader::read_local_manifest |
( |
| ) |
const |
|
inline |
◆ ro()
bool manifest::Manifest_reader::ro |
( |
| ) |
const |
|
inline |
◆ config_file_path_
std::string manifest::Manifest_reader::config_file_path_ |
|
private |
◆ data_
rapidjson::Document manifest::Manifest_reader::data_ |
|
private |
Configuration data in JSON.
◆ empty_
bool manifest::Manifest_reader::empty_ |
|
private |
◆ file_present_
bool manifest::Manifest_reader::file_present_ |
|
private |
◆ ro_
bool manifest::Manifest_reader::ro_ |
|
private |
◆ schema_
rapidjson::Document manifest::Manifest_reader::schema_ |
|
private |
◆ valid_
bool manifest::Manifest_reader::valid_ |
|
private |
Validity of configuration data.
The documentation for this class was generated from the following file: