Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
IDiscreteConverter< T > Class Template Referenceabstract

Interface that defines a converter from a type T to an int32 given a number of steps (provided by getStepCount). More...

#include <ParamSerializers.h>

Inherited by DiscreteTypeParamSerializer< T, Compare >, and StaticCastDiscreteConverter< T >.

Public Member Functions

virtual tresult convertFromDiscreteValue (int32 iDiscreteValue, T &oValue) const =0
virtual tresult convertToDiscreteValue (T const &iValue, int32 &oDiscreteValue) const =0
virtual int32 getStepCount () const =0

Detailed Description

template<typename T>
class pongasoft::VST::IDiscreteConverter< T >

Interface that defines a converter from a type T to an int32 given a number of steps (provided by getStepCount).

Any Jmb parameter providing this interface can be used as a discrete parameter (for example, in a step button view). Note that this interface does not need to be implemented if T can behave like an int32 (see StaticCastDiscreteConverter).

Member Function Documentation

◆ convertFromDiscreteValue()

template<typename T>
virtual tresult convertFromDiscreteValue ( int32 iDiscreteValue,
T & oValue ) const
pure virtual

◆ convertToDiscreteValue()

template<typename T>
virtual tresult convertToDiscreteValue ( T const & iValue,
int32 & oDiscreteValue ) const
pure virtual

◆ getStepCount()

template<typename T>
virtual int32 getStepCount ( ) const
pure virtual

The documentation for this class was generated from the following file: