DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
DynExp::QSerialCommunicationHardwareAdapter::QSerialCommunicationHardwareAdapterWorkerOnlyType Class Reference

Allow exclusive access to some of QSerialCommunicationHardwareAdapter's private methods to QSerialCommunicationHardwareAdapterWorkerOnlyType. More...

Private Member Functions

constexpr QSerialCommunicationHardwareAdapterWorkerOnlyType (QSerialCommunicationHardwareAdapter &Parent) noexcept
 Construcs an instance - one for each QSerialCommunicationHardwareAdapter instance.
 
void SetCommunicationChannelOpened () const noexcept
 Sets CommunicationChannelOpened to true.
 
void SetCommunicationChannelClosed () const noexcept
 Sets CommunicationChannelOpened to false.
 
void DataRead (const std::string &String) const
 Passes data to the hardware adapter which has been received by the worker instance.
 
template<typename ExceptionType >
void SetException (const ExceptionType &Exception) const
 Sets Exception as PendingException and stores it by calling HardwareAdapterBase::SetExceptionUnsafe().
 

Private Attributes

QSerialCommunicationHardwareAdapter & Parent
 Owning QSerialCommunicationHardwareAdapter instance.
 

Friends

class QSerialCommunicationHardwareAdapter
 
class QSerialCommunicationHardwareAdapterWorker
 

Detailed Description

Allow exclusive access to some of QSerialCommunicationHardwareAdapter's private methods to QSerialCommunicationHardwareAdapterWorkerOnlyType.

Definition at line 637 of file HardwareAdapter.h.

Constructor & Destructor Documentation

◆ QSerialCommunicationHardwareAdapterWorkerOnlyType()

constexpr DynExp::QSerialCommunicationHardwareAdapter::QSerialCommunicationHardwareAdapterWorkerOnlyType::QSerialCommunicationHardwareAdapterWorkerOnlyType ( QSerialCommunicationHardwareAdapter &  Parent)
inlineconstexprprivatenoexcept

Construcs an instance - one for each QSerialCommunicationHardwareAdapter instance.

Parameters
ParentOwning QSerialCommunicationHardwareAdapter instance

Definition at line 646 of file HardwareAdapter.h.

Member Function Documentation

◆ DataRead()

void DynExp::QSerialCommunicationHardwareAdapter::QSerialCommunicationHardwareAdapterWorkerOnlyType::DataRead ( const std::string &  String) const
inlineprivate

Passes data to the hardware adapter which has been received by the worker instance.

Parameters
StringString read by the worker instance

Definition at line 650 of file HardwareAdapter.h.

◆ SetCommunicationChannelClosed()

void DynExp::QSerialCommunicationHardwareAdapter::QSerialCommunicationHardwareAdapterWorkerOnlyType::SetCommunicationChannelClosed ( ) const
inlineprivatenoexcept

Sets CommunicationChannelOpened to false.

Definition at line 649 of file HardwareAdapter.h.

◆ SetCommunicationChannelOpened()

void DynExp::QSerialCommunicationHardwareAdapter::QSerialCommunicationHardwareAdapterWorkerOnlyType::SetCommunicationChannelOpened ( ) const
inlineprivatenoexcept

Sets CommunicationChannelOpened to true.

Definition at line 648 of file HardwareAdapter.h.

◆ SetException()

template<typename ExceptionType >
void DynExp::QSerialCommunicationHardwareAdapter::QSerialCommunicationHardwareAdapterWorkerOnlyType::SetException ( const ExceptionType &  Exception) const
inlineprivate

Sets Exception as PendingException and stores it by calling HardwareAdapterBase::SetExceptionUnsafe().

Template Parameters
ExceptionTypeType of the exception to be stored
Parameters
ExceptionException to be stores

Definition at line 656 of file HardwareAdapter.h.

Friends And Related Symbol Documentation

◆ QSerialCommunicationHardwareAdapter

Definition at line 639 of file HardwareAdapter.h.

◆ QSerialCommunicationHardwareAdapterWorker

Definition at line 640 of file HardwareAdapter.h.

Member Data Documentation

◆ Parent

QSerialCommunicationHardwareAdapter& DynExp::QSerialCommunicationHardwareAdapter::QSerialCommunicationHardwareAdapterWorkerOnlyType::Parent
private

Owning QSerialCommunicationHardwareAdapter instance.

Definition at line 658 of file HardwareAdapter.h.


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