31#ifndef DW_FRAMEWORK_ICHANNELFACTORY_HPP_
32#define DW_FRAMEWORK_ICHANNELFACTORY_HPP_
49class ChannelFactoryImpl;
95 std::shared_ptr<ChannelObject>
makeChannel(
const char* channelParams);
146 dw::core::Optional<ChannelEvent>
popEvent(dwTime_t timeout);
163 std::shared_ptr<ChannelFactoryImpl> m_pimpl;
NvSciSyncModule getNvSciSyncModule()
virtual ~ChannelFactory()=default
void setPriority(int32_t priority)
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, OnDataReady onDataReady)> OnDispatchDataReady
void setAffinity(uint32_t affinity)
void setOnDispatchDataReady(OnDispatchDataReady dispatchDataReady)
static void registerPacketConstructor(const ChannelPacketConstructorSignature &signature, const ChannelPacketConstructor &constructor)
dw::core::Optional< ChannelEvent > popEvent(dwTime_t timeout)
dw::core::Optional< ChannelError > popError()
ChannelPacketFactoryPtr getPacketFactory()
void setFsiComCreateOverrider(std::function< std::shared_ptr< IChannelFsiCom >(uint8_t, const char *)> &&overrider)
std::pair< ChannelPacketTypeID, ChannelType > ChannelPacketConstructorSignature
std::shared_ptr< IChannelPacketFactory > ChannelPacketFactoryPtr
dw::core::Function< std::unique_ptr< IChannelPacket >(GenericData dataSpecimen, dwContextHandle_t context)> ChannelPacketConstructor
std::pair< ChannelPacketConstructorSignature, ChannelPacketConstructor > ChannelPacketConstructorRegistration
dw::core::Function< void()> OnDataReady