![]() |
VR-Forces 4.8 Class Documentation
|
UUID is a unique ID wrapper class. More...

Public Member Functions | |
| DtUUID (DtUUIDOwner *=0) | |
| CTOR. In order to create a UUID call generateUUID. More... | |
| DtUUID (const DtUUID &, DtUUIDOwner *=0) | |
| DtUUID (const boost::uuids::uuid &, DtUUIDOwner *=0) | |
| DtUUID (const DtString &, DtUUIDOwner *=0, bool blockMarkingTextLookup=false) | |
| If string is a UUID (VRF_UUID:) then sets a valid UUID from the string, else will have an invalid UUID. More... | |
| DtUUID (const std::string &, DtUUIDOwner *=0, bool blockMarkingTextLookup=false) | |
| DtUUID (const char *, DtUUIDOwner *=0, bool blockMarkingTextLookup=false) | |
| DtUUID & | operator= (const DtUUID &orig) |
| DtUUID & | operator= (const boost::uuids::uuid &orig) |
| bool | operator< (const DtUUID &rhs) const |
| bool | operator> (const DtUUID &rhs) const |
| virtual | ~DtUUID () |
| const char * | data () const |
| Not this also contains the special marker – the actual UUID starts at byte 1. More... | |
| unsigned int | dataSize () const |
| void | setBuffer (const char *) |
| bool | isVrfUUID () const |
| Return true if this is a boost or uuid string. More... | |
| UUIDType | uuidType () const |
| bool | isBoostUUID () const |
| virtual void | setUUID (const DtString &, bool blockMarkingTextLookup=false) |
| Sets/Gets the UUID. More... | |
| virtual const DtString & | uuidString () const |
| virtual const char * | string () const |
| Returns the markingText() of this item. More... | |
| virtual void | setMarkingText (const DtString &) |
| Set this marking text to be the object marking text. This will be used if there is no information in the global map. More... | |
| virtual void | setStringUUID (const DtString &) |
| Replaces whatever boost UUID has been created (or not) with a string UUID. More... | |
| virtual void | generateUUID () |
| Generates a new UUID. More... | |
| virtual void | clearUUID () |
| Clears out the UUID and restores to starting state. More... | |
| bool | operator== (const DtString &) const |
| bool | operator== (const std::string &) const |
| bool | operator== (const char *) const |
| bool | operator== (const DtUUID &) const |
| bool | operator== (const DtRwUUID &) const |
| bool | operator!= (const DtUUID &rhs) const |
| bool | operator!= (const DtString &rhs) const |
| bool | operator!= (const DtRwUUID &rhs) const |
| virtual bool | isValid () const |
| size_t | hashValue () const |
| boost::uuids::uuid | uuid () const |
| boost::uuids::uuid | asBoostUUID () const |
| virtual DtString | markingText () const |
| Returns the markingText that is associated with this UUID. More... | |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| The implementer of this interface should be sure to create a creator function to create an empty object that returns a pointer to this interface. More... | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
| Returns a std::string version of the objectType. More... | |
| virtual void | init (void *userData) |
| This function is called right after the object is constructed during the deserialization process, but before deserialize() is called. More... | |
Static Public Member Functions | |
| static bool | isVrfUUID (const DtString &) |
| Returns true if the UUID contains the special VRF uuid marking. More... | |
| static DtString | uuidMarking () |
| The special marking text used to identify this as a VRF UUID. More... | |
| static DtUUID | makeStringUUID (const DtString &) |
| Make the string a UUID marking text. Basically adds uuidMarking() to the given string. More... | |
| static const DtUUID & | nullUUID () |
| static DtObjectIdentificationResolver & | objectIdentificationResolver () |
| Returns the class that can be used to resovle UUID to marking text and entity identifier mappings. More... | |
| static bool | isValidBoostUUIDString (const DtString &str) |
Static Public Member Functions inherited from DtObjectDebugger< DtAsciiSerializable > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Protected Types | |
| enum | UUIDType { NOTSET = 0, BOOST = 1, STRING = 2, UUIDSTRING = 3 } |
Protected Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| When the class Archive corresponds to an output archive, the & operator is defined similar to <<. More... | |
| virtual void | convertStringToData (const std::string &) |
| virtual boost::uuids::uuid | convertToBoostUUID (const DtString &) |
| virtual boost::uuids::uuid | convertStringToBoostUUID (const DtString &, bool blockMarkingTextLookup=false) |
| virtual const char * | convertStringToStringUUID (const char *t) const |
Protected Member Functions inherited from DtObjectDebugger< DtAsciiSerializable > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
Protected Attributes | |
| char | myData [36] |
| The UUID has been changed to be a memory blob of fixed size. More... | |
| DtString | myUUIDString |
| If the assignment is not a valid boost UUID then the string UUID is what is used. More... | |
| DtString | myMarkingText |
| DtUUIDOwner * | myOwner |
| DtString | myLastMarkingText |
| Used for string call to prevent memory from being lost when the temporary markingText() is returned. More... | |
Static Protected Attributes | |
| static DtObjectIdentificationResolver | theObjectIdentificationResolver |
Friends | |
| class | boost::serialization::access |
| DtString | objectType () const |
| Inherited from DtAsciiSerializable. More... | |
| DtString | serialize () |
| Returns a string serialized version of this class. More... | |
| bool | deserialize (const DtString &data) |
| Returns true if it could fill its members with the data contained in the string. More... | |
| static DtAsciiSerializable * | creator () |
| Returns a new object of this type with default values. More... | |
UUID is a unique ID wrapper class.
|
protected |
| DtUUID::DtUUID | ( | DtUUIDOwner * | = 0 | ) |
CTOR. In order to create a UUID call generateUUID.
| DtUUID::DtUUID | ( | const DtUUID & | , |
| DtUUIDOwner * | = 0 |
||
| ) |
| DtUUID::DtUUID | ( | const boost::uuids::uuid & | , |
| DtUUIDOwner * | = 0 |
||
| ) |
|
explicit |
If string is a UUID (VRF_UUID:) then sets a valid UUID from the string, else will have an invalid UUID.
Check isValid after the constructor is called to see if it is a valid UUID. If blockMarkingTextLookup is true, if the string given is an object marking text (not UUID) blocks the lookup to map the marking text to the UUID and keeps the uuid as the object marking text
|
explicit |
|
explicit |
|
virtual |
| DtUUID& DtUUID::operator= | ( | const boost::uuids::uuid & | orig | ) |
|
inline |
Not this also contains the special marker – the actual UUID starts at byte 1.
| void DtUUID::setBuffer | ( | const char * | ) |
Returns true if the UUID contains the special VRF uuid marking.
| bool DtUUID::isVrfUUID | ( | ) | const |
Return true if this is a boost or uuid string.
| UUIDType DtUUID::uuidType | ( | ) | const |
| bool DtUUID::isBoostUUID | ( | ) | const |
Sets/Gets the UUID.
|
virtual |
Referenced by DtScriptedTaskVariable::serialize().
|
virtual |
Returns the markingText() of this item.
|
static |
The special marking text used to identify this as a VRF UUID.
Attach this to any string to make this a string UUID. For example,
setUUID(DtUUID::uuidMarking() + "MyUUID");
Make the string a UUID marking text. Basically adds uuidMarking() to the given string.
|
virtual |
Set this marking text to be the object marking text. This will be used if there is no information in the global map.
|
virtual |
Replaces whatever boost UUID has been created (or not) with a string UUID.
If the VRF_UUID: is not present will be considered marking text. Use only if you need to specifically set a UUID that is not a boost UUID
Referenced by makVrf::DtSelectionGroupManager::serialize().
|
virtual |
Generates a new UUID.
|
virtual |
Clears out the UUID and restores to starting state.
| bool DtUUID::operator== | ( | const std::string & | ) | const |
|
virtual |
| size_t DtUUID::hashValue | ( | ) | const |
|
inline |
| boost::uuids::uuid DtUUID::asBoostUUID | ( | ) | const |
|
static |
Referenced by DtScriptVrfObject::nullObject(), and makVrf::DtSelectionGroupManager::serialize().
|
virtual |
Returns the markingText that is associated with this UUID.
|
static |
Returns the class that can be used to resovle UUID to marking text and entity identifier mappings.
|
virtual |
|
virtual |
Returns a string serialized version of this class.
Implements DtAsciiSerializable.
Returns true if it could fill its members with the data contained in the string.
False otherwise.
Implements DtAsciiSerializable.
|
static |
Returns a new object of this type with default values.
|
inlineprotected |
When the class Archive corresponds to an output archive, the & operator is defined similar to <<.
Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
friend |
|
protected |
The UUID has been changed to be a memory blob of fixed size.
The blob's format is the first char is the type, and the rest is the data
|
mutableprotected |
If the assignment is not a valid boost UUID then the string UUID is what is used.
|
protected |
|
protected |
|
staticprotected |
|
mutableprotected |
Used for string call to prevent memory from being lost when the temporary markingText() is returned.