2017-08-28 18:36:51 +02:00
|
|
|
#ifndef CORE_LINKSHELLMGR_H
|
|
|
|
#define CORE_LINKSHELLMGR_H
|
|
|
|
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
#include <map>
|
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
namespace Core {
|
2017-08-28 18:36:51 +02:00
|
|
|
class Linkshell;
|
2018-08-29 21:40:59 +02:00
|
|
|
|
2017-11-19 22:43:26 +01:00
|
|
|
using LinkshellPtr = boost::shared_ptr< Linkshell >;
|
2017-08-28 18:36:51 +02:00
|
|
|
|
|
|
|
class LinkshellMgr
|
|
|
|
{
|
|
|
|
private:
|
2018-08-29 21:40:59 +02:00
|
|
|
std::map< uint64_t, LinkshellPtr > m_linkshellIdMap;
|
|
|
|
std::map< std::string, LinkshellPtr > m_linkshellNameMap;
|
|
|
|
|
|
|
|
LinkshellPtr getLinkshellByName( const std::string& name );
|
2017-08-28 18:36:51 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
LinkshellPtr getLinkshellById( uint64_t lsId );
|
2017-08-28 23:43:52 +02:00
|
|
|
|
2017-08-28 18:36:51 +02:00
|
|
|
public:
|
2018-08-29 21:40:59 +02:00
|
|
|
LinkshellMgr();
|
2017-08-28 18:36:51 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
bool loadLinkshells();
|
2017-08-28 18:36:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif //CORE_LINKSHELLMGR_H
|