Skip to content
Snippets Groups Projects
Commit be42bbb9 authored by Robert Menzel's avatar Robert Menzel
Browse files

added add function to the named manager

parent 95626ed1
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ public:
bool exists(const std::string& _key);
bool deleteResource(const std::string& key);
void clearAllResources(void);
void add( const std::string& _key, SharedResource _resource );
typename ResourceMap::const_iterator begin(void) const { return mResourceMap.begin(); }
typename ResourceMap::const_iterator end(void) const { return mResourceMap.end(); }
......@@ -107,6 +108,12 @@ void NameManager<RESOURCE>::clearAllResources(void)
mResourceMap.clear();
}
template<typename RESOURCE>
void NameManager<RESOURCE>::add( const std::string& _key, NameManager<RESOURCE>::SharedResource _resource )
{
mResourceMap[_key] = _resource;
}
} // Resource
} // ACGL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment