18 #ifndef LUNCHBOX_PERSISTENTMAP_H
19 #define LUNCHBOX_PERSISTENTMAP_H
22 #include <boost/noncopyable.hpp>
28 namespace detail {
class PersistentMap; }
50 LUNCHBOX_API
PersistentMap(
const std::string& uri = std::string( ));
63 LUNCHBOX_API
bool insert(
const std::string& key,
const std::string& value);
72 LUNCHBOX_API std::string
operator [] (
const std::string& key )
const;
75 detail::PersistentMap*
const _impl;
82 #endif //LUNCHBOX_PERSISTENTMAP_H
Defines export visibility macros for Lunchbox.
LUNCHBOX_API PersistentMap(const std::string &uri=std::string())
Construct a new persistent map.
LUNCHBOX_API ~PersistentMap()
Destruct the persistent map.
Unified interface to save key-value pairs in a persistent store.
LUNCHBOX_API bool insert(const std::string &key, const std::string &value)
Insert or update a value in the database.
LUNCHBOX_API std::string operator[](const std::string &key) const
Retrieve a value for a key.