PacketStreamState
PacketStreamState
#include <icy/packetstream.h>struct PacketStreamStateDefined in src/base/include/icy/packetstream.h:228
Inherits:
State
State machine states for PacketStream.
List of all members
| Name | Kind | Owner |
|---|---|---|
str | function | Declared here |
None | variable | Declared here |
Locked | variable | Declared here |
Active | variable | Declared here |
Paused | variable | Declared here |
Stopping | variable | Declared here |
Stopped | variable | Declared here |
Closed | variable | Declared here |
Error | variable | 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 override |
str
const inline override
inline std::string str(unsigned int id) const overrideDefined in src/base/include/icy/packetstream.h:254
Public Static Attributes
| Return | Name | Description |
|---|---|---|
constexpr unsigned int | None static constexpr | |
constexpr unsigned int | Locked static constexpr | |
constexpr unsigned int | Active static constexpr | |
constexpr unsigned int | Paused static constexpr | |
constexpr unsigned int | Stopping static constexpr | |
constexpr unsigned int | Stopped static constexpr | |
constexpr unsigned int | Closed static constexpr | |
constexpr unsigned int | Error 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
| Name | Description |
|---|---|
Type |
Type
enum TypeDefined in src/base/include/icy/packetstream.h:230
| Value | Description |
|---|---|
None | |
Locked | |
Active | |
Paused | |
Stopping | |
Stopped | |
Closed | |
Error |
