20 #include <pluginterfaces/vst/vsttypes.h> 21 #include <base/source/fstreamer.h> 22 #include <pongasoft/logging/logging.h> 29 using namespace Steinberg::Vst;
30 using namespace Steinberg;
46 std::vector<ParamID> fOrder{};
47 inline int getCount()
const {
return static_cast<int>(fOrder.size()); }
79 inline int getCount()
const {
return fSaveOrder->getCount(); }
82 inline int16
getVersion()
const {
return fSaveOrder->fVersion; }
88 int findParamIndex(ParamID iParamID)
const;
91 inline void set(
int iIdx, ParamValue iParamValue)
93 DCHECK_F(iIdx >= 0 && iIdx < fSaveOrder->getCount());
94 fValues[iIdx] = iParamValue;
98 inline ParamValue
get(
int iIdx)
const 100 DCHECK_F(iIdx >= 0 && iIdx < fSaveOrder->getCount());
101 return fValues[iIdx];
105 virtual tresult readFromStream(
Parameters const *iParameters, IBStreamer &iStreamer);
108 virtual tresult writeToStream(
Parameters const *iParameters, IBStreamer &oStreamer)
const;
114 tresult getNormalizedValue(ParamID iParamID, ParamValue &oValue)
const;
120 tresult setNormalizedValue(ParamID iParamID, ParamValue iValue);
124 std::string toString()
const;
128 ParamValue *fValues{
nullptr};
This is the class which maintains all the registered parameters.
Definition: Parameters.h:37
ParamValue get(int iIdx) const
Gets the param value.
Definition: NormalizedState.h:98
Maintains the order used to save/restore the RT and GUI state.
Definition: NormalizedState.h:43
SaveOrder const * fSaveOrder
Definition: NormalizedState.h:127
int copyValuesFrom(NormalizedState const &iSource)
Copy values from the source (iSource) state to this state.
Definition: NormalizedState.h:76
int getCount() const
Definition: NormalizedState.h:47
Used to communicate the state between the UI and the RT and read/write to stream.
Definition: NormalizedState.h:37
int16 getVersion() const
Definition: NormalizedState.h:82
int copyValuesTo(NormalizedState &oDestination) const
Copy values from this to the destination (oDestination) state.
Definition: NormalizedState.cpp:82
void set(int iIdx, ParamValue iParamValue)
Sets the param value.
Definition: NormalizedState.h:91
int getCount() const
Definition: NormalizedState.h:79