AURobotServers
4
|
#include <uclientfuncobstgrp.h>
Public Member Functions | |
virtual const char * | commandList () |
UObstHist * | getObstHistData () |
virtual void | handleNewData (USmlTag *tag, const char *ifname) |
virtual const char * | name () |
UClientFuncObstGrp () | |
~UClientFuncObstGrp () | |
Public Member Functions inherited from UClientFuncBase | |
virtual void | changedNamespace (const char *newNamespace) |
virtual void | doTimeTick () |
int | getMsgCnt () |
bool | getVerbose () |
bool | sendMsg (UClientPortSml *cnn, const char *buff, int buffCnt) |
bool | sendMsg (UClientPortSml *cnn, const char *buff) |
void | setVerbose (bool value) |
UClientFuncBase () | |
virtual | ~UClientFuncBase () |
Protected Member Functions | |
bool | handleObst (USmlTag *tag) |
Protected Member Functions inherited from UClientFuncBase | |
void | handleHelp (USmlTag *tag) |
void | printReply (USmlTagIn *tag, const char *preString) |
Protected Attributes | |
UObstHist * | obsts |
Protected Attributes inherited from UClientFuncBase | |
int | msgHandled |
char | serverNamespace [MAX_SML_NAME_LENGTH] |
int | serverNamespaceValue |
bool | verboseMessages |
Additional Inherited Members | |
Public Attributes inherited from UClientFuncBase | |
ULock | decodeLock |
Holds a group of obstacles
UClientFuncObstGrp::UClientFuncObstGrp | ( | ) |
Constructor
References obsts.
UClientFuncObstGrp::~UClientFuncObstGrp | ( | ) |
Destructor
References obsts.
|
virtual |
Function, that shall return a string with all handled commands, i.e. should return "gmk gmk2d guidemark", if commands starting with any of these three keywords are handled by this function
Reimplemented from UClientFuncBase.
|
inline |
The server has set (or changed) the namespace Get pointer to obstacle data
References handleObst(), and obsts.
Referenced by clientCmdLine().
|
virtual |
Got fresh data destined to this function.
Reimplemented from UClientFuncBase.
References USmlTagIn::getNextAttribute(), handleObst(), USmlTagIn::isTagA(), MAX_SML_NAME_LENGTH, USmlTagIn::print(), UClientFuncBase::printReply(), USmlTagIn::reset(), and UClientFuncBase::verboseMessages.
|
protected |
Decode the received obstGet data message
References UObstacleGroup::clear(), UOnEvent::event(), UObstHist::getNewGrp(), USmlTag::getNextTag(), USmlTag::getObstacleGroup(), USmlTagIn::isAStartTag(), USmlTagIn::isTagA(), ULock::lock(), obsts, UObstHist::setGroupsCnt(), USmlTag::skipToEndTag(), and ULock::unlock().
Referenced by getObstHistData(), and handleNewData().
|
virtual |
Name of function The returned name is intended as informative to clients and should include a version number
Reimplemented from UClientFuncBase.
|
protected |
Group of obstacles, i.e. set of polygons
Referenced by getObstHistData(), handleObst(), UClientFuncObstGrp(), and ~UClientFuncObstGrp().