|
VR-Engage
2.2
|
This class defines a descriptor for the attribute provider component, which allows entities to provide custom key-value attributes to the simulation system. These attributes can be used for various purposes, including entity classification, capability definition, and property retrieval.
#include <attributeProviderComponentDescriptor.h>
Public Member Functions | |
| DtAttributeProviderComponentDescriptor (const DtString &componentName, DtReaderWriterRegistry *parentRegistry=0) | |
| DtAttributeProviderComponentDescriptor (const DtAttributeProviderComponentDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| DtAttributeProviderComponentDescriptor & | operator= (const DtAttributeProviderComponentDescriptor &orig) |
| virtual | ~DtAttributeProviderComponentDescriptor () override |
| virtual DtString | type () const override |
| virtual DtComponentDescriptor * | clone (DtReaderWriterRegistry *parentRegistry=0) const override |
| virtual DtRwKeyValueMap | attributes () const |
Static Public Member Functions | |
| static DtComponentDescriptor * | creator () |
Protected Member Functions | |
| DtAttributeProviderComponentDescriptor () | |
Protected Attributes | |
Configuration Parameters | |
These parameters are available for setting in the OPD files. The values are copied to the PSR so that other components can access them during simulation. | |
| DtRwKeyValueMap | myAttributes |
| makVre::DtAttributeProviderComponentDescriptor::DtAttributeProviderComponentDescriptor | ( | const DtString & | componentName, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor with component name.
| componentName | The name of this component |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new attribute provider component descriptor with the specified name.
Referenced by DtAttributeProviderComponentDescriptor(), and operator=().
| makVre::DtAttributeProviderComponentDescriptor::DtAttributeProviderComponentDescriptor | ( | const DtAttributeProviderComponentDescriptor & | orig, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Copy constructor.
| orig | The source descriptor to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new attribute provider component descriptor as a copy of the provided original.
References DtAttributeProviderComponentDescriptor().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
|
protected |
Default constructor (not implemented)
Default constructor is protected and not implemented to prevent creation of instances without proper initialization.
| DtAttributeProviderComponentDescriptor & makVre::DtAttributeProviderComponentDescriptor::operator= | ( | const DtAttributeProviderComponentDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtAttributeProviderComponentDescriptor().
|
overridevirtual |
Gets the type identifier for this descriptor.
Returns a unique type identifier string for this descriptor type. Will return makVre::DtAttributeProviderComponentDescriptorType.
|
overridevirtual |
Creates a clone of this descriptor.
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new attribute provider component descriptor as a deep copy of this one.
|
virtual |
Gets the attributes map.
Returns the map of custom attributes defined for this component.
|
static |
Factory function to create a new instance of this descriptor.
Static factory function used by the descriptor creation system to instantiate new instances of this descriptor type.
|
protected |
Map of custom attributes.
Stores the key-value pairs of custom attributes to be provided by this component. These attributes can be queried at runtime and used for various purposes in the simulation system.