31#ifndef DW_FRAMEWORK_ICHANNELFACTORY_HPP_
32#define DW_FRAMEWORK_ICHANNELFACTORY_HPP_
36#include <dw/core/health/HealthSignals.h>
48class ChannelFactoryImpl;
108 std::shared_ptr<ChannelObject>
makeChannel(
const char* channelParams);
153 std::shared_ptr<ChannelFactoryImpl> m_pimpl;
NvSciSyncModule getNvSciSyncModule()
virtual ~ChannelFactory()=default
ChannelFactory(dwContextHandle_t ctx=DW_NULL_HANDLE)
Construct a new Channel Factory object.
std::shared_ptr< ChannelObject > makeChannel(const char *channelParams)
static void unregisterPacketConstructor(const ChannelPacketConstructorSignature &signature)
dw::core::Function< void(void *opaque, ChannelObject::PacketPool::OnDataReady)> OnDispatchDataReady
void setOnDispatchDataReady(OnDispatchDataReady dispatchDataReady)
static void registerPacketConstructor(const ChannelPacketConstructorSignature &signature, const ChannelPacketConstructor &constructor)
bool getEvent(ChannelEvent &event, dwTime_t timeout)
ChannelPacketFactoryPtr getPacketFactory()
dw::core::Function< void()> OnDataReady
std::pair< ChannelPacketTypeID, ChannelType > ChannelPacketConstructorSignature
std::shared_ptr< IChannelPacketFactory > ChannelPacketFactoryPtr
dwErrorSignal errorSignal
The error signal. Only valid for type=ERROR.
void * opaque
The opaque pointer set for the channel tthat is ready. Only valid for type=READY.
@ DISCONNECTED
Channel became disconnected.
@ CONNECTED
Channel became connected.
@ ERROR
Channel encountered error.
dw::core::Function< std::unique_ptr< IChannelPacket >(GenericData dataSpecimen, dwContextHandle_t context)> ChannelPacketConstructor
std::pair< ChannelPacketConstructorSignature, ChannelPacketConstructor > ChannelPacketConstructorRegistration
uint32_t uid
unique identifier of the channel
ChannelObject::PacketPool::OnDataReady onDataReady
The callback set for the channel that is ready. Only valid for type=READY.
ChannelEventType type
The type of the event.