QtPdCom  1.3.3
Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | List of all members
QtPdCom::Transmission Class Reference

Transmission mode for subscriptions. More...

#include <Transmission.h>

Public Member Functions

constexpr double getInterval () const noexcept
 
template<typename T , typename R >
constexpr Transmission (std::chrono::duration< T, R > d)
 
constexpr Transmission (event_mode_tag) noexcept
 
constexpr Transmission (poll_mode_tag, double interval)
 
constexpr Transmission (const Poll &poll)
 
bool operator== (const Transmission &o) const noexcept
 
constexpr bool isContinuous () const
 
constexpr bool isPoll () const
 
PdCom::Transmission toPdCom () const
 
QString toString () const
 

Private Types

enum  { Poll = -1, Event, Continuous }
 

Static Private Member Functions

static constexpr double checkInterval (double d)
 

Private Attributes

enum QtPdCom::Transmission:: { ... }  mode_
 
double interval_
 

Detailed Description

Transmission mode for subscriptions.

This class specifies whether a subscription should be updated periodically, event-based or by polling only.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
Poll 
Event 
Continuous 

Constructor & Destructor Documentation

◆ Transmission() [1/4]

template<typename T , typename R >
constexpr QtPdCom::Transmission::Transmission ( std::chrono::duration< T, R >  d)
inline

◆ Transmission() [2/4]

constexpr QtPdCom::Transmission::Transmission ( event_mode_tag  )
inlinenoexcept

◆ Transmission() [3/4]

constexpr QtPdCom::Transmission::Transmission ( poll_mode_tag  ,
double  interval 
)
inline

◆ Transmission() [4/4]

constexpr QtPdCom::Transmission::Transmission ( const Poll poll)
inline

Member Function Documentation

◆ checkInterval()

static constexpr double QtPdCom::Transmission::checkInterval ( double  d)
inlinestaticprivate

◆ getInterval()

constexpr double QtPdCom::Transmission::getInterval ( ) const
inlinenoexcept

◆ isContinuous()

constexpr bool QtPdCom::Transmission::isContinuous ( ) const
inline

◆ isPoll()

constexpr bool QtPdCom::Transmission::isPoll ( ) const
inline

◆ operator==()

bool QtPdCom::Transmission::operator== ( const Transmission o) const
inlinenoexcept

◆ toPdCom()

PdCom::Transmission Transmission::toPdCom ( ) const

◆ toString()

QString Transmission::toString ( ) const

Member Data Documentation

◆ interval_

double QtPdCom::Transmission::interval_
private

Referenced by toPdCom(), and toString().

◆ mode_

enum { ... } QtPdCom::Transmission::mode_

Referenced by toPdCom(), and toString().


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