![]() |
VR-Forces 5.0.1 Developer's Guide
|
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 All functions in this class are thread safe.
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 |
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 |
| 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.
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.
Returns true if the marking text exists.
|
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 |