QtPdCom  1.3.3
Classes | Signals | Public Member Functions | List of all members
QtPdCom::AbstractScalarVariable Class Reference

Abstract Scalar Value. More...

#include <ScalarVariable.h>

Inheritance diagram for QtPdCom::AbstractScalarVariable:
Inheritance graph
[legend]
Collaboration diagram for QtPdCom::AbstractScalarVariable:
Collaboration graph
[legend]

Classes

struct  Exception
 

Signals

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

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. More...
 
virtual ~ScalarSubscriber ()
 Destructor. More...
 
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. More...
 
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. More...
 
void clearVariable ()
 Unsubscribe from a Variable. More...
 
bool hasVariable () const
 Subscription active. More...
 
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. More...
 
double getFilterConstant () const
 
PdCom::Variable getVariable () const
 
const void * getData () const
 

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.


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