OMK::AttributeAccTypeT< PrmType, PrmAccType > Class Template Reference
[Attribute feature]

Attribute with indirect access to value for types that are sons of OMKType. More...

#include <OMKAttribute.h>

Inheritance diagram for OMK::AttributeAccTypeT< PrmType, PrmAccType >:

Inheritance graph
[legend]
Collaboration diagram for OMK::AttributeAccTypeT< PrmType, PrmAccType >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void setAccessor (IAccessorT< PrmAccType > *accessor)
 Set the new accessor.

Detailed Description

template<typename PrmType, typename PrmAccType>
class OMK::AttributeAccTypeT< PrmType, PrmAccType >

Attribute with indirect access to value for types that are sons of OMKType.

Date:
2007-05-01
Author:
BenoƮt Chanclou
Parameters:
PrmType The type of the attribute.
PrmAccType The type of the asscociated accessor.
In most of the cases AttributeAccT is more appropriated, because it allows to use types that are not sons of OMKType.

Definition at line 517 of file OMKAttribute.h.


Constructor & Destructor Documentation

template<typename PrmType, typename PrmAccType>
OMK::AttributeAccTypeT< PrmType, PrmAccType >::AttributeAccTypeT ( const Name id,
IAccessorT< PrmAccType > *  accessor 
) [inline]

Constructor.

Parameters:
[in] id See _id.

Definition at line 524 of file OMKAttribute.h.

00525     : IAttributeT< PrmType, PrmType, AccessorAccT< PrmType,  PrmAccType > >( id, AccessorAccT< PrmType,  PrmAccType >( accessor ) ) {}

template<typename PrmType, typename PrmAccType>
virtual OMK::AttributeAccTypeT< PrmType, PrmAccType >::~AttributeAccTypeT (  )  [inline, virtual]

Destructor.

Definition at line 527 of file OMKAttribute.h.

00527 {}

template<typename PrmType, typename PrmAccType>
OMK::AttributeAccTypeT< PrmType, PrmAccType >::AttributeAccTypeT ( const Name id,
IAccessorT< PrmAccType > *  accessor 
) [inline]

Constructor.

Parameters:
[in] id See _id.

Definition at line 524 of file OMKAttribute.h.

00525     : IAttributeT< PrmType, PrmType, AccessorAccT< PrmType,  PrmAccType > >( id, AccessorAccT< PrmType,  PrmAccType >( accessor ) ) {}

template<typename PrmType, typename PrmAccType>
virtual OMK::AttributeAccTypeT< PrmType, PrmAccType >::~AttributeAccTypeT (  )  [inline, virtual]

Destructor.

Definition at line 527 of file OMKAttribute.h.

00527 {}


Member Function Documentation

template<typename PrmType, typename PrmAccType>
void OMK::AttributeAccTypeT< PrmType, PrmAccType >::setAccessor ( IAccessorT< PrmAccType > *  accessor  )  [inline]

Set the new accessor.

Parameters:
[in] accessor The new accessor to the value.
Use this method to change the current accessor. See example in the class description.

see AccessorAccT for example.

Definition at line 536 of file OMKAttribute.h.

References OMK::IAttributeT< PrmType, ModelType, AccessorType >::_accessor.

00537   {
00538     this->_accessor.setAccessor( accessor ) ;
00539   }


logo OpenMask

Documentation generated on Mon Jun 9 11:46:01 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007