|
gusimplewhiteboard
|
Provides a C++ wrapper around wb_microwave_status.
More...
#include <MicrowaveStatus.hpp>
Public Member Functions | |
| MicrowaveStatus (bool t_timeLeft=true, bool t_doorOpen=true, bool t_buttonPushed=true) | |
Create a new MicrowaveStatus. More... | |
| MicrowaveStatus (const MicrowaveStatus &t_other) | |
| Copy Constructor. More... | |
| MicrowaveStatus (const struct wb_microwave_status &t_other) | |
| Copy Constructor. More... | |
| MicrowaveStatus & | operator= (const MicrowaveStatus &t_other) |
| Copy Assignment Operator. More... | |
| MicrowaveStatus & | operator= (const struct wb_microwave_status &t_other) |
| Copy Assignment Operator. More... | |
| bool | operator== (const MicrowaveStatus &t_other) const |
| bool | operator!= (const MicrowaveStatus &t_other) const |
| bool | operator== (const wb_microwave_status &t_other) const |
| bool | operator!= (const wb_microwave_status &t_other) const |
| bool & | timeLeft () |
| const bool & | timeLeft () const |
| void | set_timeLeft (const bool &t_newValue) |
| bool & | doorOpen () |
| const bool & | doorOpen () const |
| void | set_doorOpen (const bool &t_newValue) |
| bool & | buttonPushed () |
| const bool & | buttonPushed () const |
| void | set_buttonPushed (const bool &t_newValue) |
| MicrowaveStatus (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 | |
Public Attributes inherited from wb_microwave_status | |
| bool | timeLeft |
| Is the timer at zero? More... | |
| bool | doorOpen |
| Is the door open? More... | |
| bool | buttonPushed |
| Has the button been pushed? More... | |
Provides a C++ wrapper around wb_microwave_status.
Definition at line 83 of file MicrowaveStatus.hpp.
|
inline |
Create a new MicrowaveStatus.
Definition at line 101 of file MicrowaveStatus.hpp.
Referenced by operator==().
|
inline |
Copy Constructor.
Definition at line 108 of file MicrowaveStatus.hpp.
References buttonPushed(), doorOpen(), and timeLeft().
|
inline |
Copy Constructor.
Definition at line 115 of file MicrowaveStatus.hpp.
References wb_microwave_status::buttonPushed, wb_microwave_status::doorOpen, and wb_microwave_status::timeLeft.
|
inline |
|
inline |
Definition at line 187 of file MicrowaveStatus.hpp.
References wb_microwave_status::buttonPushed.
Referenced by MicrowaveStatus(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 192 of file MicrowaveStatus.hpp.
References wb_microwave_status::buttonPushed.
|
inline |
USE_WB_MICROWAVE_STATUS_C_CONVERSION
Definition at line 211 of file MicrowaveStatus.hpp.
References buttonPushed(), doorOpen(), MICROWAVE_STATUS_DESC_BUFFER_SIZE, timeLeft(), and wb_microwave_status_description().
|
inline |
Definition at line 172 of file MicrowaveStatus.hpp.
References wb_microwave_status::doorOpen.
Referenced by MicrowaveStatus(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 177 of file MicrowaveStatus.hpp.
References wb_microwave_status::doorOpen.
|
inline |
USE_WB_MICROWAVE_STATUS_C_CONVERSION
Definition at line 249 of file MicrowaveStatus.hpp.
References MICROWAVE_STATUS_DESC_BUFFER_SIZE, set_buttonPushed(), set_doorOpen(), and set_timeLeft().
Referenced by MicrowaveStatus().
|
inline |
Definition at line 142 of file MicrowaveStatus.hpp.
|
inline |
Definition at line 152 of file MicrowaveStatus.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 122 of file MicrowaveStatus.hpp.
References buttonPushed(), doorOpen(), and timeLeft().
|
inline |
Copy Assignment Operator.
Definition at line 130 of file MicrowaveStatus.hpp.
References wb_microwave_status::buttonPushed, wb_microwave_status::doorOpen, and wb_microwave_status::timeLeft.
|
inline |
Definition at line 135 of file MicrowaveStatus.hpp.
References buttonPushed(), doorOpen(), and timeLeft().
|
inline |
Definition at line 147 of file MicrowaveStatus.hpp.
References MicrowaveStatus().
|
inline |
Definition at line 197 of file MicrowaveStatus.hpp.
References wb_microwave_status::buttonPushed.
Referenced by from_string().
|
inline |
Definition at line 182 of file MicrowaveStatus.hpp.
References wb_microwave_status::doorOpen.
Referenced by from_string().
|
inline |
Definition at line 167 of file MicrowaveStatus.hpp.
References wb_microwave_status::timeLeft.
Referenced by from_string().
|
inline |
Definition at line 157 of file MicrowaveStatus.hpp.
References wb_microwave_status::timeLeft.
Referenced by MicrowaveStatus(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 162 of file MicrowaveStatus.hpp.
References wb_microwave_status::timeLeft.
|
inline |
USE_WB_MICROWAVE_STATUS_C_CONVERSION
Definition at line 228 of file MicrowaveStatus.hpp.
References buttonPushed(), doorOpen(), MICROWAVE_STATUS_TO_STRING_BUFFER_SIZE, timeLeft(), and wb_microwave_status_to_string().