Cmd Class Reference

Helper class for building command strings. More...

List of all members.

Public Member Functions

 Cmd (const char *szCmd)
Cmd & raw (const QByteArray &aCmd)
Cmd & str (const char *szCmd)
Cmd & num (int nData)
Cmd & byte (int nData)
Cmd & word (int nData)
Cmd & real (float fData)
QByteArray command () const

Private Attributes

QByteArray m_aCmd


Detailed Description

Helper class for building command strings.


Member Function Documentation

Cmd & Cmd::raw ( const QByteArray &  aCmd  ) 

Append raw bytearray aCmd to command buffer

Cmd & Cmd::str ( const char *  szCmd  ) 

Append string szCmd to command buffer

Cmd & Cmd::num ( int  nData  ) 

Append integer number nData as ASCII string to command buffer

Cmd & Cmd::byte ( int  nData  ) 

Append byte nData as 8 bit binary data to command buffer

Cmd & Cmd::word ( int  nData  ) 

Append word nData as 16 bit binary data to command buffer

Cmd & Cmd::real ( float  fData  ) 

Append float fData as 32 bit binary IEEE float to command buffer


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 16:45:46 2007 for Aspect by  doxygen 1.5.1