ChirpSim
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Member Functions | List of all members
Controller Class Referenceabstract

The Controller class is an interface class that controller interfaces for robots should implement. More...

#include <controller.h>

Inheritance diagram for Controller:
Inheritance graph

Public Member Functions

 Controller (QObject *parent=0)
 
virtual ~Controller ()
 
virtual QByteArray handleMessage (QTextStream &textStream)=0
 handleMessage is a pure virtual function controllers overload to handle any message sent their way. More...
 

Detailed Description

The Controller class is an interface class that controller interfaces for robots should implement.

The handleMessage-method should be overridden by concrete controller interfaces.

Constructor & Destructor Documentation

Controller::Controller ( QObject *  parent = 0)
inline
virtual Controller::~Controller ( )
inlinevirtual

Member Function Documentation

virtual QByteArray Controller::handleMessage ( QTextStream &  textStream)
pure virtual

handleMessage is a pure virtual function controllers overload to handle any message sent their way.

Parameters
textStreamis a stream containing the message to handle.
Returns
A utf-8 string containing either "ok" + any result, or "error" to signify something failed.

Implemented in ChirpNetworkController.

Referenced by ControllerServer::incomingConnection().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: