BufferStatus mixin class. More...
#include <BufferStatus.h>

Public Types | |
| enum | Enum { BUFFER_OK = 0, BUFFER_ERROR, BUFFER_FULL, BUFFER_EMPTY, NOT_SUPPORTED, TIMEOUT, PRECONDITION_NOT_MET } |
| DataPortStatus return codes. More... | |
Static Public Member Functions | |
| static const char * | toString (Enum status) |
| Convert BufferStatus into the string. More... | |
BufferStatus mixin class.
This is a mixin class to provide enumed return codes that are commonly utilised in buffer realted sub-classes. To use this class, sub-class should inherit this class as a public super class, and declare BUFFERSTATUS_ENUM defined below. Consequently, ReturnCode_t type that is typedefed by this macro can be used in the sub-class, and enumed identifiers are imported to the class's namespace.
Definition at line 52 of file BufferStatus.h.
DataPortStatus return codes.
Common return codes for buffer classes.
| Enumerator | |
|---|---|
| BUFFER_OK | |
| BUFFER_ERROR | |
| BUFFER_FULL | |
| BUFFER_EMPTY | |
| NOT_SUPPORTED | |
| TIMEOUT | |
| PRECONDITION_NOT_MET | |
Definition at line 84 of file BufferStatus.h.
|
inlinestatic |
Convert BufferStatus into the string.
Convert BufferStatus into the string.
| status | The target BufferStatus for transformation |
Definition at line 118 of file BufferStatus.h.