Guitarix
gx_engine::ParamMap Class Reference

#include <gx_parameter.h>

Inheritance diagram for gx_engine::ParamMap:
Collaboration diagram for gx_engine::ParamMap:

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)
 
ParameterreadJSON_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)
 
Parameteroperator[] (const string &id)
 
Parameteroperator[] (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)
 
FloatParameterreg_par (const string &id, const string &name, float *var, float std, float lower, float upper, float step)
 
FloatParameterreg_par_non_preset (const string &id, const string &name, float *var, float std, float lower, float upper, float step)
 
FloatParameterreg_par (const string &id, const string &name, float *var, float std=0)
 
BoolParameterreg_par (const string &id, const string &name, bool *var, bool std=false, bool preset=true)
 
EnumParameterreg_enum_par (const string &id, const string &name, const value_pair *vl, int *var, int std=0)
 
EnumParameterreg_non_midi_enum_par (const string &id, const string &name, const value_pair *vl, int *var, bool preset, int std=0)
 
FloatEnumParameterreg_enum_par (const string &id, const string &name, const value_pair *vl, float *var, int std=0, int low=0)
 
BoolParameterreg_non_midi_par (const string &id, bool *var, bool preset, bool std=false)
 
IntParameterreg_non_midi_par (const string &id, int *var, bool preset, int std, int lower, int upper)
 
FloatParameterreg_non_midi_par (const string &id, float *val, bool preset, float std=0, float lower=0, float upper=1, float step=0)
 
FileParameterreg_filepar (const string &id, bool preset=false)
 
StringParameterreg_string (const string &id, const string &name, Glib::ustring *var, const string &sv, bool preset=false)
 
StringParameterreg_preset_string (const string &id, const string &name, Glib::ustring *var, const string &sv, bool preset=true)
 
void dump (const string &fmt)
 

Friends

template<class T >
class ParameterV
 

Detailed Description

Definition at line 511 of file gx_parameter.h.

Member Typedef Documentation

typedef map<string, Parameter*>::const_iterator gx_engine::ParamMap::iterator

Definition at line 531 of file gx_parameter.h.

Constructor & Destructor Documentation

gx_engine::ParamMap::ParamMap ( )

Definition at line 1740 of file gx_paramtable.cpp.

gx_engine::ParamMap::~ParamMap ( )

Definition at line 1745 of file gx_paramtable.cpp.

Member Function Documentation

void gx_engine::ParamMap::dump ( const string &  fmt)

Definition at line 1842 of file gx_paramtable.cpp.

Referenced by gx_engine::GxMachine::~GxMachine().

bool gx_engine::ParamMap::hasId ( const char *  p) const
inline

Definition at line 535 of file gx_parameter.h.

Parameter& gx_engine::ParamMap::operator[] ( const string &  id)
inline

Definition at line 537 of file gx_parameter.h.

Parameter& gx_engine::ParamMap::operator[] ( const char *  p)
inline

Definition at line 541 of file gx_parameter.h.

void gx_engine::ParamMap::readJSON ( gx_system::JsonParser jp)

Definition at line 1815 of file gx_paramtable.cpp.

Referenced by gx_engine::GxMachineRemote::GxMachineRemote().

Parameter * gx_engine::ParamMap::readJSON_one ( gx_system::JsonParser jp)

Definition at line 1789 of file gx_paramtable.cpp.

Referenced by readJSON(), and gx_engine::GxMachineRemote::save_ladspalist().

EnumParameter* gx_engine::ParamMap::reg_enum_par ( const string &  id,
const string &  name,
const value_pair vl,
int *  var,
int  std = 0 
)
inline
FloatEnumParameter* gx_engine::ParamMap::reg_enum_par ( const string &  id,
const string &  name,
const value_pair vl,
float *  var,
int  std = 0,
int  low = 0 
)
inline

Definition at line 586 of file gx_parameter.h.

FileParameter* gx_engine::ParamMap::reg_filepar ( const string &  id,
bool  preset = false 
)
inline

Definition at line 609 of file gx_parameter.h.

EnumParameter* gx_engine::ParamMap::reg_non_midi_enum_par ( const string &  id,
const string &  name,
const value_pair vl,
int *  var,
bool  preset,
int  std = 0 
)
inline

Definition at line 579 of file gx_parameter.h.

Referenced by gx_engine::GxMachine::GxMachine().

BoolParameter* gx_engine::ParamMap::reg_non_midi_par ( const string &  id,
bool *  var,
bool  preset,
bool  std = false 
)
inline
IntParameter* gx_engine::ParamMap::reg_non_midi_par ( const string &  id,
int *  var,
bool  preset,
int  std,
int  lower,
int  upper 
)
inline

Definition at line 598 of file gx_parameter.h.

FloatParameter* gx_engine::ParamMap::reg_non_midi_par ( const string &  id,
float *  val,
bool  preset,
float  std = 0,
float  lower = 0,
float  upper = 1,
float  step = 0 
)
inline

Definition at line 603 of file gx_parameter.h.

FloatParameter* gx_engine::ParamMap::reg_par ( const string &  id,
const string &  name,
float *  var,
float  std,
float  lower,
float  upper,
float  step 
)
inline
FloatParameter* gx_engine::ParamMap::reg_par ( const string &  id,
const string &  name,
float *  var,
float  std = 0 
)
inline

Definition at line 563 of file gx_parameter.h.

BoolParameter* gx_engine::ParamMap::reg_par ( const string &  id,
const string &  name,
bool *  var,
bool  std = false,
bool  preset = true 
)
inline

Definition at line 568 of file gx_parameter.h.

FloatParameter* gx_engine::ParamMap::reg_par_non_preset ( const string &  id,
const string &  name,
float *  var,
float  std,
float  lower,
float  upper,
float  step 
)
inline

Definition at line 557 of file gx_parameter.h.

Referenced by gx_engine::GxMachine::GxMachine().

StringParameter* gx_engine::ParamMap::reg_preset_string ( const string &  id,
const string &  name,
Glib::ustring *  var,
const string &  sv,
bool  preset = true 
)
inline

Definition at line 619 of file gx_parameter.h.

StringParameter* gx_engine::ParamMap::reg_string ( const string &  id,
const string &  name,
Glib::ustring *  var,
const string &  sv,
bool  preset = false 
)
inline

Definition at line 614 of file gx_parameter.h.

Referenced by gx_engine::GxMachine::GxMachine().

void gx_engine::ParamMap::reset_unit ( const PluginDef pdef) const
void gx_engine::ParamMap::set_init_values ( )
void gx_engine::ParamMap::set_replace_mode ( bool  mode)
inline
sigc::signal<void,Parameter*,bool> gx_engine::ParamMap::signal_insert_remove ( )
inline

Definition at line 548 of file gx_parameter.h.

Referenced by GxService::GxService().

bool gx_engine::ParamMap::unit_has_std_values ( const PluginDef pdef) const
void gx_engine::ParamMap::unregister ( const string &  id)
void gx_engine::ParamMap::writeJSON ( gx_system::JsonWriter jw)

Definition at line 1781 of file gx_paramtable.cpp.

void gx_engine::ParamMap::writeJSON_one ( gx_system::JsonWriter jw,
Parameter p 
)

Definition at line 1751 of file gx_paramtable.cpp.

Referenced by GxService::send_rack_changed(), and writeJSON().

Friends And Related Function Documentation

template<class T >
friend class ParameterV
friend

Definition at line 524 of file gx_parameter.h.


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