![]() |
VR-Forces 4.5 Class Documentation
|
This class will be used to manage UUID lookups. More...
Classes | |
| struct | MappingContext |
Public Types | |
| typedef boost::unordered_map < DtUUID, DtUUIDMarkingTextProvider * > | UUIDToMarkingTextMap |
| typedef boost::unordered_map < DtString, DtUUID > | EntityIdentifierToUUIDMap |
| typedef boost::unordered_map < DtUUID, DtString > | UUIDToEntityIdentifierMap |
| typedef boost::unordered_map < DtString, DtUUID > | MarkingTextToUUIDMap |
| typedef boost::unordered_map < DtUUID, DtUUID > | UUIDToUUIDMap |
| typedef boost::unordered_map < DtString, DtString > | MarkingTextToMarkingTextMap |
| typedef boost::unordered_set < DtUUID * > | UUIDsForUpgrade |
Public Member Functions | |
| DtObjectIdentificationResolver () | |
| virtual | ~DtObjectIdentificationResolver () |
| virtual void | clear () |
| Clears out all maps. | |
| virtual void | setResolveMarkingTextToUUIDMapping (bool) |
| Set to true if want to add UUIDs to this manager to resolve by calling "resolveUUIDMapping" if the uuid constructed is not a VRF UUID. | |
| virtual bool | resolveMarkingTextToUUIDMapping () const |
| virtual void | setResolveUUIDToUUIDMapping (bool) |
| virtual bool | resolveUUIDToUUIDMapping () const |
| virtual void | resolveUUIDMapping (bool clearWhenDone=false) |
| If clear when done is true, clears out uuids to be mapped. | |
| virtual void | addUUIDForUpgrade (DtUUID *) |
| Adds the UUID pointer for potential marking text resolution if the resolveMarkingTextToUUIDMapping flag is true and this UUID is not already a VRF UUID. | |
| virtual void | removeUUIDForUpgrade (DtUUID *) |
| virtual void | objectUUIDChanged (const DtUUID &oldUUID, const DtUUID &newUUID) |
| In order to be able to match UUID to marking texts this map must be filled in by the maintainer of that association (in this case the front-end or back-end) | |
| virtual DtUUIDMarkingTextProvider * | addMarkingTextToUUIDMapping (const DtUUIDMarkingTextProvider &, const DtUUID &) |
| Adds/removed UUID to marking text mappings, always from context 0 (as that is where they are used) | |
| virtual DtUUIDMarkingTextProvider * | uuidToMarkingTextProvider (const DtUUID &) const |
| virtual void | removeUUIDToMarkingTextMapping (const DtUUID &) |
| virtual void | addUUIDToUUIDMapping (const DtUUID &old, const DtUUID &newUUID) |
| Adds a UUID to UUID map in order to remap when resolved. | |
| virtual void | addEntityIdentifierToUUIDMapping (const DtString &eid, const DtUUID &) |
| Used for either non or VR-Forces published items. look up VRF UUID by entity identifier. | |
| virtual void | removeEntityIdentifierMapping (const DtString &eid) |
| virtual const DtUUID & | entityIdentifierToUUIDMapping (const DtString &eid) const |
| virtual const DtString & | uuidToEntityIdentifierMapping (const DtUUID &uuid) const |
| virtual bool | hasUUID (const DtUUID &) const |
| virtual void | addMarkingTextToMarkingTextMapping (const DtString &oldMarkingText, const DtString &newMarkingText) |
| Used for marking text to marking text mapping when updating an older scenario. | |
| virtual DtUUID | mapMarkingTextToUUID (const DtString &) const |
| Maps marking text to UUID. If marking text is not know an invalid UUID will be returned. | |
| virtual DtString | mapUUIDToMarkingText (const DtUUID &) const |
| Maps UUID to marking text. If UUID is not mapped empty marking text is returned. | |
| virtual void | pushMappingContext () |
| Creates a new UUID mapping context. This will suplant the existing context. | |
| virtual void | popMappingContext (bool merge=false) |
| This will pop the mapping context to the previous. | |
| virtual DtString | markingText (const DtUUID &, bool *found=0) const |
| Returns the marking text that is associated with this UUID. | |
| MarkingTextToUUIDMap & | markingTextToUUIDMapForImport (int context=-1) |
| const MarkingTextToUUIDMap & | markingTextToUUIDMapForImport (int context=-1) const |
| MarkingTextToUUIDMap & | liveMarkingTextToUUIDMap (int context=-1) |
| It is up to the user to maintain this map. | |
| const MarkingTextToUUIDMap & | liveMarkingTextToUUIDMap (int context=-1) const |
| virtual void | markingTextUpdated (const DtString &oldText, const DtString &newText) |
| UUIDsForUpgrade & | uuidsForMarkingTextUpgrade (int context=-1) |
| const UUIDsForUpgrade & | uuidsForMarkingTextUpgrade (int context=-1) const |
| UUIDsForUpgrade & | uuidsForUUIDUpgrade (int context=-1) |
| const UUIDsForUpgrade & | uuidsForUUIDUpgrade (int context=-1) const |
| UUIDToMarkingTextMap & | uuidToMarkingTextMap (int context=-1) |
| const UUIDToMarkingTextMap & | uuidToMarkingTextMap (int context=-1) const |
| UUIDToUUIDMap & | uuidToUUIDMap (int context=-1) |
| const UUIDToUUIDMap & | uuidToUUIDMap (int context=-1) const |
| MarkingTextToMarkingTextMap & | markingTextToMarkingTextMap (int context=-1) |
| const MarkingTextToMarkingTextMap & | markingTextToMarkingTextMap (int context=-1) const |
| EntityIdentifierToUUIDMap & | entityIdentifierToUUIDMap (int context=-1) |
| const EntityIdentifierToUUIDMap & | entityIdentifierToUUIDMap (int context=-1) const |
| UUIDToEntityIdentifierMap & | uuidToEntityIdentifierMap (int context=-1) |
| const UUIDToEntityIdentifierMap & | uuidToEntityIdentifierMap (int context=-1) const |
| MarkingTextToUUIDMap | markingTextToUUIDMap () const |
| Resolves and returns a marking text to uuid map. | |
| virtual void | resolveToMarkingTextMapping () |
| virtual void | resolveToUUIDMapping (bool clearWhenDone=false) |
| If clear when done is true, clears out uuids to be mapped. | |
| virtual DtUUID | upgradeUUID (const DtUUID &) const |
| If the UUID can be upgraded, return the upgraded UUID. | |
| virtual bool | hasMarkingTextToUUIDMapForImport (const DtString &) const |
| Valid only during import (context count > 1). | |
Protected Types | |
| typedef std::vector < MappingContext > | MappingContexts |
Protected Attributes | |
| tbb::recursive_mutex | myMutex |
| MappingContexts | myMappingContexts |
| bool | myDestructingFlag |
| bool | myResolveMarkingTextToUUIDMapping |
| bool | myResolveUUIDToUUIDMapping |
| bool | myPushingContext |
| bool | myPoppingContext |
This class will be used to manage UUID lookups.
It will contain a list of sub-lists that can be used to push/pop the workings of how to map UUIDs to marking texts (and vice/versa). This is a globally created item that is referenced via the DtUUID class. This class is only used for mapping old style (marking text) to new style UUIDs
| typedef boost::unordered_map<DtUUID, DtUUIDMarkingTextProvider*> DtObjectIdentificationResolver::UUIDToMarkingTextMap |
| typedef boost::unordered_map<DtString, DtUUID> DtObjectIdentificationResolver::EntityIdentifierToUUIDMap |
| typedef boost::unordered_map<DtUUID, DtString> DtObjectIdentificationResolver::UUIDToEntityIdentifierMap |
| typedef boost::unordered_map<DtString, DtUUID> DtObjectIdentificationResolver::MarkingTextToUUIDMap |
| typedef boost::unordered_map<DtUUID, DtUUID> DtObjectIdentificationResolver::UUIDToUUIDMap |
| typedef boost::unordered_map<DtString, DtString> DtObjectIdentificationResolver::MarkingTextToMarkingTextMap |
| typedef boost::unordered_set<DtUUID*> DtObjectIdentificationResolver::UUIDsForUpgrade |
|
protected |
| DtObjectIdentificationResolver::DtObjectIdentificationResolver | ( | ) |
|
virtual |
|
virtual |
Clears out all maps.
|
virtual |
Set to true if want to add UUIDs to this manager to resolve by calling "resolveUUIDMapping" if the uuid constructed is not a VRF UUID.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If clear when done is true, clears out uuids to be mapped.
|
virtual |
Adds the UUID pointer for potential marking text resolution if the resolveMarkingTextToUUIDMapping flag is true and this UUID is not already a VRF UUID.
|
virtual |
|
virtual |
In order to be able to match UUID to marking texts this map must be filled in by the maintainer of that association (in this case the front-end or back-end)
|
virtual |
Adds/removed UUID to marking text mappings, always from context 0 (as that is where they are used)
|
virtual |
|
virtual |
|
virtual |
Adds a UUID to UUID map in order to remap when resolved.
|
virtual |
Used for either non or VR-Forces published items. look up VRF UUID by entity identifier.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Used for marking text to marking text mapping when updating an older scenario.
|
virtual |
Maps marking text to UUID. If marking text is not know an invalid UUID will be returned.
|
virtual |
Maps UUID to marking text. If UUID is not mapped empty marking text is returned.
|
virtual |
Creates a new UUID mapping context. This will suplant the existing context.
|
virtual |
This will pop the mapping context to the previous.
Pass the "merge" flag to merge this popped content into the previous context
|
virtual |
Returns the marking text that is associated with this UUID.
If UUID is not mapped empty marking text is returned. If found is specified will be filled with true if there was a mapping found. If no mapping found will return the value of the uuids uuidString
| MarkingTextToUUIDMap& DtObjectIdentificationResolver::markingTextToUUIDMapForImport | ( | int | context = -1 | ) |
| const MarkingTextToUUIDMap& DtObjectIdentificationResolver::markingTextToUUIDMapForImport | ( | int | context = -1 | ) | const |
| MarkingTextToUUIDMap& DtObjectIdentificationResolver::liveMarkingTextToUUIDMap | ( | int | context = -1 | ) |
It is up to the user to maintain this map.
Entries will be added as marking text providers are added/removed, however if the text changes you need to call the markingTextToUUIDMapChange method
| const MarkingTextToUUIDMap& DtObjectIdentificationResolver::liveMarkingTextToUUIDMap | ( | int | context = -1 | ) | const |
|
virtual |
| UUIDsForUpgrade& DtObjectIdentificationResolver::uuidsForMarkingTextUpgrade | ( | int | context = -1 | ) |
| const UUIDsForUpgrade& DtObjectIdentificationResolver::uuidsForMarkingTextUpgrade | ( | int | context = -1 | ) | const |
| UUIDsForUpgrade& DtObjectIdentificationResolver::uuidsForUUIDUpgrade | ( | int | context = -1 | ) |
| const UUIDsForUpgrade& DtObjectIdentificationResolver::uuidsForUUIDUpgrade | ( | int | context = -1 | ) | const |
| UUIDToMarkingTextMap& DtObjectIdentificationResolver::uuidToMarkingTextMap | ( | int | context = -1 | ) |
| const UUIDToMarkingTextMap& DtObjectIdentificationResolver::uuidToMarkingTextMap | ( | int | context = -1 | ) | const |
| UUIDToUUIDMap& DtObjectIdentificationResolver::uuidToUUIDMap | ( | int | context = -1 | ) |
| const UUIDToUUIDMap& DtObjectIdentificationResolver::uuidToUUIDMap | ( | int | context = -1 | ) | const |
| MarkingTextToMarkingTextMap& DtObjectIdentificationResolver::markingTextToMarkingTextMap | ( | int | context = -1 | ) |
| const MarkingTextToMarkingTextMap& DtObjectIdentificationResolver::markingTextToMarkingTextMap | ( | int | context = -1 | ) | const |
| EntityIdentifierToUUIDMap& DtObjectIdentificationResolver::entityIdentifierToUUIDMap | ( | int | context = -1 | ) |
| const EntityIdentifierToUUIDMap& DtObjectIdentificationResolver::entityIdentifierToUUIDMap | ( | int | context = -1 | ) | const |
| UUIDToEntityIdentifierMap& DtObjectIdentificationResolver::uuidToEntityIdentifierMap | ( | int | context = -1 | ) |
| const UUIDToEntityIdentifierMap& DtObjectIdentificationResolver::uuidToEntityIdentifierMap | ( | int | context = -1 | ) | const |
| MarkingTextToUUIDMap DtObjectIdentificationResolver::markingTextToUUIDMap | ( | ) | const |
Resolves and returns a marking text to uuid map.
|
virtual |
|
virtual |
If clear when done is true, clears out uuids to be mapped.
If the UUID can be upgraded, return the upgraded UUID.
|
virtual |
Valid only during import (context count > 1).
Sees if there is a marking text to UUID map for this item.
|
mutableprotected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |