#include <msg.h>
Inheritance diagram for msg:

Public Member Functions | |
| msg () | |
| Short Description. | |
| virtual | ~msg (void) |
| msg & | operator<< (const int i) |
| Add an integer arguement. | |
| msg & | operator<< (const float f) |
| Add a floating point arguement. | |
| msg & | operator<< (const double d) |
| Add a double floating point arguement. | |
| msg & | operator<< (const char *str) |
| Add a string arguement, must not contain ''. | |
| msg & | operator<< (const string &str) |
| Add a string arguement, must not contain ''. | |
| msg & | operator<< (const __omsgctrl &omc) |
| Short Description. | |
| void | data (const char *data, int size) |
| Add a binary data arguement, may contain ''. | |
| virtual int | dispatch (void) |
| Short Description. | |
| int | poll (void) |
| Attempts to fixup inbuf if partial message found (fragment is deleted). | |
| const string & | type (void) |
| Short Description. | |
| int | size () |
| Short Description. | |
| msg & | operator>> (int &i) |
| Short Description. | |
| msg & | operator>> (float &f) |
| Short Description. | |
| msg & | operator>> (double &d) |
| Short Description. | |
| msg & | operator>> (char *&str) |
| Short Description. | |
| msg & | operator>> (string &str) |
| Short Description. | |
| msg & | operator>> (__imsgctrl &imc) |
| Short Description. | |
| bool | moreArgs (void) |
| operator bool () | |
| Short Description. | |
| int | error (void) |
| virtual int | recv (void) |
| Short Description. | |
| virtual int | recvNoWait (void) |
| Short Description. | |
Protected Member Functions | |
| virtual int | send (void) |
| Short Description. | |
| int | msg_pop_arg (string *msg, string *arg, int index) |
| get top argument of message "queue" | |
Protected Attributes | |
| list< string > | _arglist |
| string | _type |
| int | _size |
| string | outbuf |
| string | inbuf |
| int | error_code |
Friends | |
| ostream & | operator<< (ostream &os, msg &m) |
| Short Description. | |
Long Description if necessary.
| <parameter_name> | <parameter_descreption> |
Definition at line 52 of file msg.h.
|
|
Short Description. Long Description if necessary.
|
|
|
|
|
||||||||||||
|
Add a binary data arguement, may contain ''. Long Description if necessary.
Definition at line 144 of file msg.cpp. References outbuf. Referenced by operator<<(). |
|
|
Short Description. Long Description if necessary.
Reimplemented in STDINmsg. Definition at line 191 of file msg.cpp. References _arglist, _size, _type, inbuf, msg_pop_arg(), and poll(). Referenced by childTest(), main(), parentTest(), Daemon::processClient(), Daemon::processController(), Controller::processMsgs(), processNet(), processNET(), wxMsg::recv(), TCPmsg::run(), TCPmsg::select(), and testUnamedSockets(). |
|
|
Definition at line 94 of file msg.h. Referenced by childTest(), Daemon::processController(), Controller::processMsgs(), and processNet(). |
|
|
Definition at line 88 of file msg.h. References _size. Referenced by Controller::info(), Controller::joyX(), Controller::joyY(), Daemon::processClient(), Daemon::processController(), Controller::setAngle(), Controller::setAngleValue(), Controller::setPower(), and Controller::setPowerValue(). |
|
||||||||||||||||
|
get top argument of message "queue" 'index' is the index of a delimiter before the arguement to be popped(' ' or '?') returns index of next delimiter on success pops and unescapes 1 value from msg (' ' delineated)
Definition at line 304 of file msg.cpp. References escaped(), and inbuf. Referenced by dispatch(). |
|
|
Short Description. Long Description if necessary.
Definition at line 543 of file msg.cpp. References _size. |
|
|
Short Description. Long Description if necessary.
Definition at line 118 of file msg.cpp. References __omsgctrl::ctrl, data(), outbuf, send(), and __omsgctrl::str. |
|
|
Add a string arguement, must not contain ''. Long Description if necessary.
|
|
|
Add a string arguement, must not contain ''. Long Description if necessary.
|
|
|
Add a double floating point arguement. Long Description if necessary.
Definition at line 53 of file msg.cpp. References outbuf. |
|
|
Add a floating point arguement.
Definition at line 68 of file msg.cpp. References outbuf. |
|
|
Add an integer arguement. Long Description if necessary.
Definition at line 36 of file msg.cpp. References outbuf. |
|
|
Short Description. Long Description if necessary.
|
|
|
Short Description. Long Description if necessary.
|
|
|
Short Description. Long Description if necessary.
|
|
|
Short Description. Long Description if necessary.
|
|
|
Short Description. Long Description if necessary.
|
|
|
Short Description. Long Description if necessary.
|
|
|
Attempts to fixup inbuf if partial message found (fragment is deleted). Long Description if necessary.
Definition at line 262 of file msg.cpp. References escaped(), i, and inbuf. Referenced by dispatch(), poll(), and TrucknetTestSuite::testMessageCreation(). |
|
|
Short Description. Long Description if necessary.
|
|
|
Short Description. Long Description if necessary.
Reimplemented in SCTPmsg, STDINmsg, TCPmsg, and UNIXmsg. Definition at line 358 of file msg.cpp. Referenced by Controller::processMsgs(). |
|
|
Short Description. Long Description if necessary.
Reimplemented in wxMsg, SCTPmsg, STDINmsg, TCPmsg, and UNIXmsg. Definition at line 169 of file msg.cpp. Referenced by operator<<(), and sendTest(). |
|
|
Short Description. Long Description if necessary.
Definition at line 389 of file msg.cpp. References _size. Referenced by print(). |
|
|
Short Description. Long Description if necessary.
Definition at line 374 of file msg.cpp. References _type. Referenced by childTest(), Controller::gain(), Controller::joyX(), Controller::joyY(), msgtest(), print(), Daemon::processClient(), Daemon::processController(), Controller::processMsgs(), processNet(), processNET(), sendAck(), Controller::sendAck(), Controller::sendNack(), servo(), Controller::setAngle(), Controller::setAngleValue(), Controller::setPower(), Controller::setPowerValue(), and Controller::speed(). |
|
||||||||||||
|
Short Description. Long Description if necessary.
|
|
|
Definition at line 107 of file msg.h. Referenced by dispatch(), STDINmsg::dispatch(), msg(), operator<<(), and operator>>(). |
|
|
Definition at line 109 of file msg.h. Referenced by dispatch(), STDINmsg::dispatch(), moreArgs(), msg(), operator bool(), operator<<(), operator>>(), and size(). |
|
|
Definition at line 108 of file msg.h. Referenced by dispatch(), STDINmsg::dispatch(), msg(), operator<<(), and type(). |
|
|
Definition at line 114 of file msg.h. Referenced by UNIXmsg::recv(), TCPmsg::recv(), UNIXmsg::recvNoWait(), TCPmsg::recvNoWait(), and STDINmsg::recvNoWait(). |
|
|
Definition at line 112 of file msg.h. Referenced by dispatch(), STDINmsg::dispatch(), msg_pop_arg(), poll(), UNIXmsg::recv(), TCPmsg::recv(), wxMsg::recv(), UNIXmsg::recvNoWait(), TCPmsg::recvNoWait(), STDINmsg::recvNoWait(), and send(). |
|
|
Definition at line 111 of file msg.h. Referenced by data(), operator<<(), UNIXmsg::send(), TCPmsg::send(), send(), STDINmsg::send(), and wxMsg::send(). |
1.4.4