Guitarix
gx_engine::ParameterV< bool > Class Template Reference

#include <gx_parameter.h>

Inheritance diagram for gx_engine::ParameterV< bool >:
Collaboration diagram for gx_engine::ParameterV< bool >:

Public Member Functions

bool set (bool val) const
 
virtual void stdJSON_value ()
 
bool get_value () const
 
virtual bool on_off_value ()
 
virtual void writeJSON (gx_system::JsonWriter &jw) const
 
virtual bool compareJSON_value ()
 
virtual void setJSON_value ()
 
virtual void readJSON_value (gx_system::JsonParser &jp)
 
 ParameterV (const string &id, const string &name, ctrl_type ctp, bool preset, bool *v, bool sv, bool ctrl)
 
 ~ParameterV ()
 
 ParameterV (gx_system::JsonParser &jp)
 
virtual void serializeJSON (gx_system::JsonWriter &jw)
 
sigc::signal< void, bool > & signal_changed ()
 
- Public Member Functions inherited from gx_engine::Parameter
std::string group_id () const
 
 Parameter (const string &id, const string &name, value_type vtp, ctrl_type ctp, bool preset, bool ctrl)
 
 Parameter (gx_system::JsonParser &jp)
 
virtual ~Parameter ()
 
bool isUsed () const
 
void setUsed ()
 
void dump (gx_system::JsonWriter *jw)
 
const char * get_typename () const
 
bool isFloat () const
 
bool isInt () const
 
bool isBool () const
 
bool isFile () const
 
bool isString () const
 
ctrl_type getControlType () const
 
bool isControllable () const
 
bool isInPreset () const
 
bool isSavable () const
 
void setSavable (bool v)
 
const string & id () const
 
const string & group () const
 
string l_group () const
 
const string & name () const
 
string l_name () const
 
const string & desc () const
 
void set_desc (const string &desc)
 
string l_desc () const
 
void set_log_display ()
 
bool is_log_display ()
 
void set_blocked (bool v)
 
bool get_blocked ()
 
void set_midi_blocked (bool v)
 
bool get_midi_blocked ()
 
bool operator== (const Parameter &p) const
 
virtual bool hasRange () const
 
virtual float getLowerAsFloat () const
 
virtual float getUpperAsFloat () const
 
virtual float getStepAsFloat () const
 
virtual const value_pairgetValueNames () const
 
FloatParametergetFloat ()
 
IntParametergetInt ()
 
EnumParametergetEnum ()
 
BoolParametergetBool ()
 
FileParametergetFile ()
 
StringParametergetString ()
 
sigc::signal< void, float > & signal_changed_float ()
 
sigc::signal< void, int > & signal_changed_int ()
 
sigc::signal< void, bool > & signal_changed_bool ()
 
sigc::signal< void, const Glib::ustring & > & signal_changed_string ()
 

Protected Attributes

bool json_value
 
bool * value
 
bool std_value
 
sigc::signal< void, bool > changed
 
bool value_storage
 
- Protected Attributes inherited from gx_engine::Parameter
string _id
 
string _name
 
string _group
 
string _desc
 
enum value_type v_type: 3
 
enum ctrl_type c_type: 3
 
unsigned int d_flags: 2
 
bool save_in_preset: 1
 
bool controllable: 1
 
bool do_not_save: 1
 
bool blocked: 1
 
bool midi_blocked: 1
 
bool used: 1
 

Additional Inherited Members

- Public Types inherited from gx_engine::Parameter
enum  ctrl_type { None, Continuous, Switch, Enum }
 
- Static Public Member Functions inherited from gx_engine::Parameter
static const char * value_label (const value_pair &vp)
 
- Protected Types inherited from gx_engine::Parameter
enum  value_type {
  tp_float, tp_int, tp_bool, tp_file,
  tp_string, tp_special
}
 
enum  display_flags { dtp_normal, dtp_log = 1 }
 
- Protected Member Functions inherited from gx_engine::Parameter
void range_warning (float value, float lower, float upper)
 
- Static Protected Member Functions inherited from gx_engine::Parameter
static gx_system::JsonParserjp_next (gx_system::JsonParser &jp, const char *key)
 

Detailed Description

template<>
class gx_engine::ParameterV< bool >

Definition at line 347 of file gx_parameter.h.

Constructor & Destructor Documentation

◆ ParameterV() [1/2]

gx_engine::ParameterV< bool >::ParameterV ( const string &  id,
const string &  name,
ctrl_type  ctp,
bool  preset,
bool *  v,
bool  sv,
bool  ctrl 
)
inline

Definition at line 366 of file gx_parameter.h.

◆ ~ParameterV()

gx_engine::BoolParameter::~ParameterV ( )

Definition at line 1491 of file gx_paramtable.cpp.

◆ ParameterV() [2/2]

gx_engine::BoolParameter::ParameterV ( gx_system::JsonParser jp)

Definition at line 1477 of file gx_paramtable.cpp.

Member Function Documentation

◆ compareJSON_value()

bool gx_engine::BoolParameter::compareJSON_value ( )
virtual

Implements gx_engine::Parameter.

Definition at line 1544 of file gx_paramtable.cpp.

◆ get_value()

◆ on_off_value()

bool gx_engine::BoolParameter::on_off_value ( )
virtual

Implements gx_engine::Parameter.

Definition at line 1503 of file gx_paramtable.cpp.

◆ readJSON_value()

void gx_engine::BoolParameter::readJSON_value ( gx_system::JsonParser jp)
virtual

Implements gx_engine::Parameter.

Definition at line 1536 of file gx_paramtable.cpp.

◆ serializeJSON()

void gx_engine::BoolParameter::serializeJSON ( gx_system::JsonWriter jw)
virtual

Reimplemented from gx_engine::Parameter.

Definition at line 1469 of file gx_paramtable.cpp.

◆ set()

◆ setJSON_value()

void gx_engine::BoolParameter::setJSON_value ( )
virtual

Implements gx_engine::Parameter.

Definition at line 1548 of file gx_paramtable.cpp.

◆ signal_changed()

◆ stdJSON_value()

void gx_engine::BoolParameter::stdJSON_value ( )
virtual

Implements gx_engine::Parameter.

Definition at line 1528 of file gx_paramtable.cpp.

◆ writeJSON()

void gx_engine::BoolParameter::writeJSON ( gx_system::JsonWriter jw) const
virtual

Implements gx_engine::Parameter.

Definition at line 1532 of file gx_paramtable.cpp.

Member Data Documentation

◆ changed

sigc::signal<void, bool> gx_engine::ParameterV< bool >::changed
protected

Definition at line 355 of file gx_parameter.h.

◆ json_value

bool gx_engine::ParameterV< bool >::json_value
protected

Definition at line 352 of file gx_parameter.h.

◆ std_value

bool gx_engine::ParameterV< bool >::std_value
protected

Definition at line 354 of file gx_parameter.h.

◆ value

bool* gx_engine::ParameterV< bool >::value
protected

Definition at line 353 of file gx_parameter.h.

◆ value_storage

bool gx_engine::ParameterV< bool >::value_storage
protected

Definition at line 356 of file gx_parameter.h.


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