1 #ifndef _MANAK_UTIL_OBJECT_STORE_HPP_INCLUDED
2 #define _MANAK_UTIL_OBJECT_STORE_HPP_INCLUDED
28 const std::string& group_name =
"");
33 std::map<std::string, std::list<std::string>>
m_groups;
41 #ifndef MANAK_USE_DYN_LINK
42 #include "object_store.cpp"
43 #endif // MANAK_USE_DYN_LINK
45 #endif // _MANAK_UTIL_OBJECT_STORE_HPP_INCLUDED
bool EraseGroup(const std::string &group_name)
void * RGet(const std::string &name)
static ObjectStore & GetGlobalObjectStore()
#define MANAK_INLINE
Check if user has opt for dynamic linking.
std::ostream & operator<<(std::ostream &s, const ObjectStore &os)
bool Erase(const std::string &name)
std::map< std::string, std::list< std::string > > m_groups
void Insert(const std::string &name, void *obj, const std::string &group_name="")
void * Get(const std::string &name) const