![]() |
VR-Forces 5.0.2 Developer's Guide
|
UUID is a unique ID wrapper class.

Public Member Functions | |
| DtUUID (DtUUIDOwner *=0) | |
| DtUUID (const DtUUID &, DtUUIDOwner *=0) | |
| DtUUID (const boost::uuids::uuid &, DtUUIDOwner *=0) | |
| DtUUID (const DtString &, DtUUIDOwner *=0, bool blockMarkingTextLookup=false) | |
| DtUUID (const std::string &, DtUUIDOwner *=0, bool blockMarkingTextLookup=false) | |
| DtUUID (const char *, DtUUIDOwner *=0, bool blockMarkingTextLookup=false) | |
| DtUUID (const unsigned char *data, size_t dataLength, DtUUIDOwner *=0) | |
| 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 |
| unsigned int | dataSize () const |
| void | setBuffer (const char *) |
| bool | isBoostUUID () const |
| bool | isVrfUUID () const |
| UUIDType | uuidType () const |
| virtual void | setUUID (const DtString &, bool blockMarkingTextLookup=false) |
| virtual const DtString & | uuidString () const |
| virtual void | setMarkingText (const DtString &) |
| virtual void | setStringUUID (const DtString &) |
| virtual void | generateUUID () |
| virtual void | clearUUID () |
| 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 |
| virtual bool | isStringUUID () const |
| size_t | hashValue () const |
| boost::uuids::uuid | uuid () const |
| boost::uuids::uuid | asBoostUUID () const |
| virtual DtString | markingText () const |
| std::string | string () const |
| virtual size_t | calcHashValue () const |
| bool | addedForUpgrade () const |
| void | setAddedForUpgrade (bool b) |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
| virtual void | init (void *userData) |
Static Public Member Functions | |
| static bool | isVrfUUID (const DtString &) |
| static DtString | uuidMarking () |
| static DtUUID | makeStringUUID (const DtString &) |
| static const DtUUID & | nullUUID () |
| static DtObjectIdentificationResolver & | objectIdentificationResolver () |
| static bool | isValidBoostUUIDString (const DtString &str) |
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) |
| 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 Attributes | |
| char | myData [36] |
| DtString | myUUIDString |
| DtString | myMarkingText |
| DtUUIDOwner * | myOwner |
| size_t | myHashValue |
| bool | myAddedForUpgrade |
Static Protected Attributes | |
| static DtObjectIdentificationResolver | theObjectIdentificationResolver |
Friends | |
| class | boost::serialization::access |
| DtString | objectType () const |
| DtString | serialize () |
| bool | deserialize (const DtString &data) |
| static DtAsciiSerializable * | creator () |
|
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 |
|
explicit |
Takes the given data and assumes a UUID valid format and copies to internal buffer.
|
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::isBoostUUID | ( | ) | const |
| bool DtUUID::isVrfUUID | ( | ) | const |
| UUIDType DtUUID::uuidType | ( | ) | const |
Sets/Gets the UUID.
|
virtual |
Referenced by DtScriptedTaskVariable::serialize().
|
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 |
|
virtual |
| size_t DtUUID::hashValue | ( | ) | const |
If the hashValue is 0 and this is a valid UUID, this will throw a std::runtime_exception.
Referenced by std::hash< DtUUID >::operator()().
|
inline |
| boost::uuids::uuid DtUUID::asBoostUUID | ( | ) | const |
|
static |
Referenced by makVrf::DtSubordinateManagerStateComponentData::addSubordinate(), makVrf::DtSubordinateManagerStateComponentData::firstSubordinate(), DtResupplyReceiverStateData::init(), makVrf::DtSubordinateManagerStateComponentData::lastSubordinate(), DtScriptVrfObject::nullObject(), and makVrf::DtSelectionGroupManager::serialize().
|
virtual |
Returns the markingText that is associated with this UUID.
| std::string DtUUID::string | ( | ) | const |
Will return the uuidString() without the special VRF marking.
|
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.
|
virtual |
|
inline |
|
inline |
|
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 |
|
protected |
|
protected |