![]() |
VR-Forces 4.1 Class Documentation
|
Class: DtEchelonIdTable. More...
Public Member Functions | |
| DtEchelonIdTable (DtVrfObjectManager *objectManager) | |
| virtual | ~DtEchelonIdTable () |
| void | emptyHashList () |
| Removes all data from the hash lists. | |
| virtual bool | init () |
| Registers callback for vrf object data messages. | |
| virtual const DtEntityIdentifier & | lookupEchelonId (const DtString &echelonString) const |
| Returns the entity Id associated with this echelon id string. | |
| virtual const DtString & | lookupEntityId (const DtEntityIdentifier &entityId) const |
| Returns the echelon string associated with this entity id. | |
| virtual void | addEntry (const DtEntityIdentifier &entityId, const DtString &echelonId) |
| Creates the association between this entity Id and echelon Id in the table. | |
| virtual bool | removeEntry (const DtEntityIdentifier &entityId) |
| Removes this entity Id and any echelon id associated with it from the table. | |
| virtual void | processVrfObjectAdded (DtVrfObject *vrfObject) |
| Called when a new object is created, this method will add a predicate that that object to this this object know when its echelon id has changed. | |
| virtual bool | removeEntry (const DtString &echelonId) |
| Removes this echelon id and any entity id associated with it from the table. | |
Static Public Member Functions | |
| static void | vrfObjectEchelonIdChanged (DtVrfObject *obj, DtVrfObjectPredicateEvaluator *predicateEval, void *usr) |
| static void | vrfObjectAboutToBeRemovedCallback (DtVrfObject *vrfObject, void *usr) |
| static void | vrfObjectAdded (DtVrfObject *vrfObject, void *usr) |
Protected Member Functions | |
| virtual void | processVrfObjectEchelonIdChanged (DtVrfObject *obj) |
| virtual void | processObjectAboutToBeRemoved (DtVrfObject *vrfObject) |
| virtual void | localAddEntry (const DtEntityIdentifier &entityId, const DtString &echelonId) |
| Actually does the addition of the association to the hash tables. | |
Protected Attributes | |
| DtVrfObjectManager * | myObjectManager |
| DtHashlist | myEchelonIdHashlist |
| List of entity identifiers indexed by echelon id strings. | |
| DtHashlist | myEntityIdHashlist |
| List of echelon id strings indexed by entity identifiers. | |
Private Member Functions | |
| DtEchelonIdTable () | |
| Not Implemented. | |
| DtEchelonIdTable (const DtEchelonIdTable &orig) | |
| Not Implemented. | |
| DtEchelonIdTable & | operator= (const DtEchelonIdTable &orig) |
| Not Implemented. | |
Class: DtEchelonIdTable.
Instances of this class maintain a table of echelon Id and the entity identifiers that are currently associated with them. It registers for VrfObjectData messages from an object manager, and uses these updates to keep itself up to date.
|
private |
Not Implemented.
|
private |
Not Implemented.
| DtEchelonIdTable::DtEchelonIdTable | ( | DtVrfObjectManager * | objectManager | ) |
|
virtual |
|
private |
Not Implemented.
| void DtEchelonIdTable::emptyHashList | ( | ) |
Removes all data from the hash lists.
Non virtual because it is called from the destructor.
|
virtual |
Registers callback for vrf object data messages.
|
virtual |
Returns the entity Id associated with this echelon id string.
|
virtual |
Returns the echelon string associated with this entity id.
|
virtual |
Creates the association between this entity Id and echelon Id in the table.
If one, or both of the two are already part of an existing association, the existing associations are first removed.
|
virtual |
Removes this entity Id and any echelon id associated with it from the table.
|
virtual |
Called when a new object is created, this method will add a predicate that that object to this this object know when its echelon id has changed.
IF this method is not called for each new object, the object's echelonId WILL NOT be added to this table, so it is imperitive that this method be called for each object that wants to have its echelonId added to this table. Called internally by callback vrfObjectAdded
Removes this echelon id and any entity id associated with it from the table.
|
static |
|
static |
|
static |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Actually does the addition of the association to the hash tables.
No checks for duplicates are performed.
|
protected |
|
protected |
List of entity identifiers indexed by echelon id strings.
|
protected |
List of echelon id strings indexed by entity identifiers.