gusimplewhiteboard
|
Provides a C++ wrapper around wb_buttons
.
More...
#include <Buttons.hpp>
Public Member Functions | |
Buttons (bool t_button1Pushed=false, bool t_button2Pushed=false) | |
Create a new Buttons . More... | |
Buttons (const Buttons &t_other) | |
Copy Constructor. More... | |
Buttons (const struct wb_buttons &t_other) | |
Copy Constructor. More... | |
Buttons & | operator= (const Buttons &t_other) |
Copy Assignment Operator. More... | |
Buttons & | operator= (const struct wb_buttons &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const Buttons &t_other) const |
bool | operator!= (const Buttons &t_other) const |
bool | operator== (const wb_buttons &t_other) const |
bool | operator!= (const wb_buttons &t_other) const |
bool & | button1Pushed () |
const bool & | button1Pushed () const |
void | set_button1Pushed (const bool &t_newValue) |
bool & | button2Pushed () |
const bool & | button2Pushed () const |
void | set_button2Pushed (const bool &t_newValue) |
Buttons (const std::string &t_str) | |
String Constructor. More... | |
std::string | description () |
std::string | to_string () |
void | from_string (const std::string &t_str) |
Additional Inherited Members | |
![]() | |
bool | button1Pushed |
The first button. More... | |
bool | button2Pushed |
The second button. More... | |
Provides a C++ wrapper around wb_buttons
.
Definition at line 83 of file Buttons.hpp.
|
inline |
|
inline |
Copy Constructor.
Definition at line 107 of file Buttons.hpp.
References button1Pushed(), and button2Pushed().
|
inline |
Copy Constructor.
Definition at line 114 of file Buttons.hpp.
References wb_buttons::button1Pushed, and wb_buttons::button2Pushed.
|
inline |
|
inline |
Definition at line 155 of file Buttons.hpp.
References wb_buttons::button1Pushed.
Referenced by Buttons(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 160 of file Buttons.hpp.
References wb_buttons::button1Pushed.
|
inline |
Definition at line 170 of file Buttons.hpp.
References wb_buttons::button2Pushed.
Referenced by Buttons(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 175 of file Buttons.hpp.
References wb_buttons::button2Pushed.
|
inline |
USE_WB_BUTTONS_C_CONVERSION
Definition at line 194 of file Buttons.hpp.
References button1Pushed(), button2Pushed(), BUTTONS_DESC_BUFFER_SIZE, and wb_buttons_description().
|
inline |
USE_WB_BUTTONS_C_CONVERSION
Definition at line 228 of file Buttons.hpp.
References BUTTONS_DESC_BUFFER_SIZE, set_button1Pushed(), and set_button2Pushed().
Referenced by Buttons().
|
inline |
Definition at line 140 of file Buttons.hpp.
|
inline |
Definition at line 150 of file Buttons.hpp.
Copy Assignment Operator.
Definition at line 121 of file Buttons.hpp.
References button1Pushed(), and button2Pushed().
|
inline |
Copy Assignment Operator.
Definition at line 129 of file Buttons.hpp.
References wb_buttons::button1Pushed, and wb_buttons::button2Pushed.
|
inline |
Definition at line 134 of file Buttons.hpp.
References button1Pushed(), and button2Pushed().
|
inline |
Definition at line 145 of file Buttons.hpp.
References Buttons().
|
inline |
Definition at line 165 of file Buttons.hpp.
References wb_buttons::button1Pushed.
Referenced by from_string().
|
inline |
Definition at line 180 of file Buttons.hpp.
References wb_buttons::button2Pushed.
Referenced by from_string().
|
inline |
USE_WB_BUTTONS_C_CONVERSION
Definition at line 209 of file Buttons.hpp.
References button1Pushed(), button2Pushed(), BUTTONS_TO_STRING_BUFFER_SIZE, and wb_buttons_to_string().