AOSharedServiceLibrary
Public Member Functions | List of all members
AOSSL::KeyValueStore Class Reference

Key Value Store. More...

#include <kv_store.h>

Inheritance diagram for AOSSL::KeyValueStore:
Inheritance graph
[legend]
Collaboration diagram for AOSSL::KeyValueStore:
Collaboration graph
[legend]

Public Member Functions

bool opt_exist (std::string key)
 Does a key exist?
 
StringBufferget_opt (std::string key)
 Get an option by key.
 
void get_opt (std::string key, StringBuffer &val)
 Get an option by key.
 
std::unordered_map< std::string, std::string > get_opts ()
 
void add_opt (const std::string &key, std::string value)
 Add an option.
 
void set_opt (std::string &key, std::string &value)
 Set an option.
 
- Public Member Functions inherited from AOSSL::KeyValueStoreInterface
virtual void load_config ()=0
 Re-load configuration.
 

Detailed Description

Key Value Store.

A Key-Value store accesses configuration values by keys Interface which requires implementation


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