OMK::Iii::IntegratorT< Type > Class Template Reference

Convertor class which integrate the input value. More...

#include <OMKConvertors.h>

Inheritance diagram for OMK::Iii::IntegratorT< Type >:

Inheritance graph
[legend]
Collaboration diagram for OMK::Iii::IntegratorT< Type >:

Collaboration graph
[legend]
List of all members.

Private Member Functions

 DECLARE_TEMPLATE_CONVERTOR_FACTORY (IntegratorT, Type, Type)

Detailed Description

template<typename Type>
class OMK::Iii::IntegratorT< Type >

Convertor class which integrate the input value.

The class must be registered before using, so you have to use the following macro in your code (see REGISTER_TEMPLATE_CONVERTOR_FACTORY), replace #Type# by your type: float, double,...

#include "OMKConnectors.inl"
REGISTER_TEMPLATE_CONVERTOR_FACTORY( IntegratorT, #Type# , #Type#, Integrator#Type#  ) ;
In the main function of your code, call the registration
IntegratorT< #Type# , #Type# >::registerInFactory() ;
After that the user can define an average convertor in the configuration file for a connector:
...
Extensions
{
  interaction
  {
    Class Interactive
    Connectors
    {
      parameter_of_type_#Type#
      {
        Type Simple
        Convertor Integrator#Type# // <---Here
        Category "offset"          // <---The connector uses an offset value
      }
    }
  }
}
...

Definition at line 124 of file OMKConvertors.h.


Member Function Documentation

template<typename Type>
OMK::Iii::IntegratorT< Type >::DECLARE_TEMPLATE_CONVERTOR_FACTORY ( IntegratorT< Type >  ,
Type  ,
Type   
) [private]


logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007