QtPdCom  1.5.2
QtPdCom::AbstractScalarVariable Class Reference

Abstract Scalar Value. More...

#include <ScalarVariable.h>

Inheritance diagram for QtPdCom::AbstractScalarVariable:
Collaboration diagram for QtPdCom::AbstractScalarVariable:

Classes

struct  Exception

Signals

void valueChanged ()
 Emitted, when the value changes, or the variable is disconnected.

Public Member Functions

template<typename T>
std::enable_if< std::is_arithmetic< T >::value, void >::type copyData (T &dest) const
Public Member Functions inherited from QtPdCom::ScalarSubscriber
 ScalarSubscriber ()
 Constructor.
virtual ~ScalarSubscriber ()
 Destructor.
void setVariable (PdCom::Variable pv, const PdCom::Selector &selector={}, const Transmission &=event_mode, double scale=1.0, double offset=0.0, double tau=0.0)
 Subscribe to a process variable via variable.
void setVariable (PdCom::Process *process, const QString &path, const PdCom::Selector &selector={}, const Transmission &=event_mode, double scale=1.0, double offset=0.0, double tau=0.0)
 Subscribe to a process variable via process and path.
void clearVariable ()
 Unsubscribe from a Variable.
bool hasVariable () const
 Subscription active.
virtual void newValues (std::chrono::nanoseconds)=0
virtual void stateChange (PdCom::Subscription::State)
template<class T>
void writeValue (T)
 Write a value to the process.
double getFilterConstant () const
PdCom::Variable getVariable () const
const void * getData () const
Q_INVOKABLE bool poll ()
 Poll an active subscription.

Additional Inherited Members

Protected Member Functions inherited from QtPdCom::ScalarSubscriber
const PdCom::Selector & getSelector () const
Protected Attributes inherited from QtPdCom::ScalarSubscriber
double scale
double offset

Detailed Description

Abstract Scalar Value.

Member Function Documentation

◆ copyData()

template<typename T>
std::enable_if< std::is_arithmetic< T >::value, void >::type QtPdCom::AbstractScalarVariable::copyData ( T & dest) const
inline

◆ valueChanged

void QtPdCom::AbstractScalarVariable::valueChanged ( )
signal

Emitted, when the value changes, or the variable is disconnected.

Referenced by QtPdCom::ScalarVariable< T >::clearData(), and QtPdCom::ScalarVariable< T >::newValues().


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