|
Model Railroad System 2.2.2
|
Raildriver Client class – connects to the Raildriver daemon. More...
Public Member Functions | |
| RaildriverClient (name,...) | |
| Construct a RaildriverClient object. More... | |
| ~RaildriverClient () | |
| close the connection. More... | |
| clear () | |
| Send a CLEAR message to the daemon. More... | |
| mask (...) | |
| Send a MASK message to the daemon. More... | |
| leds (ledstring) | |
| Send a LED message to the daemon. More... | |
| speaker (onoff) | |
| Turn the speaker on or off. More... | |
Private Member Functions | |
| _readevent () | |
| Handle messages from the daemon. More... | |
| _poller () | |
| Polling function. More... | |
Private Attributes | |
| socket | |
| The socket descriptor connected to the daemon. More... | |
| pollid | |
| Holds the poll after id. More... | |
Raildriver Client class – connects to the Raildriver daemon.
Polls at interals for Raildriver input events.
Options:
| raildriver::RaildriverClient::RaildriverClient | ( | name | , |
| ... | |||
| ) |
Construct a RaildriverClient object.
| raildriver::RaildriverClient::~RaildriverClient | ( | ) |
close the connection.
|
private |
Polling function.
|
private |
Handle messages from the daemon.
| raildriver::RaildriverClient::clear | ( | ) |
Send a CLEAR message to the daemon.
| raildriver::RaildriverClient::leds | ( | ledstring | ) |
Send a LED message to the daemon.
| ledstring | Led string to display. |
| raildriver::RaildriverClient::mask | ( | ... | ) |
Send a MASK message to the daemon.
| ... | Mask values |
| raildriver::RaildriverClient::speaker | ( | onoff | ) |
Turn the speaker on or off.
| onoff | Boolean indicating on (true) or off (false). |
|
private |
Holds the poll after id.
|
private |
The socket descriptor connected to the daemon.