tobicore
7.0.0
|
Language model. More...
#include <tobicore/TCLanguage.hpp>
Public Member Functions | |
std::string | Status (const int component, const int status, const int fidx=TCBlock::BlockIdxUnset) |
Creates a status message. | |
bool | CheckVersion (const std::string &message) |
Checks if message is compatible. | |
bool | IsStatus (const std::string &message, int *component, int *status, int *fidx) |
std::string | GetComponent (int component) |
std::string | GetStatus (int component) |
Static Public Attributes | |
static const int | IA = 1 |
TOBI iA. | |
static const int | IB = 2 |
TOBI iB. | |
static const int | IC = 3 |
TOBI iC. | |
static const int | ID = 4 |
TOBI iD. | |
static const int | Ready = 1 |
Ready return code. | |
static const int | Quit = 2 |
Quit return code. | |
static const int | ErrorGeneric = -1 |
Generic error code. | |
static const int | ErrorNotSupported = -2 |
Not-supported error code. |
bool TCLanguage::CheckVersion | ( | const std::string & | message | ) |
Checks if message is compatible.
Checks if a status message is compatible.
Definition at line 39 of file TCLanguage.cpp.
std::string TCLanguage::GetComponent | ( | int | component | ) |
std::string TCLanguage::GetStatus | ( | int | component | ) |
bool TCLanguage::IsStatus | ( | const std::string & | message, |
int * | component, | ||
int * | status, | ||
int * | fidx | ||
) |
Definition at line 45 of file TCLanguage.cpp.
std::string TCLanguage::Status | ( | const int | component, |
const int | status, | ||
const int | fidx = TCBlock::BlockIdxUnset |
||
) |
Creates a status message.
Definition at line 28 of file TCLanguage.cpp.