21#include <pluginterfaces/vst/vsttypes.h>
22#include <base/source/fstreamer.h>
23#include <pongasoft/logging/logging.h>
30using namespace Steinberg::Vst;
31using namespace Steinberg;
92 inline void set(
int iIdx, ParamValue iParamValue)
94 DCHECK_F(iIdx >= 0 && iIdx < fSaveOrder->
getCount());
99 inline ParamValue
get(
int iIdx)
const
101 DCHECK_F(iIdx >= 0 && iIdx < fSaveOrder->
getCount());
Used to communicate the state between the UI and the RT and read/write to stream.
Definition NormalizedState.h:39
std::string toString() const
Definition NormalizedState.cpp:172
int16 getVersion() const
Definition NormalizedState.h:83
int getCount() const
Definition NormalizedState.h:80
NormalizedState & operator=(NormalizedState const &other)
Definition NormalizedState.cpp:64
int copyValuesFrom(NormalizedState const &iSource)
Copy values from the source (iSource) state to this state.
Definition NormalizedState.h:77
tresult getNormalizedValue(ParamID iParamID, ParamValue &oValue) const
Returns the normalized value for the given param id if it exists.
Definition NormalizedState.cpp:132
NormalizedState(SaveOrder const *iSaveOrder)
Definition NormalizedState.cpp:29
void set(int iIdx, ParamValue iParamValue)
Sets the param value.
Definition NormalizedState.h:92
ParamValue * fValues
Definition NormalizedState.h:129
virtual tresult writeToStream(Parameters const *iParameters, IBStreamer &oStreamer) const
Definition NormalizedState.cpp:115
int copyValuesTo(NormalizedState &oDestination) const
Copy values from this to the destination (oDestination) state.
Definition NormalizedState.cpp:83
~NormalizedState()
Definition NormalizedState.cpp:56
int findParamIndex(ParamID iParamID) const
The index for the given param.
Definition NormalizedState.cpp:162
tresult setNormalizedValue(ParamID iParamID, ParamValue iValue)
Sets the normalized value for the given param id if it exists.
Definition NormalizedState.cpp:147
ParamValue get(int iIdx) const
Gets the param value.
Definition NormalizedState.h:99
SaveOrder const * fSaveOrder
Definition NormalizedState.h:128
virtual tresult readFromStream(Parameters const *iParameters, IBStreamer &iStreamer)
Definition NormalizedState.cpp:99
This is the class which maintains all the registered parameters.
Definition Parameters.h:39
Maintains the order used to save/restore the RT and GUI state.
Definition NormalizedState.h:45
int getCount() const
Definition NormalizedState.h:48
std::vector< ParamID > fOrder
Definition NormalizedState.h:47
int16 fVersion
Definition NormalizedState.h:46