cmlabs::ObjectQueue Class Reference

#include <ObjectQueue.h>

Inheritance diagram for cmlabs::ObjectQueue:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::ObjectQueue:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ObjectQueue ()
virtual ~ObjectQueue ()
bool unitTest ()
Objectclone () const
bool isEmpty ()
int getCount ()
bool removeAll ()
ObjectCollectionretrieveAll ()
JString add (Object *obj)
 Add and return newly created id.
JString add (JString id, Object *obj)
virtual unsigned long getPayloadSize () const
 Get total size of payload.
JString waitForNewEntryID (long ms)
 use to block until Queue is no longer empty
bool waitForNewEntryToAppear (long ms)
ObjectwaitForNewEntry (long ms)
ObjectwaitForNewEntry (JString id, long ms)
ObjectretrieveEntry (JString id)
ObjectretrieveEntry (int pos)
ObjectviewEntry (JString id)
ObjectviewEntry (int pos)
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

ObjectDictionarydict

Protected Attributes

JMutex mutex
JSemaphore sem


Detailed Description

Definition at line 42 of file ObjectQueue.h.


Constructor & Destructor Documentation

cmlabs::ObjectQueue::ObjectQueue (  ) 

Definition at line 33 of file ObjectQueue.cpp.

cmlabs::ObjectQueue::~ObjectQueue (  )  [virtual]

Definition at line 39 of file ObjectQueue.cpp.


Member Function Documentation

bool cmlabs::ObjectQueue::unitTest (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 294 of file ObjectQueue.cpp.

Object* cmlabs::ObjectQueue::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 50 of file ObjectQueue.h.

bool cmlabs::ObjectQueue::isEmpty (  ) 

Definition at line 49 of file ObjectQueue.cpp.

int cmlabs::ObjectQueue::getCount (  ) 

Definition at line 60 of file ObjectQueue.cpp.

bool cmlabs::ObjectQueue::removeAll (  ) 

Definition at line 69 of file ObjectQueue.cpp.

ObjectCollection * cmlabs::ObjectQueue::retrieveAll (  ) 

Definition at line 76 of file ObjectQueue.cpp.

JString cmlabs::ObjectQueue::add ( Object obj  ) 

Add and return newly created id.

Definition at line 94 of file ObjectQueue.cpp.

JString cmlabs::ObjectQueue::add ( JString  id,
Object obj 
)

Definition at line 104 of file ObjectQueue.cpp.

unsigned long cmlabs::ObjectQueue::getPayloadSize (  )  const [virtual]

Get total size of payload.

Reimplemented from cmlabs::Object.

Definition at line 45 of file ObjectQueue.cpp.

JString cmlabs::ObjectQueue::waitForNewEntryID ( long  ms  ) 

use to block until Queue is no longer empty

Definition at line 115 of file ObjectQueue.cpp.

bool cmlabs::ObjectQueue::waitForNewEntryToAppear ( long  ms  ) 

Definition at line 171 of file ObjectQueue.cpp.

Object * cmlabs::ObjectQueue::waitForNewEntry ( long  ms  ) 

Definition at line 142 of file ObjectQueue.cpp.

Object * cmlabs::ObjectQueue::waitForNewEntry ( JString  id,
long  ms 
)

Definition at line 200 of file ObjectQueue.cpp.

Object * cmlabs::ObjectQueue::retrieveEntry ( JString  id  ) 

Definition at line 234 of file ObjectQueue.cpp.

Object * cmlabs::ObjectQueue::retrieveEntry ( int  pos  ) 

Definition at line 243 of file ObjectQueue.cpp.

Object * cmlabs::ObjectQueue::viewEntry ( JString  id  ) 

Definition at line 252 of file ObjectQueue.cpp.

Object * cmlabs::ObjectQueue::viewEntry ( int  pos  ) 

Definition at line 256 of file ObjectQueue.cpp.

long cmlabs::ObjectQueue::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 266 of file ObjectQueue.cpp.

int cmlabs::ObjectQueue::getBinaryChunkCount (  )  [virtual]

Get the number of data chunks.

Reimplemented from cmlabs::Object.

Definition at line 273 of file ObjectQueue.cpp.

long cmlabs::ObjectQueue::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 280 of file ObjectQueue.cpp.

bool cmlabs::ObjectQueue::fromBinaryBuffer ( int  chunk,
char *  buffer,
long  len 
) [virtual]

Set the data after separate reception.

Reimplemented from cmlabs::Object.

Definition at line 287 of file ObjectQueue.cpp.


Member Data Documentation

Definition at line 85 of file ObjectQueue.h.

Definition at line 89 of file ObjectQueue.h.

Definition at line 90 of file ObjectQueue.h.


The documentation for this class was generated from the following files:

Generated on Tue Jul 7 16:23:39 2009 for CoreLibrary by  doxygen 1.5.6