StreamManager
StreamManager
#include <icy/streammanager.h>class StreamManagerDefined in src/base/include/icy/streammanager.h:23
Inherits:
string, PacketStream >
Manages a named collection of PacketStream instances with lifecycle callbacks.
List of all members
| Name | Kind | Owner |
|---|---|---|
StreamManager | function | Declared here |
~StreamManager | function | Declared here |
addStream | function | Declared here |
addStream | function | Declared here |
closeStream | function | Declared here |
closeAll | function | Declared here |
getStream | function | Declared here |
getDefaultStream | function | Declared here |
print | function | Declared here |
onAdd | function | Declared here |
onRemove | function | Declared here |
onStreamStateChange | function | Declared here |
className | function | Declared here |
KeyedStore | function | Inherited from KeyedStore |
~KeyedStore | function | Inherited from KeyedStore |
KeyedStore | function | Inherited from KeyedStore |
operator= | function | Inherited from KeyedStore |
KeyedStore | function | Inherited from KeyedStore |
operator= | function | Inherited from KeyedStore |
get | function | Inherited from KeyedStore |
add | function | Inherited from KeyedStore |
tryAdd | function | Inherited from KeyedStore |
put | function | Inherited from KeyedStore |
erase | function | Inherited from KeyedStore |
contains | function | Inherited from KeyedStore |
empty | function | Inherited from KeyedStore |
size | function | Inherited from KeyedStore |
clear | function | Inherited from KeyedStore |
map | function | Inherited from KeyedStore |
map | function | Inherited from KeyedStore |
begin | function | Inherited from KeyedStore |
end | function | Inherited from KeyedStore |
begin | function | Inherited from KeyedStore |
end | function | Inherited from KeyedStore |
_map | variable | Inherited from KeyedStore |
onAdd | function | Inherited from KeyedStore |
onRemove | function | Inherited from KeyedStore |
Map | typedef | Inherited from KeyedStore |
Inherited from KeyedStore
| Kind | Name | Description |
|---|---|---|
function | KeyedStore | Defaulted constructor. |
function | ~KeyedStore virtual inline | |
function | KeyedStore | Deleted constructor. |
function | operator= | Deleted assignment operator. |
function | KeyedStore | Defaulted constructor. |
function | operator= | Defaulted assignment operator. |
function | get const inline | Returns the item for key, or nullptr if not found. |
function | add inline | Inserts a uniquely owned item. Returns a reference to the stored item. |
function | tryAdd inline | Inserts if absent; returns false on duplicate (never throws). |
function | put inline | Inserts or replaces the item under key. |
function | erase inline | Removes and destroys the item under key. |
function | contains const inline | |
function | empty const inline | |
function | size const inline | |
function | clear inline | |
function | map inline | Direct map access for iteration. |
function | map const inline | |
function | begin inline | |
function | end inline | |
function | begin const inline | |
function | end const inline | |
variable | _map | |
function | onAdd virtual inline | Override for lifecycle reactions. |
function | onRemove virtual inline | |
typedef | Map |
Public Methods
| Return | Name | Description |
|---|---|---|
StreamManager | ||
bool | addStream | |
bool | addStream | |
bool | closeStream | |
void | closeAll | |
PacketStream * | getStream const | |
PacketStream * | getDefaultStream const | |
void | print const |
StreamManager
StreamManager()Defined in src/base/include/icy/streammanager.h:26
addStream
bool addStream(PacketStream * stream, bool whiny = true)Defined in src/base/include/icy/streammanager.h:29
addStream
bool addStream(std::unique_ptr< PacketStream > stream, bool whiny = true)Defined in src/base/include/icy/streammanager.h:30
closeStream
bool closeStream(const std::string & name, bool whiny = true)Defined in src/base/include/icy/streammanager.h:31
closeAll
void closeAll()Defined in src/base/include/icy/streammanager.h:32
getStream
const
PacketStream * getStream(const std::string & name, bool whiny = true) constDefined in src/base/include/icy/streammanager.h:34
getDefaultStream
const
PacketStream * getDefaultStream() constDefined in src/base/include/icy/streammanager.h:35
const
void print(std::ostream & os) constDefined in src/base/include/icy/streammanager.h:37
Protected Methods
| Return | Name | Description |
|---|---|---|
void | onAdd virtual override | Override for lifecycle reactions. |
void | onRemove virtual override | |
void | onStreamStateChange | |
constchar * | className virtual const inline |
onAdd
virtual override
virtual void onAdd(const std::string &, PacketStream *) overrideDefined in src/base/include/icy/streammanager.h:40
Override for lifecycle reactions.
Reimplements
onRemove
virtual override
virtual void onRemove(const std::string &, PacketStream * stream) overrideDefined in src/base/include/icy/streammanager.h:41
Reimplements
onStreamStateChange
void onStreamStateChange(void * sender, PacketStreamState & state, constPacketStreamState &)Defined in src/base/include/icy/streammanager.h:43
className
virtual const inline
virtual inline constchar * className() const