|
OpenJAUS SAE SDK
6.0.0
|
#include <JsonConfiguration.h>
Public Member Functions | |
| JsonConfiguration () | |
| virtual | ~JsonConfiguration () |
| uint32 | getVersion () |
| std::vector< JsonSetting > | getSettings () |
| bool | load (const std::string &filename) |
| bool | save (const std::string &filename) |
| bool | isDirty () |
| std::string | getErrorString () |
| bool | contains (const std::string &key) |
| void | remove (const std::string &key) |
| void | clear () |
| template<class Type > | |
| void | set (const std::string &key, Type value) |
| template<class Type > | |
| Type | get (const std::string &key, Type defaultValue) |
| virtual std::string | toString () const |
Private Member Functions | |
| void | buildMap (std::string keyPrefix, Json::Value &root, std::map< std::string, JsonSetting > &settings) |
| Json::Value | generateJson () |
| void | buildHierarchy (std::vector< std::string > &names, Json::Value &root, Json::Value &value) |
Private Attributes | |
| uint32 | version |
| std::map< std::string, JsonSetting > | settings |
| std::string | errorString |
| bool | dirty |
Friends | |
| OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const JsonConfiguration &object) |
| OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const JsonConfiguration *object) |
| openjaus::system::JsonConfiguration::JsonConfiguration | ( | ) |
|
virtual |
|
private |
|
private |
| void openjaus::system::JsonConfiguration::clear | ( | ) |
| bool openjaus::system::JsonConfiguration::contains | ( | const std::string & | key | ) |
|
private |
|
inline |
| std::string openjaus::system::JsonConfiguration::getErrorString | ( | ) |
| std::vector< JsonSetting > openjaus::system::JsonConfiguration::getSettings | ( | ) |
| uint32 openjaus::system::JsonConfiguration::getVersion | ( | ) |
| bool openjaus::system::JsonConfiguration::isDirty | ( | ) |
| bool openjaus::system::JsonConfiguration::load | ( | const std::string & | filename | ) |
| void openjaus::system::JsonConfiguration::remove | ( | const std::string & | key | ) |
| bool openjaus::system::JsonConfiguration::save | ( | const std::string & | filename | ) |
|
inline |
|
virtual |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |