Mcalc
0.1
a machinist's calculator
|
#include <interface.hpp>
Public Member Functions | |
Interface () | |
virtual | ~Interface () |
virtual std::string | get_value ()=0 |
virtual void | set_value (std::string s)=0 |
void | set_column (std::string n) |
std::string | get_column () |
![]() | |
Subscriber () | |
virtual | ~Subscriber () |
virtual void | notify (Event *e)=0 |
Protected Attributes | |
Broadcaster * | broadcaster |
DataStore * | data |
std::string | column_name |
The abstract base class for Sliders, ComboBoxText etc.
mc::Interface::Interface | ( | ) |
Constructor
|
virtual |
Virtual destructor
std::string mc::Interface::get_column | ( | ) |
Get the name of the column that this Interface refers to, if none is set, get empty string.
|
pure virtual |
Returns a string representation of the current value of the Interface. Subclass must implement.
Implemented in mc::Slider, mc::DummyInterface, mc::Output, mc::ComboBoxText, mc::Spinner, and mc::FileChooserButton.
void mc::Interface::set_column | ( | std::string | n | ) |
|
pure virtual |
Set the value of the Interface.
Implemented in mc::Slider, mc::DummyInterface, mc::Output, mc::Spinner, mc::ComboBoxText, and mc::FileChooserButton.
|
protected |
Pointer to the broadcaster instance
|
protected |
Name of column in database if this Interface refers to one
|
protected |
Pointer to the datastore