stamina info message encoder
More...
#include <say_message_builder.h>
|
| StaminaMessage (const double &stamina) |
| construct with raw information More...
|
|
char | header () const |
| get the header character of this message More...
|
|
int | length () const |
| get the length of this message More...
|
|
bool | appendTo (std::string &to) const |
| append this info to the audio message More...
|
|
std::ostream & | printDebug (std::ostream &os) const |
| append the debug message More...
|
|
virtual | ~SayMessage ()=default |
| virtual destruct. do nothing.
|
|
virtual char | header () const =0 |
| pure virtual method. get the header character of this message More...
|
|
virtual int | length () const =0 |
| pure virtual method. get the length of this message More...
|
|
virtual bool | appendTo (std::string &to) const =0 |
| append an audio message to the string More...
|
|
virtual std::ostream & | printDebug (std::ostream &os) const =0 |
| append the debug message More...
|
|
|
typedef std::shared_ptr< const SayMessage > | Ptr |
| definition of the smart pointer type.
|
|
| SayMessage ()=default |
| protected constructer
|
|
stamina info message encoder
format: "s<rate:1>" the length of message == 2
◆ StaminaMessage()
rcsc::StaminaMessage::StaminaMessage |
( |
const double & |
stamina | ) |
|
|
inlineexplicit |
construct with raw information
- Parameters
-
◆ appendTo()
bool rcsc::StaminaMessage::appendTo |
( |
std::string & |
to | ) |
const |
|
virtual |
append this info to the audio message
- Parameters
-
to | reference to the message string instance |
- Returns
- result status of encoding
Implements rcsc::SayMessage.
◆ header()
char rcsc::StaminaMessage::header |
( |
| ) |
const |
|
inlinevirtual |
get the header character of this message
- Returns
- header character of this message
Implements rcsc::SayMessage.
◆ length()
int rcsc::StaminaMessage::length |
( |
| ) |
const |
|
inlinevirtual |
get the length of this message
- Returns
- the length of encoded message
Implements rcsc::SayMessage.
◆ printDebug()
std::ostream & rcsc::StaminaMessage::printDebug |
( |
std::ostream & |
os | ) |
const |
|
virtual |
append the debug message
- Parameters
-
os | reference to the output stream |
- Returns
- reference to the output stream
Implements rcsc::SayMessage.
◆ slength()
static int rcsc::StaminaMessage::slength |
( |
| ) |
|
|
inlinestatic |
get the length of this message.
- Returns
- the length of encoded message
The documentation for this class was generated from the following file: