Guitarix
|
#include <gx_parameter.h>
Public Types | |
typedef map< string, Parameter * >::const_iterator | iterator |
Public Member Functions | |
ParamMap () | |
~ParamMap () | |
void | writeJSON (gx_system::JsonWriter &jw) |
void | readJSON (gx_system::JsonParser &jp) |
Parameter * | readJSON_one (gx_system::JsonParser &jp) |
void | writeJSON_one (gx_system::JsonWriter &jw, Parameter *p) |
iterator | begin () const |
iterator | end () const |
bool | hasId (const string &id) const |
bool | hasId (const char *p) const |
void | set_replace_mode (bool mode) |
Parameter & | operator[] (const string &id) |
Parameter & | operator[] (const char *p) |
void | set_init_values () |
void | reset_unit (const PluginDef *pdef) const |
bool | unit_has_std_values (const PluginDef *pdef) const |
sigc::signal< void, Parameter *, bool > | signal_insert_remove () |
void | unregister (Parameter *p) |
void | unregister (const string &id) |
FloatParameter * | reg_par (const string &id, const string &name, float *var, float std, float lower, float upper, float step, bool midi=true) |
FloatParameter * | reg_par_non_preset (const string &id, const string &name, float *var, float std, float lower, float upper, float step) |
FloatParameter * | reg_par (const string &id, const string &name, float *var, float std=0, bool midi=true) |
BoolParameter * | reg_par (const string &id, const string &name, bool *var, bool std=false, bool preset=true, bool midi=true) |
EnumParameter * | reg_enum_par (const string &id, const string &name, const value_pair *vl, int *var, int std=0, bool midi=true) |
EnumParameter * | reg_non_midi_enum_par (const string &id, const string &name, const value_pair *vl, int *var, bool preset, int std=0) |
FloatEnumParameter * | reg_enum_par (const string &id, const string &name, const value_pair *vl, float *var, int std=0, int low=0, bool midi=true) |
BoolParameter * | reg_non_midi_par (const string &id, bool *var, bool preset, bool std=false) |
IntParameter * | reg_par (const string &id, const string &name, int *var, int std, int lower, int upper, bool midi) |
IntParameter * | reg_par (const string &id, const string &name, int *var, int std, bool midi) |
IntParameter * | reg_non_midi_par (const string &id, int *var, bool preset, int std, int lower, int upper) |
FloatParameter * | reg_non_midi_par (const string &id, float *val, bool preset, float std=0, float lower=0, float upper=1, float step=0) |
FileParameter * | reg_filepar (const string &id, bool preset=false) |
StringParameter * | reg_string (const string &id, const string &name, Glib::ustring *var, const string &sv, bool preset=false) |
StringParameter * | reg_preset_string (const string &id, const string &name, Glib::ustring *var, const string &sv, bool preset=true) |
void | dump (const string &fmt) |
Private Member Functions | |
void | unique_id (Parameter *param) |
void | check_id (const string &id) |
void | check_p (const char *p) |
Parameter * | insert (Parameter *param) |
Private Attributes | |
map< string, Parameter * > | id_map |
bool | replace_mode |
sigc::signal< void, Parameter *, bool > | insert_remove |
Friends | |
template<class T > | |
class | ParameterV |
Definition at line 534 of file gx_parameter.h.
typedef map<string,Parameter*>::const_iterator gx_engine::ParamMap::iterator |
Definition at line 554 of file gx_parameter.h.
gx_engine::ParamMap::ParamMap | ( | ) |
gx_engine::ParamMap::~ParamMap | ( | ) |
|
inline |
Definition at line 555 of file gx_parameter.h.
|
private |
Referenced by operator[]().
|
private |
Referenced by operator[]().
void gx_engine::ParamMap::dump | ( | const string & | fmt | ) |
|
inline |
Definition at line 556 of file gx_parameter.h.
|
inline |
Definition at line 558 of file gx_parameter.h.
|
inline |
Definition at line 557 of file gx_parameter.h.
Referenced by reg_enum_par(), reg_filepar(), reg_non_midi_enum_par(), reg_non_midi_par(), reg_par(), reg_par_non_preset(), reg_preset_string(), and reg_string().
|
inline |
Definition at line 564 of file gx_parameter.h.
|
inline |
Definition at line 560 of file gx_parameter.h.
void gx_engine::ParamMap::readJSON | ( | gx_system::JsonParser & | jp | ) |
Parameter * gx_engine::ParamMap::readJSON_one | ( | gx_system::JsonParser & | jp | ) |
|
inline |
Definition at line 609 of file gx_parameter.h.
|
inline |
Definition at line 596 of file gx_parameter.h.
|
inline |
Definition at line 643 of file gx_parameter.h.
|
inline |
Definition at line 602 of file gx_parameter.h.
|
inline |
Definition at line 616 of file gx_parameter.h.
|
inline |
Definition at line 637 of file gx_parameter.h.
|
inline |
Definition at line 632 of file gx_parameter.h.
|
inline |
Definition at line 591 of file gx_parameter.h.
|
inline |
Definition at line 574 of file gx_parameter.h.
|
inline |
Definition at line 586 of file gx_parameter.h.
|
inline |
Definition at line 627 of file gx_parameter.h.
|
inline |
Definition at line 621 of file gx_parameter.h.
|
inline |
Definition at line 580 of file gx_parameter.h.
|
inline |
Definition at line 653 of file gx_parameter.h.
|
inline |
Definition at line 648 of file gx_parameter.h.
void gx_engine::ParamMap::reset_unit | ( | const PluginDef * | pdef | ) | const |
void gx_engine::ParamMap::set_init_values | ( | ) |
|
inline |
Definition at line 559 of file gx_parameter.h.
|
inline |
Definition at line 571 of file gx_parameter.h.
|
private |
bool gx_engine::ParamMap::unit_has_std_values | ( | const PluginDef * | pdef | ) | const |
void gx_engine::ParamMap::unregister | ( | const string & | id | ) |
void gx_engine::ParamMap::unregister | ( | Parameter * | p | ) |
void gx_engine::ParamMap::writeJSON | ( | gx_system::JsonWriter & | jw | ) |
void gx_engine::ParamMap::writeJSON_one | ( | gx_system::JsonWriter & | jw, |
Parameter * | p | ||
) |
|
friend |
Definition at line 547 of file gx_parameter.h.
|
private |
Definition at line 536 of file gx_parameter.h.
Referenced by begin(), end(), hasId(), and operator[]().
|
private |
Definition at line 538 of file gx_parameter.h.
Referenced by signal_insert_remove().
|
private |
Definition at line 537 of file gx_parameter.h.
Referenced by reg_enum_par(), reg_non_midi_par(), reg_par(), reg_par_non_preset(), and set_replace_mode().