Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
CStringParamSerializer< size > Class Template Reference

A parameter backed by a C type string (char[size]). More...

#include <ParamSerializers.h>

Inherits IParamSerializer< char[128]>.

Public Types

using ParamType = char[size]
Public Types inherited from IParamSerializer< char[128]>
using ParamType

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
Public Member Functions inherited from IParamSerializer< char[128]>
virtual tresult readFromStream (IBStreamer &iStreamer, ParamType &oValue) const
 This method should read from the stream and populate oValue accordingly (aka deserialization).
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).

Detailed Description

template<int size = 128>
class pongasoft::VST::CStringParamSerializer< size >

A parameter backed by a C type string (char[size]).

No memory allocation happens in this case.

Template Parameters
sizeof the string saved/restored

Member Typedef Documentation

◆ ParamType

template<int size = 128>
using ParamType = char[size]

Member Function Documentation

◆ readFromStream()

template<int size = 128>
tresult readFromStream ( IBStreamer & iStreamer,
ParamType & oValue ) const
inlineoverride

◆ writeToStream() [1/2]

template<int size = 128>
tresult writeToStream ( const ParamType & iValue,
IBStreamer & oStreamer ) const
inlineoverride

◆ writeToStream() [2/2]

template<int size = 128>
void writeToStream ( ParamType const & iValue,
std::ostream & oStream ) const
inlineoverride

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