![]() |
VR-Vantage 3.0.3 API Documentation
|
DtExtendedAttributesInitializer performs all initialization required to register publishers, reflected lists, state repositories, encoders, and decoders for a set of object classes that should support extended attributes. More...

Public Member Functions | |
| DtExtendedAttributesInitializer () | |
| Constructor. | |
| virtual | ~DtExtendedAttributesInitializer () |
| Destructor. | |
| virtual void | initialize (DtExerciseConn *exConn) |
| Performs initialization. | |
| virtual void | setObjectClassChooser (DtObjectClassChooserPtr chooser) |
| Specifies an object class chooser to choose what object class to publish. | |
| virtual void | addSupportedClass (const DtString &fullClassName, bool addSubclasses=false) |
| Adds a new FOM class to be supported. | |
Static Public Member Functions | |
| static tbb::spin_mutex & | GlobalHLAMutex () |
Protected Member Functions | |
| virtual bool | needsInitialization (DtExerciseConn *exConn) |
| These functions are called within initialize(). | |
| virtual const DtString & | publisherName () const =0 |
| The name of the publisher class in VR-Link. | |
| virtual const DtString & | reflectedListName () const =0 |
| The name of the reflected list class in VR-Link. | |
| virtual const DtString & | defaultBaseObjectClass () const =0 |
| The base object class that is supported by default. All subclasses will also be supported. | |
| virtual void | setUnknownAttributeFunctions (DtObjClassDesc *desc)=0 |
| Sets the unknown attribute checker, encoder, and decoder functions in order to process them as extended attributes. | |
| virtual std::map< DtString, RTI::AttributeHandle > | attributeNameToHandleMap (const RTI::ObjectClassHandle &classHdl) const =0 |
| Gets the current attribute name to handle mapping for the object class. | |
| virtual void | setAttributeNameToHandleMap (const RTI::ObjectClassHandle &classHdl, const std::map< DtString, RTI::AttributeHandle > &mapping)=0 |
| SEts the attribute name to handle mapping for the object class. | |
| virtual void | setPublisherStateRepCreator ()=0 |
| Sets the state rep creator for the associated publisher. | |
| virtual void | setReflectedObjectStateRepCreator ()=0 |
| Sets the state rep creator for the associated reflected object. | |
| virtual bool | areClassNamesEquivalent (const DtString &, const DtString &) const |
| These functions are called within initialize() to perform specific aspects of the process. | |
| virtual void | addSupportedSubclasses (DtExerciseConn *exConn) |
| Finds all subclasses for supported base classes and adds them to the list of supported object classes. | |
| virtual void | initializeObjectClassChooser (DtExerciseConn *exConn) |
| Initializes the object class chooser for the publisher. | |
| virtual void | initializeObjectClasses (DtExerciseConn *exConn) |
| Initializes the object classes by specifying unknown attribute functions and setting up attribute mappings. | |
| virtual void | initializeAttributes (DtObjClassDesc *desc) |
| Called by initializeObjectClasses() to set up the mapping of attribute handles to attribute names that is required to translate FOM class attributes into extended attributes. | |
| virtual void | initializeExtendedAttributes (DtExerciseConn *exConn) |
| Initializes the attributes for extended attributes that are sent via an associated ExtendedAttributes object. | |
Protected Attributes | |
| bool | myNeedsInitialization |
| DtObjectClassChooserPtr | myObjectClassChooser |
| std::list< DtString > | myFullBaseClassNames |
| std::list< DtString > | myFullClassNames |
Static Protected Attributes | |
| static tbb::spin_mutex | theGlobalHLAMutex |
| static DtString | theExtendedAttributesClassName |
DtExtendedAttributesInitializer performs all initialization required to register publishers, reflected lists, state repositories, encoders, and decoders for a set of object classes that should support extended attributes.
| DtExtendedAttributesInitializer::DtExtendedAttributesInitializer | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Performs initialization.
Generally only needs to be run once per publisher/reflected list/state rep type.
|
virtual |
Specifies an object class chooser to choose what object class to publish.
Must be called prior to initialize().
|
virtual |
Adds a new FOM class to be supported.
If addSubclasses is true, all subclasses of the class will also be supported. Must be called prior to initialize().
|
inlinestatic |
|
protectedvirtual |
These functions are called within initialize().
Must be implemented in subclasses as they are specific to the publishers, reflected lists, and state repositories for a category of object.Returns true if initialization needs to be performed. Default behavior is to always_noconv return true unless overridden in subclass.
Reimplemented in DtControlObjectExtendedAttributesInitializer, DtAggregateExtendedAttributesInitializer, and DtEntityExtendedAttributesInitializer.
|
protectedpure virtual |
The name of the publisher class in VR-Link.
Implemented in DtControlObjectExtendedAttributesInitializer, DtAggregateExtendedAttributesInitializer, and DtEntityExtendedAttributesInitializer.
|
protectedpure virtual |
The name of the reflected list class in VR-Link.
Implemented in DtControlObjectExtendedAttributesInitializer, DtAggregateExtendedAttributesInitializer, and DtEntityExtendedAttributesInitializer.
|
protectedpure virtual |
The base object class that is supported by default. All subclasses will also be supported.
Implemented in DtControlObjectExtendedAttributesInitializer, DtAggregateExtendedAttributesInitializer, and DtEntityExtendedAttributesInitializer.
|
protectedpure virtual |
Sets the unknown attribute checker, encoder, and decoder functions in order to process them as extended attributes.
Specific to a particular state repository class.
Implemented in DtControlObjectExtendedAttributesInitializer, DtAggregateExtendedAttributesInitializer, and DtEntityExtendedAttributesInitializer.
|
protectedpure virtual |
Gets the current attribute name to handle mapping for the object class.
Specific to a particular state repository class.
Implemented in DtControlObjectExtendedAttributesInitializer, DtAggregateExtendedAttributesInitializer, and DtEntityExtendedAttributesInitializer.
|
protectedpure virtual |
SEts the attribute name to handle mapping for the object class.
Specific to a particular state repository class.
Implemented in DtControlObjectExtendedAttributesInitializer, DtAggregateExtendedAttributesInitializer, and DtEntityExtendedAttributesInitializer.
|
protectedpure virtual |
Sets the state rep creator for the associated publisher.
Specific to a particular publisher class and state repository class.
Implemented in DtControlObjectExtendedAttributesInitializer, DtAggregateExtendedAttributesInitializer, and DtEntityExtendedAttributesInitializer.
|
protectedpure virtual |
Sets the state rep creator for the associated reflected object.
Specific to a particular reflected object class and state repository class.
Implemented in DtControlObjectExtendedAttributesInitializer, DtAggregateExtendedAttributesInitializer, and DtEntityExtendedAttributesInitializer.
|
protectedvirtual |
These functions are called within initialize() to perform specific aspects of the process.
Can be overridden in subclasses, but is usually not necessary.Utility function that returns true if the two strings correspond to the same full object class names.
|
protectedvirtual |
Finds all subclasses for supported base classes and adds them to the list of supported object classes.
|
protectedvirtual |
Initializes the object class chooser for the publisher.
|
protectedvirtual |
Initializes the object classes by specifying unknown attribute functions and setting up attribute mappings.
|
protectedvirtual |
Called by initializeObjectClasses() to set up the mapping of attribute handles to attribute names that is required to translate FOM class attributes into extended attributes.
|
protectedvirtual |
Initializes the attributes for extended attributes that are sent via an associated ExtendedAttributes object.
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |