cMsg Messaging System
6.0
|
Class for wrapping cMsg message. More...
#include <cMsg.hxx>
Public Member Functions | |
cMsgMessage (void) throw (cMsgException) | |
Default constructor creates message. More... | |
cMsgMessage (const cMsgMessage &m) throw (cMsgException) | |
Copy constructor creates message object from another message object. More... | |
cMsgMessage (void *msgPointer) throw (cMsgException) | |
Constructor creates message object from C message pointer. More... | |
virtual | ~cMsgMessage (void) |
Destructor frees C message pointer struct. More... | |
virtual string | getSubject (void) const throw (cMsgException) |
Gets message subject. More... | |
virtual void | setSubject (const string &subject) throw (cMsgException) |
Sets message subject. More... | |
virtual string | getType (void) const throw (cMsgException) |
Gets message type. More... | |
virtual void | setType (const string &type) throw (cMsgException) |
Sets message type. More... | |
virtual string | getText (void) const throw (cMsgException) |
Gets message text. More... | |
virtual void | setText (const string &text) throw (cMsgException) |
Sets message text. More... | |
virtual void | setByteArrayLength (int length) throw (cMsgException) |
Sets message region-of-interest byte array length. More... | |
virtual void | resetByteArrayLength () |
Sets message region-of-interest byte array length to the full length of the array. More... | |
virtual int | getByteArrayLength (void) |
Gets message region-of-interest byte array length. More... | |
virtual int | getByteArrayLengthFull (void) |
Gets message full byte array length. More... | |
virtual void | setByteArrayOffset (int offset) throw (cMsgException) |
Specifies offset in byte array. More... | |
virtual int | getByteArrayOffset (void) |
Gets offset in byte array. More... | |
virtual int | getByteArrayEndian (void) |
Gets endian-ness of message byte array. More... | |
virtual void | setByteArrayEndian (int endian) throw (cMsgException) |
Sets endian-ness of message byte array. More... | |
virtual bool | needToSwap (void) const throw (cMsgException) |
True if need to swap byte array. More... | |
virtual char * | getByteArray (void) |
Gets byte array. More... | |
virtual void | setByteArray (char *array, int length) throw (cMsgException) |
Specifies byte array by copying it. More... | |
virtual void | setByteArrayNoCopy (char *array, int length) throw (cMsgException) |
Specifies the byte array by only copying the pointer to the array. More... | |
virtual int | getUserInt (void) const throw (cMsgException) |
Gets message user int. More... | |
virtual void | setUserInt (int i) throw (cMsgException) |
Sets message user int. More... | |
virtual struct timespec | getUserTime (void) const throw (cMsgException) |
Gets message user time. More... | |
virtual void | setUserTime (const struct timespec &userTime) throw (cMsgException) |
Sets message user time. More... | |
virtual int | getVersion (void) const throw (cMsgException) |
Gets cMsg version. More... | |
virtual string | getDomain (void) const throw (cMsgException) |
Gets message domain. More... | |
virtual string | getReceiver (void) const throw (cMsgException) |
Gets message receiver. More... | |
virtual string | getReceiverHost (void) const throw (cMsgException) |
Gets message receiver host. More... | |
virtual string | getSender (void) const throw (cMsgException) |
Gets message sender. More... | |
virtual string | getSenderHost (void) const throw (cMsgException) |
Gets message sender host. More... | |
virtual struct timespec | getReceiverTime (void) const throw (cMsgException) |
Gets message receiver time. More... | |
virtual struct timespec | getSenderTime (void) const throw (cMsgException) |
Gets message sender time. More... | |
virtual bool | isGetRequest (void) const throw (cMsgException) |
True if message is a get request. More... | |
virtual bool | isGetResponse (void) const throw (cMsgException) |
True if message is a get response. More... | |
virtual bool | isNullGetResponse (void) const throw (cMsgException) |
True if message is a NULL get response. More... | |
virtual void | makeNullResponse (const cMsgMessage &msg) throw (cMsgException) |
Makes a message a null response message. More... | |
virtual void | makeNullResponse (const cMsgMessage *msg) throw (cMsgException) |
Makes a message a null response message. More... | |
virtual void | makeResponse (const cMsgMessage &msg) throw (cMsgException) |
Makes a message a response message. More... | |
virtual void | makeResponse (const cMsgMessage *msg) throw (cMsgException) |
Makes a message a response message. More... | |
virtual void | setGetResponse (bool b) throw (cMsgException) |
Makes message a get response message. More... | |
virtual void | setNullGetResponse (bool b) throw (cMsgException) |
Makes message a null response message. More... | |
virtual string | toString (void) const throw (cMsgException) |
Gets xml representation of message. More... | |
virtual cMsgMessage * | copy (void) const throw (cMsgException) |
Copies a message. More... | |
virtual cMsgMessage * | nullResponse (void) const throw (cMsgException) |
Creates a null response message. More... | |
virtual cMsgMessage * | response (void) const throw (cMsgException) |
Creates a response message. More... | |
virtual string | getSubscriptionDomain () const throw (cMsgException) |
Gets subscription domain. More... | |
virtual string | getSubscriptionSubject () const throw (cMsgException) |
Gets subscription subject. More... | |
virtual string | getSubscriptionType () const throw (cMsgException) |
Gets subscription type. More... | |
virtual string | getSubscriptionUDL () const throw (cMsgException) |
Gets subscription UDL. More... | |
virtual int | getSubscriptionCueSize (void) const throw (cMsgException) |
Gets current subscription cue size. More... | |
virtual bool | getReliableSend (void) const throw (cMsgException) |
True if message sent via reliable send. More... | |
virtual void | setReliableSend (bool b) throw (cMsgException) |
Sets message reliable send flag. More... | |
virtual bool | hasPayload () const |
This method returns whether a message has a compound payload or not. More... | |
virtual void | payloadClear (void) |
This method removes all the user-added items in the payload. More... | |
virtual void | payloadReset (void) |
This method removes all items (including those added by the cMsg system) in the payload. More... | |
virtual void | payloadPrint (void) const |
This method prints out the message payload in a readable form. More... | |
virtual void | payloadCopy (const cMsgMessage &msg) throw (cMsgException) |
This method copies the payload from another message. More... | |
virtual bool | payloadRemoveField (const string &name) |
This method removes the named field if its exists. More... | |
virtual string | payloadGetText () const |
This method returns a text representation of the payload. More... | |
virtual void | payloadSetFromText (const string &txt) throw (cMsgException) |
This method takes a string returned from payloadGetText as an argument and constructs a payload out of it. More... | |
virtual string | payloadGetFieldDescription (const string &name) const throw (cMsgException) |
This method returns a description of the given field name in the payload. More... | |
virtual map< string, int > * | payloadGet () const throw (cMsgException) |
This method returns a pointer to a map containing all name/type pairs of the payload. More... | |
virtual int | payloadGetCount () const |
This method returns the number of payload items a message has. More... | |
virtual bool | payloadContainsName (const string &name) const |
This method returns whether an item in the payload has the given name or not. More... | |
virtual int | payloadGetType (const string &name) const throw (cMsgException) |
This method returns the type of data associated with the payload field given by the name argument. More... | |
virtual void | setHistoryLengthMax (int len) const throw (cMsgException) |
This method sets the maximum number of entries this message keeps of its history of various parameters (sender's name, host, time). More... | |
virtual void | getBinary (const string &name, const char **val, int &len, int &endian) const throw (cMsgException) |
This method returns the value of the given field as a binary array if it exists. More... | |
virtual void | getBinaryArray (const string &name, const char ***vals, int **lens, int **endians, int &count) const throw (cMsgException) |
This method returns the value of the given field as a binary array if it exists. More... | |
virtual cMsgMessage * | getMessage (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a cMsgMessage object pointer if its exists. More... | |
virtual vector< cMsgMessage > * | getMessageVector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of cMsgMessage objects, if its exists. More... | |
virtual vector< cMsgMessage * > * | getMessagePVector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of pointers to cMsgMessage objects, if its exists. More... | |
virtual cMsgMessage * | getMessageArray (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to an array of cMsgMessage objects, if it exists. More... | |
virtual cMsgMessage ** | getMessagePArray (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to an array of pointers to cMsgMessage objects, if it exists. More... | |
virtual string | getString (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a string if its exists. More... | |
virtual vector< string > * | getStringVector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of strings if its exists. More... | |
virtual string * | getStringArray (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to an array of strings if its exists. More... | |
virtual float | getFloat (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a float if its exists. More... | |
virtual vector< float > * | getFloatVector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of floats if its exists. More... | |
virtual float * | getFloatArray (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to an array of floats if its exists. More... | |
virtual double | getDouble (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a double if its exists. More... | |
virtual vector< double > * | getDoubleVector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of doubles if its exists. More... | |
virtual double * | getDoubleArray (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an array of doubles if its exists. More... | |
virtual int8_t | getInt8 (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an 8 bit, signed integer if its exists. More... | |
virtual int16_t | getInt16 (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an 16 bit, signed integer if its exists. More... | |
virtual int32_t | getInt32 (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an 32 bit, signed integer if its exists. More... | |
virtual int64_t | getInt64 (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an 64 bit, signed integer if its exists. More... | |
virtual vector< int8_t > * | getInt8Vector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of 8-bit, signed ints if its exists. More... | |
virtual vector< int16_t > * | getInt16Vector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of 16-bit, signed ints if its exists. More... | |
virtual vector< int32_t > * | getInt32Vector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of 32-bit, signed ints if its exists. More... | |
virtual vector< int64_t > * | getInt64Vector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of 64-bit, signed ints if its exists. More... | |
virtual int8_t * | getInt8Array (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an array of 8-bit, signed ints if its exists. More... | |
virtual int16_t * | getInt16Array (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an array of 16-bit, signed ints if its exists. More... | |
virtual int32_t * | getInt32Array (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an array of 32-bit, signed ints if its exists. More... | |
virtual int64_t * | getInt64Array (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an array of 64-bit, signed ints if its exists. More... | |
virtual uint8_t | getUint8 (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an 8 bit, unsigned integer if its exists. More... | |
virtual uint16_t | getUint16 (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an 16 bit, unsigned integer if its exists. More... | |
virtual uint32_t | getUint32 (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an 32 bit, unsigned integer if its exists. More... | |
virtual uint64_t | getUint64 (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an 64 bit, unsigned integer if its exists. More... | |
virtual vector< uint8_t > * | getUint8Vector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of 8-bit, unsigned ints if its exists. More... | |
virtual vector< uint16_t > * | getUint16Vector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of 16-bit, unsigned ints if its exists. More... | |
virtual vector< uint32_t > * | getUint32Vector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of 32-bit, unsigned ints if its exists. More... | |
virtual vector< uint64_t > * | getUint64Vector (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a pointer to a vector of 64-bit, unsigned ints if its exists. More... | |
virtual uint8_t * | getUint8Array (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an array of 8-bit, unsigned ints if its exists. More... | |
virtual uint16_t * | getUint16Array (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an array of 16-bit, unsigned ints if its exists. More... | |
virtual uint32_t * | getUint32Array (const string &name) const throw (cMsgException) |
This method returns the value of the given field as a array of 32-bit, unsigned ints if its exists. More... | |
virtual uint64_t * | getUint64Array (const string &name) const throw (cMsgException) |
This method returns the value of the given field as an array of 64-bit, unsigned ints if its exists. More... | |
virtual void | add (const string &name, const char *src, int size, int endian) |
This method adds a named binary field to the compound payload of a message. More... | |
virtual void | add (const string &name, const char **srcs, int number, const int sizes[], const int endians[]) |
This method adds a named binary field to the compound payload of a message. More... | |
virtual void | add (const string &name, const string &s) |
This method adds a string to the compound payload of a message. More... | |
virtual void | add (const string &name, const string *s) |
This method adds a string to the compound payload of a message. More... | |
virtual void | add (const string &name, const char **strs, int len) |
This method adds an array of strings to the compound payload of a message. More... | |
virtual void | add (const string &name, const string *strs, int len) |
This method adds an array of strings to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< string > &strs) |
This method adds a vector of strings to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< string > *strs) |
This method adds a vector of strings to the compound payload of a message. More... | |
virtual void | add (const string &name, const cMsgMessage &msg) |
This method adds a cMsg message to the compound payload of a message. More... | |
virtual void | add (const string &name, const cMsgMessage *msg) |
This method adds a cMsg message to the compound payload of a message. More... | |
virtual void | add (const string &name, const cMsgMessage *msg, int len) |
This method adds an array of cMsg messages to the compound payload of a message. More... | |
virtual void | add (const string &name, const cMsgMessage **msg, int len) |
This method adds an array of cMsg messages to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< cMsgMessage > &msgVec) |
This method adds a named vector of cMsgMessage objects to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< cMsgMessage > *msgVec) |
This method adds a named vector of cMsgMessage objects to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< cMsgMessage * > &msgPVec) |
This method adds a named vector of pointers to cMsgMessage objects to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< cMsgMessage * > *msgPVec) |
This method adds a named vector of pointers to cMsgMessage objects to the compound payload of a message. More... | |
virtual void | add (const string &name, float val) |
This method adds a named float field to the compound payload of a message. More... | |
virtual void | add (const string &name, double val) |
This method adds a named double field to the compound payload of a message. More... | |
virtual void | add (const string &name, const float *vals, int len) |
This method adds a named array of floats to the compound payload of a message. More... | |
virtual void | add (const string &name, const double *vals, int len) |
This method adds a named array of doubles to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< float > &vals) |
This method adds a named vector of floats to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< float > *vals) |
This method adds a named vector of floats to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< double > &vals) |
This method adds a named vector of doubles to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< double > *vals) |
This method adds a named vector of doubles to the compound payload of a message. More... | |
virtual void | add (const string &name, int8_t val) |
This method adds a named, 8-bit, signed int field to the compound payload of a message. More... | |
virtual void | add (const string &name, int16_t val) |
This method adds a named, 16-bit, signed int field to the compound payload of a message. More... | |
virtual void | add (const string &name, int32_t val) |
This method adds a named, 32-bit, signed int field to the compound payload of a message. More... | |
virtual void | add (const string &name, int64_t val) |
This method adds a named, 64-bit, signed int field to the compound payload of a message. More... | |
virtual void | add (const string &name, uint8_t val) |
This method adds a named, 8-bit, unsigned int field to the compound payload of a message. More... | |
virtual void | add (const string &name, uint16_t val) |
This method adds a named, 16-bit, unsigned int field to the compound payload of a message. More... | |
virtual void | add (const string &name, uint32_t val) |
This method adds a named, 32-bit, unsigned int field to the compound payload of a message. More... | |
virtual void | add (const string &name, uint64_t val) |
This method adds a named, 64-bit, unsigned int field to the compound payload of a message. More... | |
virtual void | add (const string &name, const int8_t *vals, int len) |
This method adds a named array of 8-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const int16_t *vals, int len) |
This method adds a named array of 16-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const int32_t *vals, int len) |
This method adds a named array of 32-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const int64_t *vals, int len) |
This method adds a named array of 64-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const uint8_t *vals, int len) |
This method adds a named array of 8-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const uint16_t *vals, int len) |
This method adds a named array of 16-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const uint32_t *vals, int len) |
This method adds a named array of 32-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const uint64_t *vals, int len) |
This method adds a named array of 64-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< int8_t > &vals) |
This method adds a named vector of 8-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< int8_t > *vals) |
This method adds a named vector of 8-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< int16_t > &vals) |
This method adds a named vector of 16-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< int16_t > *vals) |
This method adds a named vector of 16-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< int32_t > &vals) |
This method adds a named vector of 32-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< int32_t > *vals) |
This method adds a named vector of 32-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< int64_t > &vals) |
This method adds a named vector of 64-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< int64_t > *vals) |
This method adds a named vector of 64-bit, signed ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< uint8_t > &vals) |
This method adds a named vector of 8-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< uint8_t > *vals) |
This method adds a named vector of 8-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< uint16_t > &vals) |
This method adds a named vector of 16-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< uint16_t > *vals) |
This method adds a named vector of 16-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< uint32_t > &vals) |
This method adds a named vector of 32-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< uint32_t > *vals) |
This method adds a named vector of 32-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< uint64_t > &vals) |
This method adds a named vector of 64-bit, unsigned ints to the compound payload of a message. More... | |
virtual void | add (const string &name, const vector< uint64_t > *vals) |
This method adds a named vector of 64-bit, unsigned ints to the compound payload of a message. More... | |
Public Attributes | |
void * | myMsgPointer |
Pointer to C message structure. More... | |
Friends | |
class | cMsg |
Allows cMsg to see myMsgPointer. More... | |
cMsgMessage::cMsgMessage | ( | void | ) | ||
throw | ( | cMsgException | |||
) |
Default constructor creates message.
cMsgException |
Definition at line 309 of file cMsgWrapper.cc.
References myMsgPointer.
Referenced by copy(), nullResponse(), and response().
cMsgMessage::cMsgMessage | ( | const cMsgMessage & | msg | ) | |
throw | ( | cMsgException | |||
) |
Copy constructor creates message object from another message object.
msg | The other message |
cMsgException |
Definition at line 327 of file cMsgWrapper.cc.
cMsgMessage::cMsgMessage | ( | void * | msgPointer | ) | |
throw | ( | cMsgException | |||
) |
Constructor creates message object from C message pointer.
msgPointer | C pointer to message |
cMsgException |
Definition at line 345 of file cMsgWrapper.cc.
|
virtual |
Destructor frees C message pointer struct.
Definition at line 360 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
This method adds a named binary field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
src | pointer to binary data to add |
size | size in bytes of data to add |
endian | endian value of binary data, may be CMSG_ENDIAN_BIG, CMSG_ENDIAN_LITTLE, CMSG_ENDIAN_LOCAL, or CMSG_ENDIAN_NOTLOCAL |
cMsgException | if no memory, error in binary-to-text conversion, name already used, improper name, src is null, size < 1, or endian improper value |
Definition at line 1345 of file cMsgPayload.cc.
|
virtual |
This method adds a named binary field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
srcs | pointer to array of binary data arrays to add |
number | number of arrays of binary data to add |
sizes | array of sizes in bytes of binary data arrays to add |
endians | array of endian values of binary data arrays, may be CMSG_ENDIAN_BIG, CMSG_ENDIAN_LITTLE, CMSG_ENDIAN_LOCAL, or CMSG_ENDIAN_NOTLOCAL |
cMsgException | if no memory, error in binary-to-text conversion, name already used, improper name, src is null, size < 1, or endian improper value |
Definition at line 1372 of file cMsgPayload.cc.
|
virtual |
This method adds a string to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
s | string to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1400 of file cMsgPayload.cc.
|
virtual |
This method adds a string to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
s | pointer to string to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1422 of file cMsgPayload.cc.
|
virtual |
This method adds an array of strings to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
strs | array of C-style strings to add |
len | number of strings from array to add |
cMsgException | if no memory, name already used, improper name, strs is null, len < 1 |
Definition at line 1439 of file cMsgPayload.cc.
|
virtual |
This method adds an array of strings to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
strs | array of strings to add |
len | number of strings from array to add |
cMsgException | if no memory, name already used, improper name, strs is null, len < 1 |
Definition at line 1465 of file cMsgPayload.cc.
|
virtual |
This method adds a vector of strings to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
strs | vector of strings to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1505 of file cMsgPayload.cc.
|
virtual |
This method adds a vector of strings to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
strs | pointer to vector of strings to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1540 of file cMsgPayload.cc.
|
virtual |
This method adds a cMsg message to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
msg | cMsgMessage object to add |
cMsgException | if no memory, name already used, improper name |
Definition at line 1558 of file cMsgPayload.cc.
References myMsgPointer.
|
virtual |
This method adds a cMsg message to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
msg | pointer to cMsgMessage object to add |
cMsgException | if no memory, name already used, improper name |
Definition at line 1580 of file cMsgPayload.cc.
|
virtual |
This method adds an array of cMsg messages to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
msg | array of cMsgMessage objects to add |
len | number of objects from array to add |
cMsgException | if no memory, name already used, improper name, msg is null, len < 1 |
Definition at line 1598 of file cMsgPayload.cc.
References myMsgPointer.
|
virtual |
This method adds an array of cMsg messages to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
msg | array of pointers to cMsgMessage objects to add |
len | number of objects from array to add |
cMsgException | if no memory, name already used, improper name, msg is null, len < 1 |
Definition at line 1641 of file cMsgPayload.cc.
References myMsgPointer.
|
virtual |
This method adds a named vector of cMsgMessage objects to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
msgVec | vector of cMsgMessage objects to add (copy) |
cMsgException | if no memory, name already used, improper name |
Definition at line 1723 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of cMsgMessage objects to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
msgVec | pointer to vector of cMsgMessage objects to add (copy) |
cMsgException | if no memory, name already used, improper name |
Definition at line 1781 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of pointers to cMsgMessage objects to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
msgPVec | vector of pointers to cMsgMessage to add (copy) |
cMsgException | if no memory, name already used, improper name |
Definition at line 1683 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of pointers to cMsgMessage objects to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
msgPVec | pointer to vector of pointers to cMsgMessage to add (copy) |
cMsgException | if no memory, name already used, improper name |
Definition at line 1763 of file cMsgPayload.cc.
|
virtual |
This method adds a named float field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of float to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1800 of file cMsgPayload.cc.
|
virtual |
This method adds a named double field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of double to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1823 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of floats to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of floats to add (copy) |
len | number of floats from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 1849 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of doubles to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of doubles to add (copy) |
len | number of doubles from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 1912 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of floats to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of floats to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1872 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of floats to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of floats to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1895 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of doubles to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of doubles to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1935 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of doubles to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of doubles to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1958 of file cMsgPayload.cc.
|
virtual |
This method adds a named, 8-bit, signed int field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of 8-bit, signed int to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1976 of file cMsgPayload.cc.
|
virtual |
This method adds a named, 16-bit, signed int field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of 16-bit, signed int to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 1999 of file cMsgPayload.cc.
|
virtual |
This method adds a named, 32-bit, signed int field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of 32-bit, signed int to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2022 of file cMsgPayload.cc.
|
virtual |
This method adds a named, 64-bit, signed int field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of 64-bit, signed int to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2045 of file cMsgPayload.cc.
|
virtual |
This method adds a named, 8-bit, unsigned int field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of 8-bit, unsigned int to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2068 of file cMsgPayload.cc.
|
virtual |
This method adds a named, 16-bit, unsigned int field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of 16-bit, unsigned int to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2091 of file cMsgPayload.cc.
|
virtual |
This method adds a named, 32-bit, unsigned int field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of 32-bit, unsigned int to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2114 of file cMsgPayload.cc.
|
virtual |
This method adds a named, 64-bit, unsigned int field to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
val | value of 64-bit, unsigned int to add |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2137 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of 8-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of 8-bit, signed ints to add (copy) |
len | number of ints from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 2163 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of 16-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of 16-bit, signed ints to add (copy) |
len | number of ints from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 2229 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of 32-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of 32-bit, signed ints to add (copy) |
len | number of ints from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 2294 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of 64-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of 64-bit, signed ints to add (copy) |
len | number of ints from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 2360 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of 8-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of 8-bit, unsigned ints to add (copy) |
len | number of ints from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 2427 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of 16-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of 16-bit, unsigned ints to add (copy) |
len | number of ints from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 2493 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of 32-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of 32-bit, unsigned ints to add (copy) |
len | number of ints from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 2559 of file cMsgPayload.cc.
|
virtual |
This method adds a named array of 64-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | array of 64-bit, unsigned ints to add (copy) |
len | number of ints from array to add |
cMsgException | if no memory, name already used, improper name, or vals is null |
Definition at line 2625 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 8-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of 8-bit, signed ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2186 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 8-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of 8-bit, signed ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2212 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 16-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of 16-bit, signed ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2252 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 16-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of 16-bit, signed ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2277 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 32-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of 32-bit, signed ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2317 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 32-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of 32-bit, signed ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2343 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 64-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of 64-bit, signed ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2383 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 64-bit, signed ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of 64-bit, signed ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2409 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 8-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of 8-bit, unsigned ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2450 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 8-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of 8-bit, unsigned ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2476 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 16-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of 16-bit, unsigned ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2516 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 16-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of 16-bit, unsigned ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2542 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 32-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of 32-bit, unsigned ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2582 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 32-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of 32-bit, unsigned ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2608 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 64-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | vector of 64-bit, unsigned ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2648 of file cMsgPayload.cc.
|
virtual |
This method adds a named vector of 64-bit, unsigned ints to the compound payload of a message.
Names may not begin with "cmsg" (case insensitive), be longer than CMSG_PAYLOAD_NAME_LEN, or contain white space or quotes.
name | name of field to add |
vals | pointer to vector of 64-bit, unsigned ints to add (copy) |
cMsgException | if no memory, name already used, or improper name |
Definition at line 2674 of file cMsgPayload.cc.
|
virtual |
Copies a message.
Definition at line 821 of file cMsgWrapper.cc.
References cMsgMessage(), and myMsgPointer.
|
virtual |
This method returns the value of the given field as a binary array if it exists.
name | name of field to get |
val | address of pointer to data which sets the pointer to binary |
len | int reference which gets set to the number of bytes in binary array |
endian | int reference which gets set to endian of data (CMSG_ENDIAN_BIG/LITTLE) |
cMsgException | if no payload/field exists or field is not right type, or if any arg is NULL |
Definition at line 312 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a binary array if it exists.
name | name of field to get |
vals | address of array of binary arrays which sets the array pointer |
lens | pointer to array filled with the number of bytes in each binary array |
endians | pointer to array filled in with the endianness of data (CMSG_ENDIAN_BIG/LITTLE) in each binary array |
count | int reference which gets set to number of binary arrays returned |
cMsgException | if no payload/field exists or field is not right type, or if any arg is NULL |
Definition at line 335 of file cMsgPayload.cc.
|
virtual |
Gets byte array.
Definition at line 638 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets endian-ness of message byte array.
Valid return values are:
Definition at line 659 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message region-of-interest byte array length.
Definition at line 535 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message full byte array length.
Definition at line 551 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets offset in byte array.
Definition at line 584 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message domain.
cMsgException |
Definition at line 837 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
This method returns the value of the given field as a double if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 607 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an array of doubles if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 714 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of doubles if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 686 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a float if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 588 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to an array of floats if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 658 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of floats if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 631 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an 16 bit, signed integer if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 760 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an array of 16-bit, signed ints if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 978 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of 16-bit, signed ints if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 951 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an 32 bit, signed integer if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 779 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an array of 32-bit, signed ints if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1032 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of 32-bit, signed ints if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1005 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an 64 bit, signed integer if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 798 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an array of 64-bit, signed ints if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1086 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of 64-bit, signed ints if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1059 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an 8 bit, signed integer if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 741 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an array of 8-bit, signed ints if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 924 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of 8-bit, signed ints if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 897 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a cMsgMessage object pointer if its exists.
A copy of the message is made, so the pointer must be deleted to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 359 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to an array of cMsgMessage objects, if it exists.
The array must be deleted by caller to avoid a memory leak, as do all the messages it contains.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 481 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to an array of pointers to cMsgMessage objects, if it exists.
The array must be deleted by caller to avoid a memory leak, as do all the messages it contains.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 451 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of pointers to cMsgMessage objects, if its exists.
The vector pointer must be deleted by caller to avoid a memory leak, as do all the messages it contains.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 389 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of cMsgMessage objects, if its exists.
The vector pointer must be deleted by caller to avoid a memory leak, as do all the messages it contains.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 420 of file cMsgPayload.cc.
|
virtual |
Gets message receiver.
cMsgException |
Definition at line 863 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message receiver host.
cMsgException |
Definition at line 889 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message receiver time.
cMsgException |
Definition at line 967 of file cMsgWrapper.cc.
|
virtual |
True if message sent via reliable send.
cMsgException |
Definition at line 1378 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message sender.
cMsgException |
Definition at line 915 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message sender host.
cMsgException |
Definition at line 941 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message sender time.
cMsgException |
Definition at line 988 of file cMsgWrapper.cc.
|
virtual |
This method returns the value of the given field as a string if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 509 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to an array of strings if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 561 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of strings if its exists.
The vector must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 533 of file cMsgPayload.cc.
|
virtual |
Gets message subject.
cMsgException |
Definition at line 374 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets current subscription cue size.
cMsgException |
Definition at line 1357 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets subscription domain.
cMsgException |
Definition at line 1253 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets subscription subject.
cMsgException |
Definition at line 1279 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets subscription type.
cMsgException |
Definition at line 1305 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets subscription UDL.
cMsgException |
Definition at line 1331 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message text.
cMsgException |
Definition at line 462 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message type.
cMsgException |
Definition at line 418 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
This method returns the value of the given field as an 16 bit, unsigned integer if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 836 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an array of 16-bit, unsigned ints if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1198 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of 16-bit, unsigned ints if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1170 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an 32 bit, unsigned integer if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 855 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a array of 32-bit, unsigned ints if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1252 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of 32-bit, unsigned ints if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1225 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an 64 bit, unsigned integer if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 874 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an array of 64-bit, unsigned ints if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1307 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of 64-bit, unsigned ints if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1279 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an 8 bit, unsigned integer if its exists.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 817 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as an array of 8-bit, unsigned ints if its exists.
The array must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1142 of file cMsgPayload.cc.
|
virtual |
This method returns the value of the given field as a pointer to a vector of 8-bit, unsigned ints if its exists.
The vector pointer must be deleted by caller to avoid a memory leak.
name | name of field to get |
cMsgException | if no payload/field exists or field is not right type |
Definition at line 1114 of file cMsgPayload.cc.
|
virtual |
Gets message user int.
cMsgException |
Definition at line 725 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Gets message user time.
cMsgException |
Definition at line 764 of file cMsgWrapper.cc.
|
virtual |
Gets cMsg version.
Definition at line 801 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
This method returns whether a message has a compound payload or not.
Definition at line 76 of file cMsgPayload.cc.
|
virtual |
True if message is a get request.
Definition at line 1008 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
True if message is a get response.
Definition at line 1028 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
True if message is a NULL get response.
cMsgException |
Definition at line 1049 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Makes a message a null response message.
msg | Message to make a null response |
cMsgException |
Definition at line 1070 of file cMsgWrapper.cc.
|
virtual |
Makes a message a null response message.
msg | Message to make a null response |
cMsgException |
Definition at line 1090 of file cMsgWrapper.cc.
|
virtual |
Makes a message a response message.
msg | Message to make a response |
cMsgException |
Definition at line 1110 of file cMsgWrapper.cc.
|
virtual |
Makes a message a response message.
msg | Message to make a response |
cMsgException |
Definition at line 1130 of file cMsgWrapper.cc.
|
virtual |
True if need to swap byte array.
cMsgException |
Definition at line 704 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Creates a null response message.
cMsgException |
Definition at line 1150 of file cMsgWrapper.cc.
References cMsgMessage(), and myMsgPointer.
|
virtual |
This method removes all the user-added items in the payload.
The payload may still contain fields added by the cMsg system.
Definition at line 44 of file cMsgPayload.cc.
|
virtual |
This method returns whether an item in the payload has the given name or not.
name | name of field to look for |
Definition at line 90 of file cMsgPayload.cc.
|
virtual |
This method copies the payload from another message.
The original payload is overwritten.
msg | reference to message to copy payload from |
cMsgException | if no memory |
Definition at line 170 of file cMsgPayload.cc.
|
virtual |
This method returns a pointer to a map containing all name/type pairs of the payload.
A field's name is the key and type is the value. The map must be deleted to avoid a memory leak.
cMsgException | if no payload exists, or if name is NULL |
Definition at line 240 of file cMsgPayload.cc.
|
virtual |
This method returns the number of payload items a message has.
Definition at line 101 of file cMsgPayload.cc.
|
virtual |
This method returns a description of the given field name in the payload.
cMsgException | if no such field in the payload |
Definition at line 218 of file cMsgPayload.cc.
|
virtual |
This method returns a text representation of the payload.
Its format is proprietary - not XML.
Definition at line 185 of file cMsgPayload.cc.
|
virtual |
This method returns the type of data associated with the payload field given by the name argument.
The returned type may have the following values:
CMSG_CP_BIN for binary
name | name of field to find type for |
cMsgException | if no payload/field exists, or if name is NULL |
Definition at line 148 of file cMsgPayload.cc.
|
virtual |
This method prints out the message payload in a readable form.
Definition at line 65 of file cMsgPayload.cc.
|
virtual |
This method removes the named field if its exists.
name | name of field to remove |
Definition at line 271 of file cMsgPayload.cc.
|
virtual |
This method removes all items (including those added by the cMsg system) in the payload.
This method frees the allocated memory of the given message's entire payload and then initializes the payload components of the message.
Definition at line 56 of file cMsgPayload.cc.
|
virtual |
This method takes a string returned from payloadGetText as an argument and constructs a payload out of it.
Any existing payload is overwritten.
txt | string representing payload |
Definition at line 201 of file cMsgPayload.cc.
|
virtual |
Sets message region-of-interest byte array length to the full length of the array.
Definition at line 522 of file cMsgWrapper.cc.
References myMsgPointer.
|
virtual |
Creates a response message.
cMsgException |
Definition at line 1170 of file cMsgWrapper.cc.
References cMsgMessage(), and myMsgPointer.
|
virtual |
Specifies byte array by copying it.
array | Byte array |
length | Length of byte array in bytes |
cMsgException |
Definition at line 602 of file cMsgWrapper.cc.
|
virtual |
Sets endian-ness of message byte array.
Valid values are:
endian | Endian-ness value |
cMsgException |
Definition at line 684 of file cMsgWrapper.cc.
|
virtual |
Sets message region-of-interest byte array length.
length | Array length in bytes |
cMsgException |
Definition at line 506 of file cMsgWrapper.cc.
|
virtual |
Specifies the byte array by only copying the pointer to the array.
array | Byte array |
length | Length of byte array in bytes |
cMsgException |
Definition at line 621 of file cMsgWrapper.cc.
|
virtual |
Specifies offset in byte array.
offset | Offset in byte array |
cMsgException |
Definition at line 567 of file cMsgWrapper.cc.
|
virtual |
Makes message a get response message.
b | True to make message a get response message |
cMsgException |
Definition at line 1190 of file cMsgWrapper.cc.
|
virtual |
This method sets the maximum number of entries this message keeps of its history of various parameters (sender's name, host, time).
len | max number of entries this message keeps of its history of various parameters |
cMsgException | if len < 0 or > CMSG_HISTORY_LENGTH_ABS_MAX |
Definition at line 287 of file cMsgPayload.cc.
|
virtual |
Makes message a null response message.
b | True to make message a null response message |
cMsgException |
Definition at line 1208 of file cMsgWrapper.cc.
|
virtual |
Sets message reliable send flag.
b | True if reliable send should be used |
cMsgException |
Definition at line 1399 of file cMsgWrapper.cc.
|
virtual |
Sets message subject.
subject | Message subject |
cMsgException |
Definition at line 400 of file cMsgWrapper.cc.
|
virtual |
Sets message text.
text | Message text |
cMsgException |
Definition at line 488 of file cMsgWrapper.cc.
|
virtual |
Sets message type.
type | Message type |
cMsgException |
Definition at line 444 of file cMsgWrapper.cc.
|
virtual |
Sets message user int.
i | User int |
cMsgException |
Definition at line 746 of file cMsgWrapper.cc.
|
virtual |
Sets message user time.
userTime | Timespec holding user time |
Definition at line 784 of file cMsgWrapper.cc.
|
virtual |
Gets xml representation of message.
cMsgException |
Definition at line 1226 of file cMsgWrapper.cc.
References myMsgPointer.
void* cmsg::cMsgMessage::myMsgPointer |
Pointer to C message structure.
Definition at line 304 of file cMsg.hxx.
Referenced by add(), cMsgMessage(), copy(), getByteArray(), getByteArrayEndian(), getByteArrayLength(), getByteArrayLengthFull(), getByteArrayOffset(), getDomain(), getReceiver(), getReceiverHost(), getReliableSend(), getSender(), getSenderHost(), getSubject(), getSubscriptionCueSize(), getSubscriptionDomain(), getSubscriptionSubject(), getSubscriptionType(), getSubscriptionUDL(), getText(), getType(), getUserInt(), getVersion(), isGetRequest(), isGetResponse(), isNullGetResponse(), needToSwap(), nullResponse(), resetByteArrayLength(), response(), toString(), and ~cMsgMessage().