Home
Base module

StreamManager

Manages a named collection of PacketStream instances with lifecycle callbacks.

StreamManager

#include <icy/streammanager.h>
class StreamManager

Defined 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

NameKindOwner
StreamManagerfunctionDeclared here
~StreamManagerfunctionDeclared here
addStreamfunctionDeclared here
addStreamfunctionDeclared here
closeStreamfunctionDeclared here
closeAllfunctionDeclared here
getStreamfunctionDeclared here
getDefaultStreamfunctionDeclared here
printfunctionDeclared here
onAddfunctionDeclared here
onRemovefunctionDeclared here
onStreamStateChangefunctionDeclared here
classNamefunctionDeclared here
KeyedStorefunctionInherited from KeyedStore
~KeyedStorefunctionInherited from KeyedStore
KeyedStorefunctionInherited from KeyedStore
operator=functionInherited from KeyedStore
KeyedStorefunctionInherited from KeyedStore
operator=functionInherited from KeyedStore
getfunctionInherited from KeyedStore
addfunctionInherited from KeyedStore
tryAddfunctionInherited from KeyedStore
putfunctionInherited from KeyedStore
erasefunctionInherited from KeyedStore
containsfunctionInherited from KeyedStore
emptyfunctionInherited from KeyedStore
sizefunctionInherited from KeyedStore
clearfunctionInherited from KeyedStore
mapfunctionInherited from KeyedStore
mapfunctionInherited from KeyedStore
beginfunctionInherited from KeyedStore
endfunctionInherited from KeyedStore
beginfunctionInherited from KeyedStore
endfunctionInherited from KeyedStore
_mapvariableInherited from KeyedStore
onAddfunctionInherited from KeyedStore
onRemovefunctionInherited from KeyedStore
MaptypedefInherited from KeyedStore

Inherited from KeyedStore

KindNameDescription
functionKeyedStoreDefaulted constructor.
function~KeyedStore virtual inline
functionKeyedStoreDeleted constructor.
functionoperator=Deleted assignment operator.
functionKeyedStoreDefaulted constructor.
functionoperator=Defaulted assignment operator.
functionget const inlineReturns the item for key, or nullptr if not found.
functionadd inlineInserts a uniquely owned item. Returns a reference to the stored item.
functiontryAdd inlineInserts if absent; returns false on duplicate (never throws).
functionput inlineInserts or replaces the item under key.
functionerase inlineRemoves and destroys the item under key.
functioncontains const inline
functionempty const inline
functionsize const inline
functionclear inline
functionmap inlineDirect map access for iteration.
functionmap const inline
functionbegin inline
functionend inline
functionbegin const inline
functionend const inline
variable_map
functiononAdd virtual inlineOverride for lifecycle reactions.
functiononRemove virtual inline
typedefMap

Public Methods

ReturnNameDescription
StreamManager
booladdStream
booladdStream
boolcloseStream
voidcloseAll
PacketStream *getStream const
PacketStream *getDefaultStream const
voidprint 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) const

Defined in src/base/include/icy/streammanager.h:34


getDefaultStream

const

PacketStream * getDefaultStream() const

Defined in src/base/include/icy/streammanager.h:35


print

const

void print(std::ostream & os) const

Defined in src/base/include/icy/streammanager.h:37

Protected Methods

ReturnNameDescription
voidonAdd virtual overrideOverride for lifecycle reactions.
voidonRemove virtual override
voidonStreamStateChange
constchar *className virtual const inline

onAdd

virtual override

virtual void onAdd(const std::string &, PacketStream *) override

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

Override for lifecycle reactions.

Reimplements

onRemove

virtual override

virtual void onRemove(const std::string &, PacketStream * stream) override

Defined 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

Defined in src/base/include/icy/streammanager.h:45