#include <Specs.h>
Public Member Functions | |
ActionSpec () | |
ActionSpec (JString name, JString act, JString value, JString target="", Object *obj=NULL, JString content="") | |
ActionSpec (const JString &xml) | |
ActionSpec (XMLNode *node) | |
~ActionSpec () | |
virtual unsigned long | getPayloadSize () const |
Get total size of payload. | |
Object * | clone () const |
bool | fromXML (const JString &xml) |
bool | fromXML (XMLNode *node) |
JString | toXML () |
JString | toHTML () |
bool | setParameter (JString name, JString value) |
JString | getParameter (JString name) |
long | getBinarySize (int chunk) |
Get the size of binary data chunk, -1 for all chunks. | |
int | getBinaryChunkCount () |
Get the number of data chunks. | |
long | toBinaryBuffer (int chunk, char *buffer, int maxlen) |
Write binary data to buffer at chunk number 'chunk'. | |
bool | fromBinaryBuffer (int chunk, char *buffer, long len) |
Set the data after separate reception. | |
Public Attributes | |
JString | name |
int | delay |
JString | state |
JString | target |
JString | act |
JString | value |
JString | content |
Object * | object |
Object * | answer |
Dictionary | params |
Definition at line 511 of file Specs.h.
unsigned long cmlabs::ActionSpec::getPayloadSize | ( | ) | const [virtual] |
Object * cmlabs::ActionSpec::clone | ( | ) | const [virtual] |
bool cmlabs::ActionSpec::fromXML | ( | const JString & | xml | ) | [virtual] |
bool cmlabs::ActionSpec::fromXML | ( | XMLNode * | node | ) | [virtual] |
JString cmlabs::ActionSpec::toXML | ( | ) | [virtual] |
JString cmlabs::ActionSpec::toHTML | ( | ) | [virtual] |
long cmlabs::ActionSpec::getBinarySize | ( | int | chunk | ) | [virtual] |
Get the size of binary data chunk, -1 for all chunks.
Get the size of any binary data.
Reimplemented from cmlabs::Object.
int cmlabs::ActionSpec::getBinaryChunkCount | ( | ) | [virtual] |
long cmlabs::ActionSpec::toBinaryBuffer | ( | int | chunk, | |
char * | buffer, | |||
int | maxlen | |||
) | [virtual] |
Write binary data to buffer at chunk number 'chunk'.
Get a pointer to the binary data at chunk number 'chunk'.
Reimplemented from cmlabs::Object.
bool cmlabs::ActionSpec::fromBinaryBuffer | ( | int | chunk, | |
char * | buffer, | |||
long | len | |||
) | [virtual] |