Jamba C++ API  4.0.0
UTF8StringParamSerializer< size > Class Template Reference

A parameter backed by a UTF8String. More...

#include <GUIParamSerializers.h>

Inherits IParamSerializer< UTF8String >.

Public Member Functions

tresult readFromStream (IBStreamer &iStreamer, ParamType &oValue) const override
 
tresult writeToStream (const ParamType &iValue, IBStreamer &oStreamer) const override
 
void writeToStream (ParamType const &iValue, std::ostream &oStream) const override
 By default, this implementation simply writes the value to the stream IF it is possible (determined at compilation time). More...
 
- Public Member Functions inherited from IParamSerializer< UTF8String >
virtual std::string toString (ParamType const &iValue, int32 iPrecision) const
 

Additional Inherited Members

- Public Types inherited from IParamSerializer< UTF8String >
using ParamType = UTF8String
 

Detailed Description

template<int size = 128>
class pongasoft::VST::GUI::Params::UTF8StringParamSerializer< size >

A parameter backed by a UTF8String.

Template Parameters
sizemax size of the string saved/restored

Member Function Documentation

◆ readFromStream()

tresult readFromStream ( IBStreamer &  iStreamer,
ParamType oValue 
) const
inlineoverridevirtual

◆ writeToStream() [1/2]

tresult writeToStream ( const ParamType iValue,
IBStreamer &  oStreamer 
) const
inlineoverridevirtual

◆ writeToStream() [2/2]

void writeToStream ( ParamType const &  iValue,
std::ostream &  oStream 
) const
inlineoverridevirtual

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 from IParamSerializer< UTF8String >.


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