Base module
TransactionState
State machine states for PacketTransaction.
TransactionState
#include <icy/packettransaction.h>struct TransactionStateDefined in src/base/include/icy/packettransaction.h:27
Inherits:
State
State machine states for PacketTransaction.
List of all members
| Name | Kind | Owner |
|---|---|---|
str | function | Declared here |
Type | enum | Declared here |
operator<< | friend | Inherited from State |
State | function | Inherited from State |
State | function | Inherited from State |
operator= | function | Inherited from State |
~State | function | Inherited from State |
id | function | Inherited from State |
set | function | Inherited from State |
str | function | Inherited from State |
toString | function | Inherited from State |
equals | function | Inherited from State |
between | function | Inherited from State |
operator== | function | Inherited from State |
operator== | function | Inherited from State |
_id | variable | Inherited from State |
ID | typedef | Inherited from State |
Inherited from State
| Kind | Name | Description |
|---|---|---|
friend | operator<< inline | |
function | State | |
function | State | Copy constructor. |
function | operator= | Copy assignment. |
function | ~State virtual | Defaulted destructor. |
function | id const | Returns the current state ID. |
function | set | Sets the state ID. |
function | str virtual const | Returns a human-readable string for the given state ID. Override in derived classes to provide meaningful names. |
function | toString virtual const | Returns a human-readable string for the current state ID. |
function | equals const | Returns true if the current state ID equals the given ID. |
function | between const | Returns true if the current state ID is in the inclusive range [lid, rid]. |
function | operator== const inline | |
function | operator== const inline | |
variable | _id | |
typedef | ID |
Public Methods
| Return | Name | Description |
|---|---|---|
std::string | str const inline |
str
const inline
inline std::string str(unsigned int id) constDefined in src/base/include/icy/packettransaction.h:40
Parameters
idA[TransactionState::Type](#type-2)value.
Returns
Human-readable name of the state.
Public Types
| Name | Description |
|---|---|
Type |
Type
enum TypeDefined in src/base/include/icy/packettransaction.h:29
| Value | Description |
|---|---|
Waiting | |
Running | |
Success | |
Cancelled | |
Failed |
