![]() |
VR-Link API Documentation for HLA 1.3
|
Instances of DtInterClassDesc are used to represent HLA Object and Interaction classes. More...
Collaboration diagram for DtInterClassDesc:Public Types | |
| typedef void(* | DtParameterEncoder )(const DtInteractionWithEncDec &inter, RTI::ParameterHandleValuePairSet *avlist, RTI::ParameterHandle handle) |
| Attribute encoding function declaration. | |
| typedef void(* | DtParameterDecoder )(DtInteractionWithEncDec *inter, const RTI::ParameterHandleValuePairSet &pvlist, int i) |
Public Member Functions | |
| DtInterClassDesc (const char *className, DtInterClassDesc *base, RTI::InteractionClassHandle handle, DtExerciseConn *exConn) | |
| constructor | |
| virtual | ~DtInterClassDesc () |
| destructor | |
| virtual void | addParam (const char *paramName) |
| Add a parameter (Used when reading FED file). | |
| virtual RTI::InteractionClassHandle | handle () const |
| Get the object's class handle. | |
| virtual const char * | name () const |
| Get the object's class name. | |
| virtual const DtInterClassDesc * | baseClass () const |
| Return a pointer to the base class's descriptor, NULL if none. | |
| virtual DtInterClassDesc * | baseClass () |
| Return a pointer to the base class's descriptor, NULL if none. | |
| virtual int | isOfClass (RTI::InteractionClassHandle hand) const |
| Returns 1 if the class is of class hand or a subclass of hand, 0 otherwise. | |
| virtual int | numParameters () const |
| Get the number of parameters associated with this object. | |
| virtual RTI::ParameterHandle | parameterHandleByName (const char *paramName) |
| Returns the Parameter handle for this Parameter name. | |
| virtual DtString | parameterNameByHandle (const RTI::ParameterHandle &hand) |
| Returns a string holding the name of the Parameter handle. | |
| virtual int | minParamHandle () const |
| Returns minimum/maximum parameter handle for the class. | |
| virtual int | maxParamHandle () const |
| virtual const RTI::AttributeHandleSet & | paramHandleSet () const |
| Get the set of valid parameter handles for this class. | |
| virtual const RTI::AttributeHandleSet & | ownParamHandles () const |
| Get the set of non-inherited parameter handles for this class. | |
| virtual void | publish () |
| Publish the class, and register start and stopUpdates callbacks. | |
| virtual void | unpublish () |
| Unpublish the class, and deregister start and stopUpdates callbacks. | |
| virtual void | subscribe () |
| Subscribe to the class. | |
| virtual void | subscribe (DtDDMRegionSP region) |
| Subscribe with region. | |
| virtual void | passiveSubscribe () |
| Subscribe passively to the class. | |
| virtual void | unsubscribe () |
| Unsubscribe to the class. | |
| virtual void | unsubscribe (DtDDMRegionSP region) |
| Unsubscribe to the class with region. | |
| virtual bool | published () const |
| Returns true if the class is published, false otherwise. | |
| virtual bool | subscribed () const |
| Returns true if the class is subscribed, false otherwise. | |
| virtual DtInterClassDesc * | firstSubscribed () |
| Return the class descriptor for the first subscribed ancestor including this class. | |
| virtual DtVrlRtiAmbassador * | rtiAmb () |
| Get my RTI ambassador. | |
| virtual bool | neededByFederation () const |
| Returns true if the interaction class is needed by the federation false otherwise. | |
| virtual bool | everPublished () const |
| Return true if we have ever published the class using DtInterClassDesc::publish, false otherwise. | |
| virtual bool | everSubscribed () const |
| Return true if we have ever subscribed to the class using DtInterClassDesc::subscribe, false otherwise. | |
| virtual void | setUserTagModifier (DtInteractionTagModifierSP modifier) |
| virtual DtInteractionTagModifierSP | userTagModifier () |
| virtual void | enableUnknownParameters () |
| allows all unknown Parameters to be encoded or decoded in this class. | |
| virtual void | setUnknownParameterDecoder (DtParameterDecoder decoder) |
| Set a decoder to be called for this object class for any Parameter received in an update that doesn't have a decoder. | |
| virtual void | setUnknownParameterEncoder (DtParameterEncoder encoder) |
| Set an encoder to be called for this object class for any Parameter that doesn't have an encoder set for it. | |
| virtual DtParameterEncoder | unknownParameterEncoder () |
| Returns the unknown Parameter encoder. Returns null if not set. | |
| virtual DtParameterDecoder | unknownParameterDecoder () |
| Returns the unknown Parameter decoder. Returns null if not set. | |
Static Public Member Functions | |
| static void | setMaxParameters (int num) |
| Set/Get maximum number of allowable parameters for an interaction. | |
| static int | maxParameters () |
| static void | setSubscriptionTimeDelay (double delay) |
| Set a time delay to occur after calling RTI::RTIambassador::subscribe() The purpose of this function is to get around a bug in DMSO RTI NG v3.2 for Win98. | |
Protected Member Functions | |
| virtual void | processStartInters (RTI::InteractionClassHandle hand) |
| Callback for handling startInters RTI callback. | |
| virtual void | processStopInters (RTI::InteractionClassHandle hand) |
| Callback for handling stopInters RTI callback. | |
| DtInterClassDesc (const DtInterClassDesc &orig) | |
| copy constructor – Not Implemented | |
| DtInterClassDesc & | operator= (const DtInterClassDesc &orig) |
| assignment operator – Not Implemented | |
Static Protected Member Functions | |
| static void | startIntersCb (RTI::InteractionClassHandle hand, void *usr) |
| Callback for handling startInters RTI callback. | |
| static void | stopIntersCb (RTI::InteractionClassHandle hand, void *usr) |
| Callback for handling stopInters RTI callback. | |
Protected Attributes | |
| DtString | myName |
| RTI::InteractionClassHandle | myHandle |
| RTI::AttributeHandleSet * | myParams |
| RTI::AttributeHandleSet * | myOwnParams |
| DtInterClassDesc * | myBase |
| DtExerciseConn * | myExConn |
| bool | myNeededFlag |
| bool | myPublished |
| bool | mySubscribed |
| bool | myEverPublished |
| bool | myEverSubscribed |
| RTI::ParameterHandle | myMinParamHand |
| RTI::ParameterHandle | myMaxParamHand |
| int | myNumSubscribeRequests |
| DtInteractionTagModifierSP | myTagModifier |
| std::set< DtDDMRegionSP > | mySubscribedRegions |
| DtParameterEncoder | myUnknownParameterEncoder |
| DtParameterDecoder | myUnknownParameterDecoder |
Static Protected Attributes | |
| static int | theMaxParams |
| static double | theSubscriptionTimeDelay |
Instances of DtInterClassDesc are used to represent HLA Object and Interaction classes.
| typedef void(* DtInterClassDesc::DtParameterDecoder)(DtInteractionWithEncDec *inter, const RTI::ParameterHandleValuePairSet &pvlist, int i) |
| typedef void(* DtInterClassDesc::DtParameterEncoder)(const DtInteractionWithEncDec &inter, RTI::ParameterHandleValuePairSet *avlist, RTI::ParameterHandle handle) |
Attribute encoding function declaration.
| DtInterClassDesc::DtInterClassDesc | ( | const char * | className, |
| DtInterClassDesc * | base, | ||
| RTI::InteractionClassHandle | handle, | ||
| DtExerciseConn * | exConn | ||
| ) |
constructor
|
virtual |
destructor
|
protected |
copy constructor – Not Implemented
|
virtual |
Add a parameter (Used when reading FED file).
|
inlinevirtual |
Return a pointer to the base class's descriptor, NULL if none.
References myBase.
|
inlinevirtual |
Return a pointer to the base class's descriptor, NULL if none.
References myBase.
|
virtual |
allows all unknown Parameters to be encoded or decoded in this class.
This is done by setting the unknown Parameter encoder/checker/decoder to the default value if and only if they have not been set yet. The values are: "DtGenericParameterEncoder::encodeGenericParameter" "DtGenericParameterDecoder::decodeGenericParameter"
|
virtual |
Return true if we have ever published the class using DtInterClassDesc::publish, false otherwise.
|
virtual |
Return true if we have ever subscribed to the class using DtInterClassDesc::subscribe, false otherwise.
|
virtual |
Return the class descriptor for the first subscribed ancestor including this class.
Null is returned if no ancestor is subscribed.
|
inlinevirtual |
Get the object's class handle.
References myHandle.
Referenced by DtInteraction::interactionClassHandle().
|
virtual |
Returns 1 if the class is of class hand or a subclass of hand, 0 otherwise.
|
inlinestatic |
References theMaxParams.
|
virtual |
|
virtual |
Returns minimum/maximum parameter handle for the class.
|
inlinevirtual |
Get the object's class name.
References DtString::c_str(), and myName.
Referenced by DtInteraction::interactionClassName().
|
virtual |
Returns true if the interaction class is needed by the federation false otherwise.
|
inlinevirtual |
Get the number of parameters associated with this object.
References myParams.
Referenced by DtInteraction::numParameters().
|
protected |
assignment operator – Not Implemented
|
inlinevirtual |
Get the set of non-inherited parameter handles for this class.
|
virtual |
Returns the Parameter handle for this Parameter name.
|
virtual |
Returns a string holding the name of the Parameter handle.
|
inlinevirtual |
Get the set of valid parameter handles for this class.
Includes parameters inherited from base classes.
|
virtual |
Subscribe passively to the class.
|
protectedvirtual |
Callback for handling startInters RTI callback.
|
protectedvirtual |
Callback for handling stopInters RTI callback.
|
virtual |
Publish the class, and register start and stopUpdates callbacks.
|
virtual |
Returns true if the class is published, false otherwise.
|
virtual |
Get my RTI ambassador.
|
inlinestatic |
Set/Get maximum number of allowable parameters for an interaction.
References theMaxParams.
|
inlinestatic |
Set a time delay to occur after calling RTI::RTIambassador::subscribe() The purpose of this function is to get around a bug in DMSO RTI NG v3.2 for Win98.
If a delay is not used on Win98, DMSO RTI NG may miss subscribe messages and then fail to call discoverObjectInstance() when it's appropriate In most circumstances, you would never want to call this function.
References theSubscriptionTimeDelay.
|
virtual |
Set a decoder to be called for this object class for any Parameter received in an update that doesn't have a decoder.
|
virtual |
Set an encoder to be called for this object class for any Parameter that doesn't have an encoder set for it.
|
virtual |
|
staticprotected |
Callback for handling startInters RTI callback.
|
staticprotected |
Callback for handling stopInters RTI callback.
|
virtual |
Subscribe to the class.
|
virtual |
Subscribe with region.
|
virtual |
Returns true if the class is subscribed, false otherwise.
|
virtual |
Returns the unknown Parameter decoder. Returns null if not set.
|
virtual |
Returns the unknown Parameter encoder. Returns null if not set.
|
virtual |
Unpublish the class, and deregister start and stopUpdates callbacks.
|
virtual |
Unsubscribe to the class.
|
virtual |
Unsubscribe to the class with region.
|
virtual |
|
protected |
Referenced by baseClass().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by handle().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by numParameters().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
Referenced by maxParameters(), and setMaxParameters().
|
staticprotected |
Referenced by setSubscriptionTimeDelay().