#include class CMapLocation : public singleton { public: typedef struct SLocation { long addr; WORD port; } TLocation; bool Get(long x, long y, long & lMapIndex, long & lAddr, WORD & wPort); bool Get(int iIndex, long & lAddr, WORD & wPort); void Insert(long lIndex, const char * c_pszHost, WORD wPort); protected: std::map m_map_address; };