Google
Web alhem.net

RowoHandler Class Reference

#include <RowoHandler.h>

Collaboration diagram for RowoHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RowoHandler ()
 ~RowoHandler ()
void SetMyUid (const std::string &x)
void SetMap (Map *x)
MapGetMap ()
void InjectRobot (const std::string &filename)

Private Attributes

std::string m_myuid
Mapm_pMap

Detailed Description

Definition at line 8 of file RowoHandler.h.


Constructor & Destructor Documentation

RowoHandler::RowoHandler (  ) 

Definition at line 9 of file RowoHandler.cpp.

00010 :SocketHandler()
00011 ,m_pMap(NULL)
00012 {
00013 }

RowoHandler::~RowoHandler (  ) 

Definition at line 16 of file RowoHandler.cpp.

00017 {
00018 }


Member Function Documentation

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 }


Member Data Documentation

std::string RowoHandler::m_myuid [private]

Definition at line 21 of file RowoHandler.h.

Referenced by SetMyUid().

Map* RowoHandler::m_pMap [private]

Definition at line 22 of file RowoHandler.h.

Referenced by GetMap(), InjectRobot(), and SetMap().


The documentation for this class was generated from the following files:
Generated for Robot World by doxygen 1.3.6

Page, code, and content Copyright (C) 2004 by Anders Hedström