Home
Base module

PacketStreamState

State machine states for PacketStream.

PacketStreamState

#include <icy/packetstream.h>
struct PacketStreamState

Defined in src/base/include/icy/packetstream.h:228

Inherits: State

State machine states for PacketStream.

List of all members

NameKindOwner
strfunctionDeclared here
NonevariableDeclared here
LockedvariableDeclared here
ActivevariableDeclared here
PausedvariableDeclared here
StoppingvariableDeclared here
StoppedvariableDeclared here
ClosedvariableDeclared here
ErrorvariableDeclared 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 override

str

const inline override

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

Defined in src/base/include/icy/packetstream.h:254

Public Static Attributes

ReturnNameDescription
constexpr unsigned intNone static constexpr
constexpr unsigned intLocked static constexpr
constexpr unsigned intActive static constexpr
constexpr unsigned intPaused static constexpr
constexpr unsigned intStopping static constexpr
constexpr unsigned intStopped static constexpr
constexpr unsigned intClosed static constexpr
constexpr unsigned intError static constexpr

None

static constexpr

constexpr unsigned int None = static_cast<unsigned int>(Type::None)

Defined in src/base/include/icy/packetstream.h:245


Locked

static constexpr

constexpr unsigned int Locked = static_cast<unsigned int>(Type::Locked)

Defined in src/base/include/icy/packetstream.h:246


Active

static constexpr

constexpr unsigned int Active = static_cast<unsigned int>(Type::Active)

Defined in src/base/include/icy/packetstream.h:247


Paused

static constexpr

constexpr unsigned int Paused = static_cast<unsigned int>(Type::Paused)

Defined in src/base/include/icy/packetstream.h:248


Stopping

static constexpr

constexpr unsigned int Stopping = static_cast<unsigned int>(Type::Stopping)

Defined in src/base/include/icy/packetstream.h:249


Stopped

static constexpr

constexpr unsigned int Stopped = static_cast<unsigned int>(Type::Stopped)

Defined in src/base/include/icy/packetstream.h:250


Closed

static constexpr

constexpr unsigned int Closed = static_cast<unsigned int>(Type::Closed)

Defined in src/base/include/icy/packetstream.h:251


Error

static constexpr

constexpr unsigned int Error = static_cast<unsigned int>(Type::Error)

Defined in src/base/include/icy/packetstream.h:252

Public Types

NameDescription
Type

Type

enum Type

Defined in src/base/include/icy/packetstream.h:230

ValueDescription
None
Locked
Active
Paused
Stopping
Stopped
Closed
Error