![]() |
VR-Exchange 2.2 API Documentation
|
DtBaseObjectTranslators are responsible for translating messages for things that have state. More...

Public Member Functions | |
| DtObjectTranslator (DtBroker *broker, const DtString &name, DtPortalMessageKind kind) | |
| The Default CTOR. | |
| virtual | ~DtObjectTranslator () |
| The Default DTOR. | |
| virtual void | initializePortalCallbacks () |
| virtual void | removePortalCallbacks () |
| virtual void | discoverPortalObject (const DtPortalReflectedObjectTemplate< T_DtPortalObject > &obj)=0 |
| virtual void | receivePortalUpdate (const DtPortalReflectedObjectTemplate< T_DtPortalObject > &obj)=0 |
| virtual void | removePortalObject (const DtPortalReflectedObjectTemplate< T_DtPortalObject > &obj)=0 |
| virtual void | callObjectDiscoverCallbacks (const T_DtBrokerObject *brokerObject) |
| called when a Portal or HLA Object is Created | |
| virtual void | callObjectUpdateCallbacks (const T_DtBrokerObject *brokerObject) |
| Called when a Portal or HLA Object is updated. | |
| virtual void | callObjectRemoveCallbacks (const T_DtBrokerObject *brokerObject) |
| Called when a Portal or HLA Object is Deleted. | |
| virtual bool | isPortalPublishable (const T_DtBrokerObject *brokerObject) const |
| Check if an object can be published on the other side. | |
| virtual bool | isPortalDiscoverable (const DtPortalReflectedObject *brokerObject) const |
| Checks if this portalObject is discoverable. | |
Static Public Member Functions | |
| static void | portalObjectAddedCb (const DtPortalReflectedObjectTemplate< T_DtPortalObject > &obj, void *ud) |
| Static callback for processing newly discovered portal objects. | |
| static void | portalObjectUpdatedCb (const DtPortalReflectedObjectTemplate< T_DtPortalObject > &obj, void *ud) |
| Static callback for processing portal object updates. | |
| static void | portalObjectDeletedCb (const DtPortalReflectedObjectTemplate< T_DtPortalObject > &obj, void *ud) |
| Static callback for processing portal object destruction. | |
| static bool | portalDiscoveryCriteria (const DtPortalReflectedObject *obj, void *usr) |
| Static callback for testing whether the portal object should be discovered. | |
Protected Attributes | |
| DtPortalReflectedObjectManager < DtPortalReflectedObjectTemplate < T_DtPortalObject > > * | myPortalReflectedManager |
DtBaseObjectTranslators are responsible for translating messages for things that have state.
To this end the DtBrokerObject class is used to represent these objects with state. Often you wnat T_ParentClass to be DtBaseObjectTranslator unless you want to add functions that are generic to all translators in your broker.
| MAKVrExchange::DtObjectTranslator::DtObjectTranslator | ( | DtBroker * | broker, |
| const DtString & | name, | ||
| DtPortalMessageKind | kind | ||
| ) |
The Default CTOR.
|
virtual |
The Default DTOR.
|
virtual |
|
virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
called when a Portal or HLA Object is Created
|
virtual |
Called when a Portal or HLA Object is updated.
|
virtual |
Called when a Portal or HLA Object is Deleted.
|
virtual |
Check if an object can be published on the other side.
By default always true.
|
virtual |
Checks if this portalObject is discoverable.
Which should be true only if an object would be publishable on the other side By default always true.
|
static |
Static callback for processing newly discovered portal objects.
Calls: discoverPortalObject
|
static |
Static callback for processing portal object updates.
Calls: receivePortalUpdate
|
static |
Static callback for processing portal object destruction.
Calls: removePortalObject
|
static |
Static callback for testing whether the portal object should be discovered.
Calls: isPortalDiscoverable
|
protected |