diff --git a/src/Store/Store.h b/src/Store/Store.h index 24948a7..5aaa793 100644 --- a/src/Store/Store.h +++ b/src/Store/Store.h @@ -55,6 +55,18 @@ class Store{ else return false; } + + template bool Get(std::string name, T* &out){ + if(m_variables.count(name)>0){ + std::stringstream stream(m_variables[name]); + intptr_t tmp; + stream>>tmp; + out = reinterpret_cast(tmp); + return true; + } + + else return false; + } /** Templated setter function to assign vairables in the Store. @@ -66,6 +78,13 @@ class Store{ stream< void Set(std::string name,T* in){ + intptr_t ptr_cast = reinterpret_cast(in); + std::stringstream stream; + stream<