cmlabs::Object Class Reference

Base object for all other objects. More...

#include <Object.h>

Inherited by cmlabs::ActionPerformer, cmlabs::ActionSpec, cmlabs::BinaryBuffer, cmlabs::BinaryBufferEntry, cmlabs::Boolex, cmlabs::Box, cmlabs::CatalogSpec, cmlabs::ClientProfile, cmlabs::CMManipulator, cmlabs::CMMap, cmlabs::CMMeasurement, cmlabs::CMObject, cmlabs::CMPoint, cmlabs::CMPose, cmlabs::CollectionBase, cmlabs::CollectionEntry, cmlabs::Color, cmlabs::CommunicationRecorder, cmlabs::ConnectionProfile, cmlabs::ContextSpec, cmlabs::CrankSpec, cmlabs::CVMLDataSet, cmlabs::CVMLFrame, cmlabs::CVMLHypothesis, cmlabs::CVMLObjectBase, cmlabs::DataSample, cmlabs::DotString, cmlabs::DynamicLoader, cmlabs::ExecutableSpec, cmlabs::FeatureCombiSpace, cmlabs::FeaturePlane, cmlabs::FeatureSpace, cmlabs::FeatureSpaceTime, cmlabs::FeatureVector, cmlabs::FeatureVectorList, cmlabs::Group, cmlabs::GroupDatabase, cmlabs::GroupList, cmlabs::HTMLPage, cmlabs::HTTPRequest, cmlabs::ImageFeature, cmlabs::InfoItem, cmlabs::JFile, cmlabs::JMutex, cmlabs::JSemaphore, cmlabs::JSingleSemaphore, cmlabs::JSocket, cmlabs::JString, cmlabs::JTime, cmlabs::LibHandle, cmlabs::Line, cmlabs::MediaConnection, cmlabs::MediaServer, cmlabs::MediaStream, cmlabs::Message, cmlabs::Messenger, cmlabs::ModuleSpec, cmlabs::NetProtocol, cmlabs::Network, cmlabs::NetworkConnection, cmlabs::ObjectLink, cmlabs::ObjectLinkProvider, cmlabs::ObjectObservation, cmlabs::ObjectQueue, cmlabs::ObjectRequestQueue, cmlabs::ObjectTable, cmlabs::ObjectTrack, cmlabs::ObjectTrackEntry, cmlabs::OSCommand, cmlabs::OutputText, cmlabs::Parameter, cmlabs::PathWay, cmlabs::PerfStat, cmlabs::PhaseSpec, cmlabs::Point, cmlabs::PointFloat, cmlabs::PolyLine, cmlabs::PostSpec, cmlabs::PreFetchRequest, cmlabs::Queue, cmlabs::Reference, cmlabs::RequestQueue, cmlabs::RetrieveSpec, cmlabs::SatelliteSpec, cmlabs::ServiceSpec, cmlabs::Size, cmlabs::SocketTester, cmlabs::SortedEntry, cmlabs::StatSample, cmlabs::StopWatch, cmlabs::StreamAccess, cmlabs::StreamSpec, cmlabs::SubGroupPairList, cmlabs::SubscriptionEntry, cmlabs::SysInfo, cmlabs::TCPLocation, cmlabs::TemporalGroupList, cmlabs::ThreadStat, cmlabs::Timer, cmlabs::TimerManager, cmlabs::TimeSeries, cmlabs::TriggerSpec, cmlabs::UninstantiatedXMLObject, cmlabs::Vector2D, cmlabs::Vector3D, cmlabs::VectorOfDoubles, cmlabs::VectorOfInts, cmlabs::VectorOfPoints, cmlabs::WhiteboardSpec, cmlabs::WriteAccessMutex, cmlabs::XMLNode, and cmlabs::XMLParser.

List of all members.

Public Member Functions

 Object ()
virtual ~Object ()
virtual bool unitTest ()
virtual bool equals (const Object *o2) const
virtual int compare (const Object *o2) const
virtual JString print ()
virtual JString toHTML ()
virtual JString toXML ()
virtual bool fromXML (const JString &xml)
virtual bool fromXML (XMLNode *node)
virtual Objectclone () const =0
virtual unsigned long getPayloadSize () const
 Get total size of payload.
void addUnitTestLog (const JString &str)
JString getUnitTestLog ()
virtual JString getClass () const
 Get the class name.
virtual bool isSameClass (const Object *o2) const
virtual bool isCollection () const
virtual unsigned long getHash () const
virtual long getBinarySize (int chunk)
 Get the size of binary data chunk, -1 for all chunks.
virtual int getBinaryChunkCount ()
 Get the number of data chunks.
virtual long toBinaryBuffer (int chunk, char *buffer, int maxlen)
 Write binary data to buffer at chunk number 'chunk'.
virtual bool fromBinaryBuffer (int chunk, char *buffer, long len)
 Set the data after separate reception.
int getProcID ()
 Get the OS process ID.

Static Public Member Functions

static double getRandomNumber ()
static JString getCoreLibraryVersion ()
static JString createUniqueID ()
static JString createUniqueID (const JString &title)
static JString extractIDLabel (const JString &id)
static ObjectcreateObjectFromXML (const JString &xml)
 Try to create an object by analysing the XML.
static ObjectcreateObjectFromXML (XMLNode *node)
static SysInfo getSystemInfo ()
static bool wait (long ms)

Public Attributes

char * unitTestLog


Detailed Description

Base object for all other objects.

Definition at line 46 of file Object.h.


Constructor & Destructor Documentation

cmlabs::Object::Object (  ) 

Definition at line 49 of file Object.cpp.

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

Definition at line 54 of file Object.cpp.


Member Function Documentation

double cmlabs::Object::getRandomNumber (  )  [static]

Definition at line 445 of file Object.cpp.

JString cmlabs::Object::getCoreLibraryVersion (  )  [static]

Definition at line 457 of file Object.cpp.

JString cmlabs::Object::createUniqueID (  )  [static]

Definition at line 461 of file Object.cpp.

JString cmlabs::Object::createUniqueID ( const JString title  )  [static]

Definition at line 517 of file Object.cpp.

JString cmlabs::Object::extractIDLabel ( const JString id  )  [static]

Definition at line 524 of file Object.cpp.

Object * cmlabs::Object::createObjectFromXML ( const JString xml  )  [static]

Try to create an object by analysing the XML.

Definition at line 102 of file Object.cpp.

Object * cmlabs::Object::createObjectFromXML ( XMLNode node  )  [static]

Definition at line 114 of file Object.cpp.

SysInfo cmlabs::Object::getSystemInfo (  )  [static]

Definition at line 761 of file Object.cpp.

bool cmlabs::Object::wait ( long  ms  )  [static]

Reimplemented in cmlabs::JSemaphore, and cmlabs::JSingleSemaphore.

Definition at line 661 of file Object.cpp.

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

bool cmlabs::Object::equals ( const Object o2  )  const [virtual]

int cmlabs::Object::compare ( const Object o2  )  const [virtual]

Reimplemented in cmlabs::DataSample, cmlabs::JString, cmlabs::JTime, cmlabs::Message, and cmlabs::SortedEntry.

Definition at line 63 of file Object.cpp.

JString cmlabs::Object::print (  )  [virtual]

JString cmlabs::Object::toHTML (  )  [virtual]

JString cmlabs::Object::toXML (  )  [virtual]

Reimplemented in cmlabs::Bitmap, cmlabs::CollectionBase, cmlabs::Color, cmlabs::DataSample, cmlabs::DotString, cmlabs::HTMLPage, cmlabs::HTTPRequest, cmlabs::ImagePointFeature, cmlabs::ImageLineFeature, cmlabs::ImagePolyLineFeature, cmlabs::FeaturePlane, cmlabs::FeatureSpace, cmlabs::FeatureCombiSpace, cmlabs::FeatureSpaceTime, cmlabs::InfoItem, cmlabs::ConnectionProfile, cmlabs::JString, cmlabs::Boolex, cmlabs::SysInfo, cmlabs::PerfStat, cmlabs::JTime, cmlabs::Size, cmlabs::Point, cmlabs::PointFloat, cmlabs::Line, cmlabs::PolyLine, cmlabs::VectorOfInts, cmlabs::VectorOfDoubles, cmlabs::VectorOfPoints, cmlabs::Box, cmlabs::Vector2D, cmlabs::Vector3D, cmlabs::Reference, cmlabs::Message, cmlabs::ObjectLink, cmlabs::ObjectTable, cmlabs::Parameter, cmlabs::PathWay, cmlabs::TriggerSpec, cmlabs::RetrieveSpec, cmlabs::CrankSpec, cmlabs::PostSpec, cmlabs::PhaseSpec, cmlabs::ContextSpec, cmlabs::ModuleSpec, cmlabs::WhiteboardSpec, cmlabs::StreamSpec, cmlabs::StreamAccess, cmlabs::CatalogSpec, cmlabs::ExecutableSpec, cmlabs::SatelliteSpec, cmlabs::ActionSpec, cmlabs::ClientProfile, cmlabs::ServiceSpec, cmlabs::TCPLocation, cmlabs::CMMeasurement, cmlabs::CMPoint, cmlabs::CMPose, cmlabs::CMManipulator, cmlabs::CMObject, cmlabs::CMMap, cmlabs::CVMLHypothesis, cmlabs::CVMLObjectBase, cmlabs::CVMLFrame, cmlabs::CVMLDataSet, cmlabs::FeatureVector, cmlabs::FeatureVectorList, cmlabs::Group, cmlabs::GroupDatabase, cmlabs::GroupList, cmlabs::SubGroupPairList, cmlabs::ObjectObservation, cmlabs::ObjectTrackEntry, cmlabs::ObjectTrack, cmlabs::TemporalGroupList, cmlabs::UninstantiatedXMLObject, and cmlabs::XMLNode.

Definition at line 81 of file Object.cpp.

bool cmlabs::Object::fromXML ( const JString xml  )  [virtual]

bool cmlabs::Object::fromXML ( XMLNode node  )  [virtual]

Reimplemented in cmlabs::Bitmap, cmlabs::CollectionBase, cmlabs::Color, cmlabs::DataSample, cmlabs::HTMLPage, cmlabs::HTTPRequest, cmlabs::ImagePointFeature, cmlabs::ImageLineFeature, cmlabs::ImagePolyLineFeature, cmlabs::FeaturePlane, cmlabs::FeatureSpace, cmlabs::FeatureCombiSpace, cmlabs::FeatureSpaceTime, cmlabs::InfoItem, cmlabs::ConnectionProfile, cmlabs::Boolex, cmlabs::SysInfo, cmlabs::PerfStat, cmlabs::JTime, cmlabs::Size, cmlabs::Point, cmlabs::PointFloat, cmlabs::Line, cmlabs::PolyLine, cmlabs::VectorOfInts, cmlabs::VectorOfDoubles, cmlabs::VectorOfPoints, cmlabs::Box, cmlabs::Vector2D, cmlabs::Vector3D, cmlabs::Reference, cmlabs::Message, cmlabs::ObjectTable, cmlabs::Parameter, cmlabs::TriggerSpec, cmlabs::RetrieveSpec, cmlabs::CrankSpec, cmlabs::PostSpec, cmlabs::PhaseSpec, cmlabs::ContextSpec, cmlabs::ModuleSpec, cmlabs::WhiteboardSpec, cmlabs::StreamSpec, cmlabs::StreamAccess, cmlabs::CatalogSpec, cmlabs::ExecutableSpec, cmlabs::SatelliteSpec, cmlabs::ActionSpec, cmlabs::ClientProfile, cmlabs::ServiceSpec, cmlabs::TCPLocation, cmlabs::CMMeasurement, cmlabs::CMPoint, cmlabs::CMPose, cmlabs::CMManipulator, cmlabs::CMObject, cmlabs::CMMap, cmlabs::CVMLHypothesis, cmlabs::CVMLObjectBase, cmlabs::CVMLFrame, cmlabs::CVMLDataSet, cmlabs::FeatureVector, cmlabs::FeatureVectorList, cmlabs::Group, cmlabs::GroupDatabase, cmlabs::GroupList, cmlabs::SubGroupPairList, cmlabs::ObjectObservation, cmlabs::ObjectTrackEntry, cmlabs::ObjectTrack, cmlabs::TemporalGroupList, and cmlabs::UninstantiatedXMLObject.

Definition at line 97 of file Object.cpp.

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

Implemented in cmlabs::BinaryBufferEntry, cmlabs::BinaryBuffer, cmlabs::Bitmap, cmlabs::CollectionBase, cmlabs::Color, cmlabs::CommunicationRecorder, cmlabs::DataSample, cmlabs::DotString, cmlabs::LibHandle, cmlabs::DynamicLoader, cmlabs::HTMLPage, cmlabs::HTTPRequest, cmlabs::ImagePointFeature, cmlabs::ImageLineFeature, cmlabs::ImagePolyLineFeature, cmlabs::FeaturePlane, cmlabs::FeatureSpace, cmlabs::FeatureCombiSpace, cmlabs::FeatureSpaceTime, cmlabs::InfoItem, cmlabs::JFile, cmlabs::JSemaphore, cmlabs::JSingleSemaphore, cmlabs::JMutex, cmlabs::WriteAccessMutex, cmlabs::JSocket, cmlabs::SocketTester, cmlabs::ConnectionProfile, cmlabs::JString, cmlabs::Boolex, cmlabs::SysInfo, cmlabs::ThreadStat, cmlabs::PerfStat, cmlabs::JTime, cmlabs::StopWatch, cmlabs::Size, cmlabs::Point, cmlabs::PointFloat, cmlabs::Line, cmlabs::PolyLine, cmlabs::VectorOfInts, cmlabs::VectorOfDoubles, cmlabs::VectorOfPoints, cmlabs::Box, cmlabs::StatSample, cmlabs::Vector2D, cmlabs::Vector3D, cmlabs::PreFetchRequest, cmlabs::MediaConnection, cmlabs::SubscriptionEntry, cmlabs::MediaServer, cmlabs::MediaStream, cmlabs::Reference, cmlabs::Message, cmlabs::Messenger, cmlabs::NetHTTPProtocol, cmlabs::NetMessageProtocol, cmlabs::NetOriginalMessageProtocol, cmlabs::NetProtocol, cmlabs::NetTelnetProtocol, cmlabs::Network, cmlabs::NetworkConnection, cmlabs::ObjectLink, cmlabs::ObjectLinkProvider, cmlabs::ObjectQueue, cmlabs::ObjectRequestQueue, cmlabs::CollectionEntry, cmlabs::SortedEntry, cmlabs::ObjectTable, cmlabs::OSCommand, cmlabs::OutputText, cmlabs::Parameter, cmlabs::PathWay, cmlabs::Queue, cmlabs::RequestQueue, cmlabs::TriggerSpec, cmlabs::RetrieveSpec, cmlabs::CrankSpec, cmlabs::PostSpec, cmlabs::PhaseSpec, cmlabs::ContextSpec, cmlabs::ModuleSpec, cmlabs::WhiteboardSpec, cmlabs::StreamSpec, cmlabs::StreamAccess, cmlabs::CatalogSpec, cmlabs::ExecutableSpec, cmlabs::SatelliteSpec, cmlabs::ActionSpec, cmlabs::ClientProfile, cmlabs::ServiceSpec, cmlabs::TCPLocation, cmlabs::CMMeasurement, cmlabs::CMPoint, cmlabs::CMPose, cmlabs::CMManipulator, cmlabs::CMObject, cmlabs::CMMap, cmlabs::CVMLHypothesis, cmlabs::CVMLObjectBase, cmlabs::CVMLFrame, cmlabs::CVMLDataSet, cmlabs::FeatureVector, cmlabs::FeatureVectorList, cmlabs::Group, cmlabs::GroupDatabase, cmlabs::GroupList, cmlabs::SubGroupPairList, cmlabs::ObjectObservation, cmlabs::ObjectTrackEntry, cmlabs::ObjectTrack, cmlabs::TemporalGroupList, cmlabs::Timer, cmlabs::TimerManager, cmlabs::TimeSeries, cmlabs::UninstantiatedXMLObject, cmlabs::XMLNode, and cmlabs::XMLParser.

Definition at line 564 of file Object.cpp.

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

void cmlabs::Object::addUnitTestLog ( const JString str  ) 

Definition at line 533 of file Object.cpp.

JString cmlabs::Object::getUnitTestLog (  ) 

Definition at line 553 of file Object.cpp.

JString cmlabs::Object::getClass (  )  const [virtual]

Get the class name.

Definition at line 588 of file Object.cpp.

bool cmlabs::Object::isSameClass ( const Object o2  )  const [virtual]

Definition at line 568 of file Object.cpp.

bool cmlabs::Object::isCollection (  )  const [virtual]

Reimplemented in cmlabs::CollectionBase.

Definition at line 730 of file Object.cpp.

unsigned long cmlabs::Object::getHash (  )  const [virtual]

long cmlabs::Object::getBinarySize ( int  chunk  )  [virtual]

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

long cmlabs::Object::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 in cmlabs::CollectionBase, cmlabs::DataSample, cmlabs::InfoItem, cmlabs::Message, cmlabs::ObjectQueue, cmlabs::ObjectRequestQueue, cmlabs::ObjectTable, cmlabs::PostSpec, cmlabs::PhaseSpec, cmlabs::ContextSpec, cmlabs::ModuleSpec, cmlabs::ActionSpec, cmlabs::ServiceSpec, cmlabs::CMObject, and cmlabs::TimeSeries.

Definition at line 721 of file Object.cpp.

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

int cmlabs::Object::getProcID (  ) 

Get the OS process ID.

Reimplemented in cmlabs::OSCommand.

Definition at line 695 of file Object.cpp.


Member Data Documentation

Definition at line 101 of file Object.h.


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

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