Jamba  3.0.2
pongasoft::VST::IParamSerializer< T > Class Template Referenceabstract

#include <ParamSerializers.h>

Inherited by pongasoft::VST::JmbParamDef< T > [private].

Public Types

using ParamType = T
 

Public Member Functions

virtual tresult readFromStream (IBStreamer &iStreamer, ParamType &oValue) const =0
 
virtual std::string toString (ParamType const &iValue, int32 iPrecision) const
 
virtual tresult writeToStream (const ParamType &iValue, IBStreamer &oStreamer) const =0
 
virtual void writeToStream (ParamType const &iValue, std::ostream &oStream) const
 

Detailed Description

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

A vst parameter is represented by a ParamValue type which is a double in the range [0,1]. This interface represents a way to extend the concept of parameter by allowing any type that cannot be converted to ParamValue (for example a string). The parameter simply needs to provide an implementation of this interface which represents a way to serialize/deserialize the type to the stream.

Template Parameters
Tthe actual type that the parameter represents

Member Typedef Documentation

◆ ParamType

template<typename T>
using pongasoft::VST::IParamSerializer< T >::ParamType = T

Member Function Documentation

◆ readFromStream()

template<typename T>
virtual tresult pongasoft::VST::IParamSerializer< T >::readFromStream ( IBStreamer &  iStreamer,
ParamType oValue 
) const
pure virtual

◆ toString()

template<typename T>
virtual std::string pongasoft::VST::IParamSerializer< T >::toString ( ParamType const &  iValue,
int32  iPrecision 
) const
inlinevirtual

◆ writeToStream() [1/2]

template<typename T>
virtual tresult pongasoft::VST::IParamSerializer< T >::writeToStream ( const ParamType iValue,
IBStreamer &  oStreamer 
) const
pure virtual

◆ writeToStream() [2/2]

template<typename T>
virtual void pongasoft::VST::IParamSerializer< T >::writeToStream ( ParamType const &  iValue,
std::ostream &  oStream 
) const
inlinevirtual

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