21#ifndef mia_core_datapool_hh
22#define mia_core_datapool_hh
25#include <boost/any.hpp>
57 void add(
const std::string& key, boost::any value);
62 boost::any
get(
const std::string& key)
const;
82 bool has_key(
const std::string& key)
const;
102 typedef std::map<std::string, boost::any> Anymap;
103 typedef Anymap::const_iterator const_iterator;
104 const_iterator get_iterator(
const std::string& key)
const;
106 typedef std::map<std::string, bool> Usagemap;
107 mutable Usagemap m_usage;
temporary data storage to avoid storing on disk
boost::any get(const std::string &key) const
bool has_key(const std::string &key) const
void remove(const std::string &key)
boost::any get_and_remove(const std::string &key)
static CDatapool & instance()
bool has_unused_data() const
void add(const std::string &key, boost::any value)
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
#define NS_MIA_END
conveniance define to end the mia namespace
std::recursive_mutex CRecursiveMutex