Jamba
3.0.2
|
#include <ParamDisplay.h>
Public Types | |
enum | Key { Key::kID, Key::kType, Key::kTitle, Key::kOwner, Key::kTransient, Key::kNormalizedDefault, Key::kDefault, Key::kNormalizedValue, Key::kValue, Key::kSteps, Key::kFlags, Key::kShortTitle, Key::kPrecision, Key::kUnitID, Key::kUnits, Key::kShared } |
using | ParamMap = std::map< ParamID, ValueMap > |
using | Value = std::string |
using | ValueMap = std::map< Key, Value > |
Public Member Functions | |
ParamMap | getParamMap (std::vector< ParamID > const &iParamIDs={}) const |
ParamMap | getParamMap (NormalizedState const &iNormalizedState) const |
Value | getValue (Key iKey) const |
Value | getValue (ParamID iParamID, Key iKey) const |
ValueMap | getValues (ParamID iParamID, std::vector< Key > const &iKeys={}) const |
ParamDisplay & | id (ParamID iParamID) |
ParamDisplay & | ids (std::vector< ParamID > const &iParamIDs) |
std::vector< ParamID > const & | ids () const |
ParamDisplay & | key (Key iKey) |
ParamDisplay & | keys (std::vector< Key > const &iKeys) |
std::vector< Key > const & | keys () const |
ParamDisplay (Parameters const &iParams) | |
ParamDisplay (RT::RTState const *iState) | |
ParamDisplay (GUI::GUIState const *iState) | |
ParamDisplay & | precision (int32 iPrecision) |
Static Public Member Functions | |
static ParamDisplay | from (Parameters const &iParams) |
static ParamDisplay | from (RT::RTState const *iState, bool iSaveStateOnly=false) |
static ParamDisplay | from (GUI::GUIState const *iState, bool iSaveStateOnly=false) |
Protected Member Functions | |
std::shared_ptr< RawVstParamDef > | getRawVstParamDef (ParamID iParamID) const |
Value | getValue (RawVstParamDef const *iParamDef, Key iKey) const |
Value | getValue (IJmbParamDef const *iParamDef, Key iKey) const |
Value | getValue (std::unique_ptr< RT::RTRawVstParameter > const &iParam, Key iKey) const |
Value | getValue (std::unique_ptr< RT::IRTJmbInParameter > const &iParam, Key iKey) const |
Value | getValue (std::unique_ptr< RT::IRTJmbOutParameter > const &iParam, Key iKey) const |
Value | getValue (std::unique_ptr< GUI::GUIRawVstParameter > const &iParam, Key iKey, Parameters const *iParameters) const |
Value | getValue (GUI::IGUIJmbParameter const &iParam, Key iKey) const |
Value | getValue (Parameters const *iParams, ParamID iParamID, Key iKey) const |
Value | getValue (RT::RTState const *iState, ParamID iParamID, Key iKey) const |
Value | getValue (GUI::GUIState const *iState, ParamID iParamID, Key iKey) const |
Value | getValue (ParamValue iValue) const |
Private Attributes | |
GUI::GUIState const * | fGUIState {} |
std::vector< Key > | fKeys {} |
Parameters const * | fParameters {} |
std::vector< ParamID > | fParamIDs {} |
int32 | fPrecision {3} |
RT::RTState const * | fRTState {} |
This helper class is used to display the parameters (vst/jmb) WARNING: this class is allocating memory and as a result should be used in RT only during development!
using pongasoft::VST::Debug::ParamDisplay::ParamMap = std::map<ParamID, ValueMap> |
using pongasoft::VST::Debug::ParamDisplay::Value = std::string |
using pongasoft::VST::Debug::ParamDisplay::ValueMap = std::map<Key, Value> |
|
strong |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
static |
Shortcut to create a table for all registered parameter (definition not current value). Use all registered parameters
|
static |
Shortcut to create a table for the RTState (current values). Use all registered parameters or the one used in save state only.
|
static |
Shortcut to create a table for the GUIState (current values). Use all registered parameters or the one used in save state only.
ParamDisplay::ParamMap pongasoft::VST::Debug::ParamDisplay::getParamMap | ( | std::vector< ParamID > const & | iParamIDs = {} | ) | const |
ParamDisplay::ParamMap pongasoft::VST::Debug::ParamDisplay::getParamMap | ( | NormalizedState const & | iNormalizedState | ) | const |
|
protected |
std::string pongasoft::VST::Debug::ParamDisplay::getValue | ( | Key | iKey | ) | const |
ParamDisplay::Value pongasoft::VST::Debug::ParamDisplay::getValue | ( | ParamID | iParamID, |
Key | iKey | ||
) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
ParamDisplay::ValueMap pongasoft::VST::Debug::ParamDisplay::getValues | ( | ParamID | iParamID, |
std::vector< Key > const & | iKeys = {} |
||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |