| 
							 QtPdCom
								 1.5.0
							 
						 | 
					
Scalar/Vector/Matrix Variant to be used in QML applications. More...
#include <PdVariable.h>


Classes | |
| class | Impl | 
Signals | |
| void | valueChanged () | 
| Emitted, when the value changes, or the variable is disconnected.  More... | |
| void | valueUpdated (std::chrono::nanoseconds mtime) | 
| Emitted also when value does not change but got an update from the msr process.  More... | |
| void | pathChanged (QString) | 
| void | connectionChanged () | 
| void | dataPresentChanged (bool) | 
Public Member Functions | |
| PdVariable (QObject *=Q_NULLPTR) | |
| Constructor.  More... | |
| ~PdVariable () | |
| Destructor.  More... | |
| void | clearVariable () | 
| Unsubscribe from a Variable.  More... | |
| bool | hasVariable () const | 
| Connected state.  More... | |
| void | clearData () | 
| QVariant | getValue () const | 
| Q_INVOKABLE void | setValue (QVariant) | 
| QString | getValueAsString () const | 
| Q_INVOKABLE void | setValueAsString (QString) | 
| bool | getDataPresent () | 
| std::chrono::nanoseconds | getMTime () const | 
| double | getMTimeToDouble () const | 
| PdConnection | getConnection () | 
| void | setConnection (PdConnection const &) | 
| void | updateConnection () | 
| (re)connects to variable  More... | |
| Q_INVOKABLE void | inc () | 
| Increments the current value and writes it to the process.  More... | |
Properties | |
| QtPdCom::PdConnection | connection | 
| Connection property which describes the variable to connect to.  More... | |
| bool | connected | 
| Indicates that the process is connected and data is transfered.  More... | |
| QVariant | value | 
| Process value.  More... | |
| QString | text | 
| Interpret the elements of an process variable array as string.  More... | |
| QVariant | mtime | 
| last modification time of process variable  More... | |
Private Attributes | |
| class Q_DECL_HIDDEN | Impl | 
| std::unique_ptr< Impl > | impl | 
Scalar/Vector/Matrix Variant to be used in QML applications.
| PdVariable::PdVariable | ( | QObject * | parent = Q_NULLPTR | ) | 
Constructor.
| PdVariable::~PdVariable | ( | ) | 
Destructor.
References clearVariable().
| void PdVariable::clearData | ( | ) | 
References dataPresentChanged(), impl, and valueChanged().
Referenced by clearVariable(), and updateConnection().
| void PdVariable::clearVariable | ( | ) | 
Unsubscribe from a Variable.
References clearData(), dataPresentChanged(), and impl.
Referenced by updateConnection(), and ~PdVariable().
      
  | 
  signal | 
Referenced by updateConnection().
      
  | 
  signal | 
| QtPdCom::PdConnection PdVariable::getConnection | ( | ) | 
References impl.
| bool PdVariable::getDataPresent | ( | ) | 
References impl.
| std::chrono::nanoseconds PdVariable::getMTime | ( | ) | const | 
References impl.
| double PdVariable::getMTimeToDouble | ( | ) | const | 
References impl.
| QString PdVariable::getValueAsString | ( | ) | const | 
References impl.
| bool PdVariable::hasVariable | ( | ) | const | 
Connected state.
References impl.
| void PdVariable::inc | ( | ) | 
Increments the current value and writes it to the process.
This does not update value directly.
References getValue(), and setValue().
      
  | 
  signal | 
| void PdVariable::setConnection | ( | QtPdCom::PdConnection const & | conn | ) | 
References impl, and updateConnection().
| void PdVariable::setValue | ( | QVariant | value | ) | 
References impl, setValueAsString(), and value.
Referenced by inc().
| void PdVariable::setValueAsString | ( | QString | value | ) | 
Referenced by setValue().
| void PdVariable::updateConnection | ( | ) | 
(re)connects to variable
Subscribes to a ProcessVariable.
References clearData(), clearVariable(), connectionChanged(), QtPdCom::Process::disconnected(), QtPdCom::Process::error(), and impl.
Referenced by setConnection().
      
  | 
  signal | 
Emitted, when the value changes, or the variable is disconnected.
Referenced by clearData(), QtPdCom::PdVariable::Impl::Subscription::newValues(), and QtPdCom::PdVariable::Impl::Subscription::stateChanged().
      
  | 
  signal | 
Emitted also when value does not change but got an update from the msr process.
Referenced by QtPdCom::PdVariable::Impl::Subscription::newValues().
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  read | 
Indicates that the process is connected and data is transfered.
      
  | 
  readwrite | 
Connection property which describes the variable to connect to.
The default Process instance is accessible via the DefaultProcess singleton which is instantiated when importing the QtPdCom library.
      
  | 
  read | 
last modification time of process variable
      
  | 
  readwrite | 
Interpret the elements of an process variable array as string.
      
  | 
  readwrite | 
Process value.
Referenced by setValue(), and setValueAsString().