tetengo 1.8.1
A multipurpose library set
Loading...
Searching...
No Matches
tetengo::property::storage_proxy Class Reference

A storage proxy. More...

#include <storage_proxy.hpp>

+ Inheritance diagram for tetengo::property::storage_proxy:
+ Collaboration diagram for tetengo::property::storage_proxy:

Public Member Functions

virtual ~storage_proxy ()
 Destroys the storage proxy.
 
- 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 storage_loader_proxy
 

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_typevalue_map () const
 Returns the value map.
 

Detailed Description

A storage proxy.


The documentation for this class was generated from the following file: