#include <CogMapObjects.h>
Definition at line 1564 of file CogMapObjects.h.
cmlabs::CMObject::CMObject | ( | ) |
public overloaded constructor CMObject The CMObject method creates a new CMObject
new CMObject();
This function doesn't return a value
Definition at line 598 of file CogMapObjects.cpp.
cmlabs::CMObject::CMObject | ( | const JString & | xml | ) |
cmlabs::CMObject::CMObject | ( | XMLNode * | node | ) |
public overloaded constructor CMObject The CMObject method creates a new CMObject from an XML Node
new CMObject(node);
[in,out] | node | type XMLNode * XML Node containing XML |
Definition at line 609 of file CogMapObjects.cpp.
cmlabs::CMObject::~CMObject | ( | ) |
public virtual destructor ~CMObject The ~CMObject method destroys a CMObject
delete(obj);
This function doesn't return a value
Definition at line 615 of file CogMapObjects.cpp.
Object * cmlabs::CMObject::clone | ( | ) | const [virtual] |
public virtual constant clone The clone method creates an identical object by cloning
val = (CMObject*) obj->clone();
Implements cmlabs::Object.
Definition at line 618 of file CogMapObjects.cpp.
bool cmlabs::CMObject::equals | ( | const Object * | o | ) | const [virtual] |
public virtual overloaded constant equals The equals method tests if two objects are equal
val = obj->equals(obj);
[in] | o | type const Object * object to test |
Reimplemented from cmlabs::Object.
Definition at line 644 of file CogMapObjects.cpp.
bool cmlabs::CMObject::equals | ( | const CMObject & | p | ) | const |
public virtual overloaded constant equals The equals method tests if two objects are equal
val = obj->equals(obj);
[in] | o | type const CMObject & object to test |
Definition at line 651 of file CogMapObjects.cpp.
bool cmlabs::CMObject::equals | ( | const CMObject * | p | ) | const |
public virtual overloaded constant equals The equals method tests if two objects are equal
val = obj->equals(obj);
[in] | o | type const CMObject * object to test |
Definition at line 655 of file CogMapObjects.cpp.
bool cmlabs::CMObject::fromXML | ( | const JString & | xml | ) | [virtual] |
public virtual overloaded fromXML The fromXML method fills in the object with the content of the XML
val = obj->fromXML(xml);
[in] | xml | type const JString & raw XML |
Reimplemented from cmlabs::Object.
Definition at line 701 of file CogMapObjects.cpp.
bool cmlabs::CMObject::fromXML | ( | XMLNode * | node | ) | [virtual] |
public virtual fromXML The fromXML method instantiates the object from XML
val = obj->fromXML(xmlnode);
Reimplemented from cmlabs::Object.
Definition at line 713 of file CogMapObjects.cpp.
JString cmlabs::CMObject::toXML | ( | ) | [virtual] |
public virtual toXML The toXML method generates the XML representing the object
val = obj->toXML();
Reimplemented from cmlabs::Object.
Definition at line 752 of file CogMapObjects.cpp.
JString cmlabs::CMObject::print | ( | ) | [virtual] |
public constant print The print method creates a string representation of the object
val = obj->print();
Reimplemented from cmlabs::Object.
Definition at line 780 of file CogMapObjects.cpp.
JString cmlabs::CMObject::toHTML | ( | ) | [virtual] |
public virtual toHTML The toHTML method creates HTML which represents the object
val = obj->toHTML();
Reimplemented from cmlabs::Object.
Definition at line 776 of file CogMapObjects.cpp.
bool cmlabs::CMObject::unitTest | ( | ) | [virtual] |
public virtual unitTest The unitTest method runs the object's unit tests
val = obj->unitTest();
Reimplemented from cmlabs::Object.
Definition at line 1068 of file CogMapObjects.cpp.
public operator - The operator - method returns the difference between two CMObjects
val = obj - obj2;
Definition at line 845 of file CogMapObjects.cpp.
public operator += The operator += method adds the information from another CMObject
val += obj;
Definition at line 849 of file CogMapObjects.cpp.
public getDifferenceSince The getDifferenceSince method returns the difference between the two objects
val = obj->getDifferenceSince(obj);
Definition at line 854 of file CogMapObjects.cpp.
public getDifferenceSinceIfAny The getDifferenceSinceIfAny method returns the difference between the two objects or NULL if there are no difference
val = obj->getDifferenceSinceIfAny(obj);
Definition at line 864 of file CogMapObjects.cpp.
bool cmlabs::CMObject::addDifference | ( | CMObject * | otherObject | ) |
public addDifference The addDifference method add the values from a CMObject update
val = obj->addDifference(obj);
Definition at line 964 of file CogMapObjects.cpp.
bool cmlabs::CMObject::hasProperty | ( | const JString & | name | ) |
public hasProperty The hasProperty method checks if a property exists
val = obj->hasProperty(name);
[in] | name | type const JString & name of property to check |
Definition at line 784 of file CogMapObjects.cpp.
public getPropertyType The getPropertyType method returns the type name of a property
val = obj->getPropertyType(name);
[in] | name | type const JString & name of property to check |
Definition at line 788 of file CogMapObjects.cpp.
bool cmlabs::CMObject::removeProperty | ( | const JString & | name | ) |
public removeProperty The removeProperty method removes a stored named property
val = obj->removeProperty(name);
[in] | name | type const JString & property name |
Definition at line 792 of file CogMapObjects.cpp.
public getPropertyString The getPropertyString method returns the property content as a string
val = obj->getPropertyString(name);
[in] | name | type const JString & name of property |
Definition at line 798 of file CogMapObjects.cpp.
int cmlabs::CMObject::getPropertyInteger | ( | const JString & | name | ) |
public getPropertyInteger The getPropertyInteger method returns the property content as an integer
val = obj->getPropertyInteger(name);
[in] | name | type const JString & name of property |
Definition at line 805 of file CogMapObjects.cpp.
double cmlabs::CMObject::getPropertyDouble | ( | const JString & | name | ) |
public getPropertyDouble The getPropertyDouble method returns the property content as a double value
val = obj->getPropertyDouble(name);
[in] | name | type const JString & property name |
Definition at line 812 of file CogMapObjects.cpp.
public getPropertyObject The getPropertyObject method returns the property content as an object
val = obj->getPropertyObject(name);
[in] | name | type const JString & property name |
Definition at line 819 of file CogMapObjects.cpp.
public get The get method get a property by name
val = obj->get(name);
[in] | prop | type const JString & property name |
Definition at line 1007 of file CogMapObjects.cpp.
public setPropertyString The setPropertyString method set the named property
val = obj->setPropertyString(name, value);
[in] | name | type const JString & property name |
[in] | value | type const JString & new property value |
Definition at line 824 of file CogMapObjects.cpp.
bool cmlabs::CMObject::setPropertyInteger | ( | const JString & | name, | |
int | value | |||
) |
public setPropertyInteger The setPropertyInteger method sets the named property
val = obj->setPropertyInteger(name, value);
[in] | name | type const JString & property name |
[in] | value | type int new property value |
Definition at line 829 of file CogMapObjects.cpp.
bool cmlabs::CMObject::setPropertyDouble | ( | const JString & | name, | |
double | value | |||
) |
public setPropertyDouble The setPropertyDouble method sets a named property
val = obj->setPropertyDouble(name, value);
[in] | name | type const JString & property name |
[in] | value | type double new property value |
Definition at line 834 of file CogMapObjects.cpp.
bool cmlabs::CMObject::setPropertyObject | ( | const JString & | name, | |
Object * | value, | |||
const JString & | type | |||
) |
public setPropertyObject The setPropertyObject method sets a named property
val = obj->setPropertyObject(name, object, type);
[in] | name | type const JString & property name |
[in,out] | value | type Object * property value as object |
[in] | type | type const JString & object type string |
Definition at line 839 of file CogMapObjects.cpp.
long cmlabs::CMObject::getBinarySize | ( | int | chunk | ) | [virtual] |
Get the size of any binary data.
public virtual getBinarySize The getBinarySize method returns the size of binary chunk number 'chunk', use -1 for all chunks
val = obj->getBinarySize(2);
Reimplemented from cmlabs::Object.
Definition at line 1121 of file CogMapObjects.cpp.
int cmlabs::CMObject::getBinaryChunkCount | ( | ) | [virtual] |
Get the number of data chunks.
public virtual getBinaryChunkCount The getBinaryChunkCount method returns the number of binary chunks present
val = obj->getBinaryChunkCount();
Reimplemented from cmlabs::Object.
Definition at line 1126 of file CogMapObjects.cpp.
long cmlabs::CMObject::toBinaryBuffer | ( | int | chunk, | |
char * | buffer, | |||
int | maxlen | |||
) | [virtual] |
Get a pointer to the binary data at chunk number 'chunk'.
public virtual toBinaryBuffer The toBinaryBuffer method writes a binary chunk to a buffer
val = obj->toBinaryBuffer(2, data, 1024);
Reimplemented from cmlabs::Object.
Definition at line 1131 of file CogMapObjects.cpp.
bool cmlabs::CMObject::fromBinaryBuffer | ( | int | chunk, | |
char * | buffer, | |||
long | len | |||
) | [virtual] |
Set the data after separate reception.
public virtual fromBinaryBuffer The fromBinaryBuffer method sets the data after separate reception
val = obj->fromBinaryBuffer();
Reimplemented from cmlabs::Object.
Definition at line 1136 of file CogMapObjects.cpp.
JString id The id variable contains the id of the object
Definition at line 2288 of file CogMapObjects.h.
JString type The type variable contains the type of the object
Definition at line 2298 of file CogMapObjects.h.
Definition at line 2299 of file CogMapObjects.h.
CMObject * parent The parent variable contains the pointer to the parent object
Definition at line 2309 of file CogMapObjects.h.
ObjectDictionary children The children variable contains the list of child CMObjects
Definition at line 2319 of file CogMapObjects.h.
ObjectDictionary properties The properties variable contains a list of properties
Definition at line 2329 of file CogMapObjects.h.
Dictionary propertyTypes The propertyTypes variable contains a dictionary of property names and types
Definition at line 2339 of file CogMapObjects.h.
CMPoint pos The pos variable contains the position of the object
Definition at line 2350 of file CogMapObjects.h.
Definition at line 2351 of file CogMapObjects.h.
Definition at line 2351 of file CogMapObjects.h.
Definition at line 2351 of file CogMapObjects.h.
Definition at line 2351 of file CogMapObjects.h.
Definition at line 2352 of file CogMapObjects.h.
Definition at line 2352 of file CogMapObjects.h.
Definition at line 2352 of file CogMapObjects.h.
Definition at line 2353 of file CogMapObjects.h.
Definition at line 2353 of file CogMapObjects.h.
Definition at line 2353 of file CogMapObjects.h.
JTime createdTime The createdTime variable contains the time of creation
Definition at line 2363 of file CogMapObjects.h.