DAQ  1.0.0
Data Acquisition System (basic demo)
Signals | Public Member Functions | Properties | Static Private Member Functions | Private Attributes | List of all members
VarValuesModel Class Reference

#include <varvaluesmodel.h>

Inheritance diagram for VarValuesModel:
Inheritance graph
[legend]
Collaboration diagram for VarValuesModel:
Collaboration graph
[legend]

Signals

void valsChanged ()
 

Public Member Functions

 VarValuesModel (Client *cl, QObject *parent=nullptr)
 
QQmlListProperty< VarValueModelgetVals ()
 
Q_INVOKABLE void getValues (QString var, qint64 s, qint64 e)
 

Properties

QQmlListProperty< VarValueModelvals
 

Static Private Member Functions

static void add_val (decltype(m_qml_vals)*, decltype(m_vals)::value_type *)
 
static decltype(m_vals)::value_type * val_at (decltype(m_qml_vals)*property, int index)
 
static int vals_size (decltype(m_qml_vals)*property)
 
static void clear_vals (decltype(m_qml_vals)*)
 

Private Attributes

Clientm_cl
 
std::chrono::system_clock::time_point m_now
 
std::vector< VarValueModelm_vals
 
QQmlListProperty< decltype(m_vals)::value_type > m_qml_vals
 

Constructor & Destructor Documentation

VarValuesModel::VarValuesModel ( Client cl,
QObject parent = nullptr 
)

Member Function Documentation

static void VarValuesModel::add_val ( decltype(m_qml_vals)*  ,
decltype(m_vals)::value_type *   
)
inlinestaticprivate
static void VarValuesModel::clear_vals ( decltype(m_qml_vals)*  )
inlinestaticprivate

Here is the call graph for this function:

Here is the caller graph for this function:

QQmlListProperty<VarValueModel> VarValuesModel::getVals ( )
inline

Here is the call graph for this function:

Q_INVOKABLE void VarValuesModel::getValues ( QString  var,
qint64  s,
qint64  e 
)
static decltype(m_vals) ::value_type* VarValuesModel::val_at ( decltype(m_qml_vals)*  property,
int  index 
)
inlinestaticprivate

Here is the call graph for this function:

static int VarValuesModel::vals_size ( decltype(m_qml_vals)*  property)
inlinestaticprivate

Here is the call graph for this function:

void VarValuesModel::valsChanged ( )
signal

Member Data Documentation

Client* VarValuesModel::m_cl
private
std::chrono::system_clock::time_point VarValuesModel::m_now
private
QQmlListProperty<decltype(m_vals)::value_type> VarValuesModel::m_qml_vals
private
std::vector<VarValueModel> VarValuesModel::m_vals
private

Property Documentation

QQmlListProperty<VarValueModel> VarValuesModel::vals
read

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