JSON Configuration file interface.
More...
#include <JsonConfigFile.hpp>
|
|
| JsonConfigFile (void) |
| | Default constructor; initialize the loader and saver interfaces necessary for JSON I/O.
|
|
| ~JsonConfigFile (void) |
| | Destructor.
|
| bool | flush (void) |
| | Re-implements IConfigFile::flush.
|
| IValueDeserializer * | deserializer (void) const |
| | Re-implements IConfigFile::deserializer.
|
| IValueSerializer * | serializer (void) const |
| | Re-implements IConfigFile::serializer.
|
| bool | load (void) |
| | Re-implements IConfigFile::load.
|
| bool | save (void) |
| | Re-implements IConfigFile::save.
|
|
| IConfigFile (void) |
| | Default constructor.
|
|
virtual | ~IConfigFile (void) |
| | Destructor.
|
| const std::string & | filename (void) const |
| | Obtain the set file path.
|
|
bool | exists (const std::string &key) const |
| | Check to see if an existing configuration key exists.
|
| int | get_int (const std::string &key, int default_value) const |
| uint | get_uint (const std::string &key, uint default_value) const |
| double | get_double (const std::string &key, double default_value) const |
| const std::string | get_string (const std::string &key, const std::string &default_value) const |
| bool | get_bool (const std::string &key, bool default_value) const |
| void | set_property (const std::string &key, const Value &value) |
| | Write a value to the configuration, mapped by key.
|
| bool | erase (const std::string &key) |
| | Destroy a configuration item.
|
| void | set_filename (const std::string &filename) |
| | Set the file I/O path.
|
JSON Configuration file interface.
Definition at line 44 of file JsonConfigFile.hpp.
◆ raw_ptr
| typedef self_type* nom::JsonConfigFile::raw_ptr |
◆ self_type
◆ shared_ptr
| typedef std::shared_ptr<self_type> nom::JsonConfigFile::shared_ptr |
◆ unique_ptr
| typedef std::unique_ptr<self_type> nom::JsonConfigFile::unique_ptr |
◆ deserializer()
◆ flush()
| bool nom::JsonConfigFile::flush |
( |
void | | ) |
|
|
virtual |
◆ load()
| bool nom::JsonConfigFile::load |
( |
void | | ) |
|
|
virtual |
◆ save()
| bool nom::JsonConfigFile::save |
( |
void | | ) |
|
|
virtual |
◆ serializer()
◆ set_deserializer()
Set the configuration loader.
- Parameters
-
◆ set_serializer()
Set the configuration saver.
- Parameters
-
◆ deserializer_
◆ serializer_
The documentation for this class was generated from the following file: