tetengo 1.8.1
A multipurpose library set
|
A file storage. More...
#include <file_storage.hpp>
Public Member Functions | |
virtual | ~file_storage () |
Destroys the file storage. | |
Public Member Functions inherited from tetengo::property::storage | |
virtual | ~storage () |
Destroys the storage. | |
std::optional< bool > | get_bool (const std::filesystem::path &key) const |
Returns the value in a boolean. | |
void | set_bool (const std::filesystem::path &key, bool value) |
Sets a value in a boolean. | |
std::optional< std::uint32_t > | get_uint32 (const std::filesystem::path &key) const |
Returns the value in an unsigned 32-bit integer. | |
void | set_uint32 (const std::filesystem::path &key, std::uint32_t value) |
Sets a value in an unsigned 32-bit integer. | |
std::optional< std::string > | get_string (const std::filesystem::path &key) const |
Returns the value in a string. | |
void | set_string (const std::filesystem::path &key, const std::string &value) |
Sets a value in a string. | |
void | save () const |
Saves the values. | |
Friends | |
class | file_storage_loader |
Additional Inherited Members | |
Public Types inherited from tetengo::property::storage | |
using | value_map_type = std::unordered_map< std::string, std::variant< bool, std::uint32_t, std::string > > |
The value map type. | |
Protected Member Functions inherited from tetengo::property::storage | |
storage (value_map_type value_map) | |
Creates a storage. | |
const value_map_type & | value_map () const |
Returns the value map. | |
A file storage.