20 lines
339 B
C++
20 lines
339 B
C++
#pragma once
|
|
|
|
class TargetConn;
|
|
class TargetConnMgr : public a8::Singleton<TargetConnMgr>
|
|
{
|
|
private:
|
|
TargetConnMgr() {};
|
|
friend class a8::Singleton<TargetConnMgr>;
|
|
|
|
public:
|
|
|
|
void Init();
|
|
void UnInit();
|
|
|
|
TargetConn* GetConnByInstanceId(int instance_id);
|
|
|
|
private:
|
|
std::map<int, TargetConn*> target_conn_hash_;
|
|
};
|