|
Mcalc
0.1
a machinist's calculator
|
#include <interface.hpp>


Public Member Functions | |
| DummyInterface (std::string s) | |
| std::string | get_value () |
| void | set_value (std::string s) |
| void | set_column (std::string n) |
| std::string | get_column () |
| void | notify (Event *e) |
| void | broadcast () |
Public Member Functions inherited from mc::Interface | |
| Interface () | |
| virtual | ~Interface () |
| void | set_column (std::string n) |
| std::string | get_column () |
Public Member Functions inherited from mc::Subscriber | |
| Subscriber () | |
| virtual | ~Subscriber () |
Additional Inherited Members | |
Protected Attributes inherited from mc::Interface | |
| Broadcaster * | broadcaster |
| DataStore * | data |
| std::string | column_name |
An empty implementation of Interface that wraps a constant string value. Used for plugging gaps in a path in the datastore when there isn't a UI element for the value.
| mc::DummyInterface::DummyInterface | ( | std::string | s | ) |
Constructor sets the value of the Interface.
| s | The constant value to use. |
| void mc::DummyInterface::broadcast | ( | ) |
Generates a change event and sends it to Broadcaster.
| std::string mc::DummyInterface::get_column | ( | ) |
Get the column value.
|
virtual |
Returns a string representation of the current value of the Interface.
Implements mc::Interface.
|
virtual |
Update the Interface about change events. Used by broadcaster.
| e | The event object |
Implements mc::Subscriber.
| void mc::DummyInterface::set_column | ( | std::string | n | ) |
Set the column name that this input maps to.
| n | The name of the column |
|
virtual |
Sets the current value of the interface.
Implements mc::Interface.
1.8.11