#include <RowoHandler.h>
Collaboration diagram for RowoHandler:

Public Member Functions | |
| RowoHandler () | |
| ~RowoHandler () | |
| void | SetMyUid (const std::string &x) |
| void | SetMap (Map *x) |
| Map & | GetMap () |
| void | InjectRobot (const std::string &filename) |
Private Attributes | |
| std::string | m_myuid |
| Map * | m_pMap |
Definition at line 8 of file RowoHandler.h.
| RowoHandler::RowoHandler | ( | ) |
Definition at line 9 of file RowoHandler.cpp.
00010 :SocketHandler() 00011 ,m_pMap(NULL) 00012 { 00013 }
| RowoHandler::~RowoHandler | ( | ) |
| void RowoHandler::SetMyUid | ( | const std::string & | x | ) | [inline] |
Definition at line 14 of file RowoHandler.h.
References m_myuid.
Referenced by main().
00014 { m_myuid = x; }
| void RowoHandler::SetMap | ( | Map * | x | ) | [inline] |
Definition at line 15 of file RowoHandler.h.
References m_pMap.
Referenced by main().
00015 { m_pMap = x; }
| Map& RowoHandler::GetMap | ( | ) | [inline] |
Definition at line 16 of file RowoHandler.h.
References m_pMap.
Referenced by InjectRobot().
00016 { return *m_pMap; }
| void RowoHandler::InjectRobot | ( | const std::string & | filename | ) |
Definition at line 21 of file RowoHandler.cpp.
References Map::AddObject(), GetMap(), and m_pMap.
00022 { 00023 Robot *p = new Robot(*m_pMap, filename); 00024 if (p -> IsOk()) 00025 { 00026 GetMap().AddObject(p); 00027 } 00028 else 00029 { 00030 delete p; 00031 } 00032 }
std::string RowoHandler::m_myuid [private] |
Map* RowoHandler::m_pMap [private] |
1.3.6