A stream state that can hold any number of sessions. More...
#include <MultiStreamState.h>
Public Member Functions | |
bool | AreClientsListening () |
void | ClearSessions () final |
void | ConnectSession (std::shared_ptr< Session > session) final |
void | DisableForROS () |
void | DisconnectSession (std::shared_ptr< Session > session) final |
void | EnableForROS () |
void | ForceActive () |
bool | IsEnabledForROS () |
MultiStreamState (const token_type &token) | |
template<typename... Buffers> | |
void | Write (Buffers... buffers) |
Public Member Functions inherited from carla::streaming::detail::StreamStateBase | |
Buffer | MakeBuffer () |
StreamStateBase (const token_type &token) | |
const token_type & | token () const |
virtual | ~StreamStateBase () |
Private Attributes | |
bool | _enabled_for_ros {false} |
bool | _force_active {false} |
std::mutex | _mutex |
AtomicSharedPtr< Session > | _session |
std::vector< std::shared_ptr< Session > > | _sessions |
A stream state that can hold any number of sessions.
Definition at line 25 of file MultiStreamState.h.
|
inline |
Definition at line 30 of file MultiStreamState.h.
|
inline |
Definition at line 77 of file MultiStreamState.h.
References _enabled_for_ros, _force_active, and _sessions.
|
inlinefinalvirtual |
Implements carla::streaming::detail::StreamStateBase.
Definition at line 119 of file MultiStreamState.h.
References _force_active, _mutex, _session, _sessions, and carla::log_debug().
|
inlinefinalvirtual |
Implements carla::streaming::detail::StreamStateBase.
Definition at line 81 of file MultiStreamState.h.
References _mutex, _session, _sessions, DEBUG_ASSERT, and carla::log_debug().
|
inline |
Definition at line 69 of file MultiStreamState.h.
References _enabled_for_ros.
|
inlinefinalvirtual |
Implements carla::streaming::detail::StreamStateBase.
Definition at line 94 of file MultiStreamState.h.
References _force_active, _mutex, _session, _sessions, DEBUG_ASSERT, and carla::log_debug().
|
inline |
Definition at line 65 of file MultiStreamState.h.
References _enabled_for_ros.
|
inline |
Definition at line 61 of file MultiStreamState.h.
References _force_active.
|
inline |
Definition at line 73 of file MultiStreamState.h.
References _enabled_for_ros.
|
inline |
Definition at line 36 of file MultiStreamState.h.
References _mutex, _session, _sessions, carla::log_debug(), and carla::streaming::detail::tcp::ServerSession::MakeMessage().
|
private |
Definition at line 141 of file MultiStreamState.h.
Referenced by AreClientsListening(), DisableForROS(), EnableForROS(), and IsEnabledForROS().
|
private |
Definition at line 140 of file MultiStreamState.h.
Referenced by AreClientsListening(), ClearSessions(), DisconnectSession(), and ForceActive().
|
private |
Definition at line 134 of file MultiStreamState.h.
Referenced by ClearSessions(), ConnectSession(), DisconnectSession(), and Write().
|
private |
Definition at line 137 of file MultiStreamState.h.
Referenced by ClearSessions(), ConnectSession(), DisconnectSession(), and Write().
|
private |
Definition at line 139 of file MultiStreamState.h.
Referenced by AreClientsListening(), ClearSessions(), ConnectSession(), DisconnectSession(), and Write().