#include <CoLaCommand.h>
Public Member Functions | |
| CoLaCommand (std::vector< uint8_t > buffer) | |
| Construct a new CoLaCommand from the given data buffer. More... | |
| const std::vector< uint8_t > & | getBuffer () |
| Get the binary data buffer. More... | |
| CoLaError::Enum | getError () |
| Get error. More... | |
| const char * | getName () |
| Get the name of command. More... | |
| size_t | getParameterOffset () |
| Get offset in bytes to where first parameter starts. More... | |
| CoLaCommandType::Enum | getType () |
| Get the type of command. More... | |
| ~CoLaCommand () | |
Static Public Member Functions | |
| static CoLaCommand | networkErrorCommand () |
| Create a command for network errors. More... | |
Private Member Functions | |
| CoLaCommand (CoLaCommandType::Enum commandType, CoLaError::Enum error, const char *name) | |
| Construct a new CoLaCommand with the given command type, error, and name, but without any data. More... | |
Private Attributes | |
| std::vector< uint8_t > | m_buffer |
| CoLaError::Enum | m_error |
| std::string | m_name |
| size_t | m_parameterOffset |
| CoLaCommandType::Enum | m_type |
Definition at line 32 of file CoLaCommand.h.
|
private |
Construct a new CoLaCommand with the given command type, error, and name, but without any data.
Definition at line 29 of file CoLaCommand.cpp.
| visionary::CoLaCommand::CoLaCommand | ( | std::vector< uint8_t > | buffer | ) |
Construct a new CoLaCommand from the given data buffer.
Definition at line 38 of file CoLaCommand.cpp.
| visionary::CoLaCommand::~CoLaCommand | ( | ) |
Definition at line 91 of file CoLaCommand.cpp.
| const std::vector< uint8_t > & visionary::CoLaCommand::getBuffer | ( | ) |
Get the binary data buffer.
Definition at line 93 of file CoLaCommand.cpp.
| CoLaError::Enum visionary::CoLaCommand::getError | ( | ) |
Get error.
Definition at line 113 of file CoLaCommand.cpp.
| const char * visionary::CoLaCommand::getName | ( | ) |
Get the name of command.
Definition at line 103 of file CoLaCommand.cpp.
| size_t visionary::CoLaCommand::getParameterOffset | ( | ) |
Get offset in bytes to where first parameter starts.
Definition at line 108 of file CoLaCommand.cpp.
| CoLaCommandType::Enum visionary::CoLaCommand::getType | ( | ) |
Get the type of command.
Definition at line 98 of file CoLaCommand.cpp.
|
static |
Create a command for network errors.
Definition at line 118 of file CoLaCommand.cpp.
|
private |
Definition at line 35 of file CoLaCommand.h.
|
private |
Definition at line 39 of file CoLaCommand.h.
|
private |
Definition at line 37 of file CoLaCommand.h.
|
private |
Definition at line 38 of file CoLaCommand.h.
|
private |
Definition at line 36 of file CoLaCommand.h.