17#include <vrfobjcore/simComponent.h>
45 virtual DtReaderWriter*
value() {
return new DtRwString(
myValue); }
84 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
96 virtual bool init()
override;
103 virtual const char*
type()
const override;
115 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
116 DtComponentDescriptor* desc, DtReaderWriterRegistry* parentRegistry);
Helper class used for registering the attribute.
Definition attributeProviderComponent.h:36
static DtReaderWriter * provide(void *usr)
Static provider function used in attribute registration.
Definition attributeProviderComponent.h:41
virtual DtReaderWriter * value()
Creates a reader/writer object for the attribute value.
Definition attributeProviderComponent.h:45
DtRwString myValue
The attribute value.
Definition attributeProviderComponent.h:51
DtRwString myKey
The attribute key.
Definition attributeProviderComponent.h:48
const DtAttributeProviderComponent & operator=(const DtAttributeProviderComponent &orig)
Assignment operator (not implemented)
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry)
Factory method to create a new instance of this component.
std::vector< DtAttributeProvider * > myProviders
Collection of attribute providers.
Definition attributeProviderComponent.h:123
DtAttributeProviderComponent(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
virtual const char * type() const override
Gets the type identifier for this component.
DtAttributeProviderComponent()
Default constructor (not implemented)
virtual bool init() override
Initializes the component.
DtAttributeProviderComponent(const DtAttributeProviderComponent &orig)
Copy constructor (not implemented)
virtual ~DtAttributeProviderComponent() override
Virtual destructor.
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const char DtAttributeProviderComponentType[]
Definition attributeProviderComponent.h:21