The BLOCKS SDK
PhysicalTopologySource::DeviceConnection Struct Referenceabstract

Description

For custom transport systems, this represents a connected device.

Public Member Functions

 DeviceConnection ()
 
virtual ~DeviceConnection ()
 
virtual bool sendMessageToDevice (const void *data, size_t dataSize)=0
 

Public Attributes

std::function< void(const void *data, size_t dataSize)> handleMessageFromDevice
 

Constructor & Destructor Documentation

◆ DeviceConnection()

PhysicalTopologySource::DeviceConnection::DeviceConnection ( )

◆ ~DeviceConnection()

virtual PhysicalTopologySource::DeviceConnection::~DeviceConnection ( )
virtual

Member Function Documentation

◆ sendMessageToDevice()

virtual bool PhysicalTopologySource::DeviceConnection::sendMessageToDevice ( const void *  data,
size_t  dataSize 
)
pure virtual

Member Data Documentation

◆ handleMessageFromDevice

std::function<void (const void* data, size_t dataSize)> PhysicalTopologySource::DeviceConnection::handleMessageFromDevice

The documentation for this struct was generated from the following file: