Home
Base module

TransactionState

State machine states for PacketTransaction.

TransactionState

#include <icy/packettransaction.h>
struct TransactionState

Defined in src/base/include/icy/packettransaction.h:27

Inherits: State

State machine states for PacketTransaction.

List of all members

NameKindOwner
strfunctionDeclared here
TypeenumDeclared here
operator<<friendInherited from State
StatefunctionInherited from State
StatefunctionInherited from State
operator=functionInherited from State
~StatefunctionInherited from State
idfunctionInherited from State
setfunctionInherited from State
strfunctionInherited from State
toStringfunctionInherited from State
equalsfunctionInherited from State
betweenfunctionInherited from State
operator==functionInherited from State
operator==functionInherited from State
_idvariableInherited from State
IDtypedefInherited from State

Inherited from State

KindNameDescription
friendoperator<< inline
functionState
functionStateCopy constructor.
functionoperator=Copy assignment.
function~State virtualDefaulted destructor.
functionid constReturns the current state ID.
functionsetSets the state ID.
functionstr virtual constReturns a human-readable string for the given state ID. Override in derived classes to provide meaningful names.
functiontoString virtual constReturns a human-readable string for the current state ID.
functionequals constReturns true if the current state ID equals the given ID.
functionbetween constReturns true if the current state ID is in the inclusive range [lid, rid].
functionoperator== const inline
functionoperator== const inline
variable_id
typedefID

Public Methods

ReturnNameDescription
std::stringstr const inline

str

const inline

inline std::string str(unsigned int id) const

Defined in src/base/include/icy/packettransaction.h:40

Parameters

  • id A [TransactionState::Type](#type-2) value.

Returns

Human-readable name of the state.

Public Types

NameDescription
Type

Type

enum Type

Defined in src/base/include/icy/packettransaction.h:29

ValueDescription
Waiting
Running
Success
Cancelled
Failed