#include <OMKAttribute.h>
Inheritance diagram for OMK::AttributeAccT< PrmType, PrmAccType >:
Public Member Functions | |
void | setAccessor (IAccessorT< PrmAccType > *accessor) |
Set the new accessor. |
PrmType | The type of the attribute. | |
PrmAccType | The type of the asscociated accessor. |
class MyObject : public ExtensibleSimulatedObject { ... AttributeT< int > myIntegerAttribute ; AttributeT< float, int > myIntegerAttributeSeeAsAFloat ; MyObject( Controller& ctrl, const ObjectDescriptor& objectDescriptor ) : ExtensibleSimulatedObject( ctrl, objectDescriptor ), myIntegerAttribute( "theInteger", 0 ), myIntegerAttributeSeeAsFloat( "theFloat", &myIntegerAttribute ) { ... } ... } ;
The value is reached through the associated accessor.
The PrmType is cast with SimpleTypeT.
Definition at line 479 of file OMKAttribute.h.
OMK::AttributeAccT< PrmType, PrmAccType >::AttributeAccT | ( | const Name & | id, | |
IAccessorT< PrmAccType > * | accessor | |||
) | [inline] |
Constructor.
[in] | id | See _id. |
Definition at line 486 of file OMKAttribute.h.
00487 : IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, AccessorAccT< PrmType, PrmAccType > >( id, AccessorAccT< PrmType, PrmAccType >( accessor ) ) {}
virtual OMK::AttributeAccT< PrmType, PrmAccType >::~AttributeAccT | ( | ) | [inline, virtual] |
OMK::AttributeAccT< PrmType, PrmAccType >::AttributeAccT | ( | const Name & | id, | |
IAccessorT< PrmAccType > * | accessor | |||
) | [inline] |
Constructor.
[in] | id | See _id. |
Definition at line 486 of file OMKAttribute.h.
00487 : IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, AccessorAccT< PrmType, PrmAccType > >( id, AccessorAccT< PrmType, PrmAccType >( accessor ) ) {}
virtual OMK::AttributeAccT< PrmType, PrmAccType >::~AttributeAccT | ( | ) | [inline, virtual] |
void OMK::AttributeAccT< PrmType, PrmAccType >::setAccessor | ( | IAccessorT< PrmAccType > * | accessor | ) | [inline] |
Set the new accessor.
[in] | accessor | The new accessor to the value. |
see AccessorAccT for example.
Definition at line 498 of file OMKAttribute.h.
00499 { 00500 this->_accessor.setAccessor( accessor ) ; 00501 }
Documentation generated on Mon Jun 9 11:46:01 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |