MNE-CPP  beta 1.0
Signals | Public Member Functions | List of all members
RTCOMMANDLIB::RawCommand Class Reference

RawCommand. More...

#include <rawcommand.h>

Inheritance diagram for RTCOMMANDLIB::RawCommand:
ICommand

Signals

void executed (QList< QString > p_qListParameters)
 

Public Member Functions

 RawCommand (QObject *parent=0)
 
 RawCommand (const QString &p_sCommand, bool p_bIsJson=true, QObject *parent=0)
 
 RawCommand (const RawCommand &p_rawCommand)
 
QString command () const
 
quint32 count () const
 
virtual void execute ()
 
bool isJson () const
 
QList< QString > & pValues ()
 
RawCommandoperator= (const RawCommand &rhs)
 
- Public Member Functions inherited from ICommand
virtual ~ICommand ()
 

Additional Inherited Members

- Public Types inherited from ICommand
typedef QSharedPointer< ICommandSPtr
 
typedef QSharedPointer< const ICommandConstSPtr
 

Detailed Description

RawCommand.

RawCommand, which includes beside command name also command parameters. The parameter type is not jet specified.

Definition at line 73 of file rawcommand.h.

Constructor & Destructor Documentation

RawCommand::RawCommand ( QObject *  parent = 0)
explicit

Default constructor.

Parameters
[in]parentParent QObject (optional)

Definition at line 57 of file rawcommand.cpp.

RawCommand::RawCommand ( const QString &  p_sCommand,
bool  p_bIsJson = true,
QObject *  parent = 0 
)
explicit

Constructor which parses a command stored in a json object

Parameters
[in]p_sCommandCommand
[in]p_bIsJsonIf is received/should be send as JSON (optional, default true)
[in]parentParent QObject (optional)

Definition at line 65 of file rawcommand.cpp.

RawCommand::RawCommand ( const RawCommand p_rawCommand)
explicit

Copy constructor.

Parameters
[in]p_rawCommandRawCommand which should be copied.

Definition at line 75 of file rawcommand.cpp.

Member Function Documentation

QString RTCOMMANDLIB::RawCommand::command ( ) const
inline

Command name

Returns
short command representation.

Definition at line 169 of file rawcommand.h.

quint32 RTCOMMANDLIB::RawCommand::count ( ) const
inline

Returns the number of parameters.

Returns
number of parameters.

Definition at line 177 of file rawcommand.h.

void RawCommand::execute ( )
virtual

Executes the ICommand.

Implements ICommand.

Definition at line 87 of file rawcommand.cpp.

void RTCOMMANDLIB::RawCommand::executed ( QList< QString >  p_qListParameters)
signal

Signal which is emitted when command patterns execute method is processed.

Parameters
[in]p_qListParametersParameter List.
bool RTCOMMANDLIB::RawCommand::isJson ( ) const
inline

Returns wether the received command was in Json format.

Returns
true if received command was in Json format, false otherwise.

Definition at line 185 of file rawcommand.h.

RawCommand & RawCommand::operator= ( const RawCommand rhs)

Assignment Operator

Parameters
[in]rhsRawCommand which should be assigned.

Definition at line 95 of file rawcommand.cpp.

QList< QString > & RTCOMMANDLIB::RawCommand::pValues ( )
inline

Returns parameter values

Returns
parameter values

Definition at line 193 of file rawcommand.h.


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