#include <ObjectRequestQueue.h>
Public Member Functions | |
ObjectRequestQueue () | |
virtual | ~ObjectRequestQueue () |
Object * | clone () const |
JString | enterRequest (Object *req) |
Object * | waitForReply (JString id, long ms) |
virtual unsigned long | getPayloadSize () const |
Get total size of payload. | |
bool | isEmpty () |
int | getCount () |
bool | waitForNewRequestToAppear (int ms) |
JString | waitForNewRequestID (int ms) |
Object * | getRequest (JString id) |
bool | reply (JString id, Object *rep) |
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. | |
bool | unitTest () |
Public Attributes | |
ObjectQueue * | inQueue |
ObjectQueue * | outQueue |
Definition at line 40 of file ObjectRequestQueue.h.
cmlabs::ObjectRequestQueue::ObjectRequestQueue | ( | ) |
Definition at line 33 of file ObjectRequestQueue.cpp.
cmlabs::ObjectRequestQueue::~ObjectRequestQueue | ( | ) | [virtual] |
Definition at line 38 of file ObjectRequestQueue.cpp.
Object* cmlabs::ObjectRequestQueue::clone | ( | ) | const [virtual] |
Definition at line 49 of file ObjectRequestQueue.cpp.
Definition at line 55 of file ObjectRequestQueue.cpp.
unsigned long cmlabs::ObjectRequestQueue::getPayloadSize | ( | ) | const [virtual] |
Get total size of payload.
Reimplemented from cmlabs::Object.
Definition at line 45 of file ObjectRequestQueue.cpp.
bool cmlabs::ObjectRequestQueue::isEmpty | ( | ) |
Definition at line 59 of file ObjectRequestQueue.cpp.
int cmlabs::ObjectRequestQueue::getCount | ( | ) |
Definition at line 63 of file ObjectRequestQueue.cpp.
bool cmlabs::ObjectRequestQueue::waitForNewRequestToAppear | ( | int | ms | ) |
Definition at line 69 of file ObjectRequestQueue.cpp.
JString cmlabs::ObjectRequestQueue::waitForNewRequestID | ( | int | ms | ) |
Definition at line 73 of file ObjectRequestQueue.cpp.
Definition at line 77 of file ObjectRequestQueue.cpp.
Definition at line 81 of file ObjectRequestQueue.cpp.
long cmlabs::ObjectRequestQueue::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.
Definition at line 92 of file ObjectRequestQueue.cpp.
int cmlabs::ObjectRequestQueue::getBinaryChunkCount | ( | ) | [virtual] |
Get the number of data chunks.
Reimplemented from cmlabs::Object.
Definition at line 109 of file ObjectRequestQueue.cpp.
long cmlabs::ObjectRequestQueue::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.
Definition at line 119 of file ObjectRequestQueue.cpp.
bool cmlabs::ObjectRequestQueue::fromBinaryBuffer | ( | int | chunk, | |
char * | buffer, | |||
long | len | |||
) | [virtual] |
Set the data after separate reception.
Reimplemented from cmlabs::Object.
Definition at line 136 of file ObjectRequestQueue.cpp.
bool cmlabs::ObjectRequestQueue::unitTest | ( | ) | [virtual] |
Definition at line 80 of file ObjectRequestQueue.h.
Definition at line 81 of file ObjectRequestQueue.h.