33 #include <boost/weak_ptr.hpp>
56 std::map<std::string, LibraryWeakPtr>::const_iterator it =
m_libraryMap.find(
id);
59 return it->second.lock();
76 return m_pImpl->find(
id);
Impl * m_pImpl
A pointer to the real implementation.
boost::shared_ptr< Library > LibraryPtr
LibraryPtr find(const std::string &name)
Returns a null pointer if a library doesnt't exist.
std::map< std::string, LibraryWeakPtr > m_libraryMap
~LibraryManager()
Destructor.
LibraryManager()
Consructor.
A singleton that can be used to observe the available libraries in the system.
te::common::LibraryPtr find(const std::string &id)
boost::weak_ptr< te::common::Library > LibraryWeakPtr
void add(const std::string &id, const LibraryPtr &l)
It adds a new Library to be managed.
void add(const std::string &id, const te::common::LibraryPtr &l)