|
Jamba C++ API
5.1.1
|
A vst parameter is represented by a ParamValue type which is a double in the range [0,1]. More...
#include <ParamSerializers.h>
Inherited by DiscreteTypeParamSerializer< T, Compare >, and JmbParamDef< T > [private].
Public Types | |
| using | ParamType = T |
Public Member Functions | |
| virtual tresult | readFromStream (IBStreamer &iStreamer, ParamType &oValue) const |
This method should read from the stream and populate oValue accordingly (aka deserialization) More... | |
| virtual std::string | toString (ParamType const &iValue, int32 iPrecision) const |
| virtual tresult | writeToStream (const ParamType &iValue, IBStreamer &oStreamer) const |
This method should write iValue to the stream (aka serialization) More... | |
| virtual void | writeToStream (ParamType const &iValue, std::ostream &oStream) const |
| By default, this implementation simply writes the value to the stream IF it is possible (determined at compilation time). More... | |
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.
| T | the actual type that the parameter represents |
| using ParamType = T |
|
inlinevirtual |
This method should read from the stream and populate oValue accordingly (aka deserialization)
kResultOk if reading was successful, kResultFalse otherwise (or kNotImplemented if not supported) Reimplemented in DiscreteTypeParamSerializer< T, Compare >, JmbParamDef< T >, BooleanParamSerializer, Int64ParamSerializer, Int32ParamSerializer, DoubleParamSerializer, RawParamSerializer, and UTF8StringParamSerializer< size >.
|
inlinevirtual |
|
inlinevirtual |
This method should write iValue to the stream (aka serialization)
kResultOk if writing was successful, kResultFalse otherwise (or kNotImplemented if not supported) Reimplemented in DiscreteTypeParamSerializer< T, Compare >, JmbParamDef< T >, BooleanParamSerializer, Int64ParamSerializer, Int32ParamSerializer, DoubleParamSerializer, RawParamSerializer, and UTF8StringParamSerializer< size >.
|
inlinevirtual |
By default, this implementation simply writes the value to the stream IF it is possible (determined at compilation time).
Doesn't do anything if not. Subclasses can redefine this behavior.
Reimplemented in DiscreteTypeParamSerializer< T, Compare >, JmbParamDef< T >, BooleanParamSerializer, and UTF8StringParamSerializer< size >.