Serial Studio 1.1.6
A dashboard software for your embedded projects
|
#include <Dataset.h>
Public Member Functions | |
Dataset () | |
bool | fft () const |
bool | led () const |
bool | log () const |
int | index () const |
bool | graph () const |
double | min () const |
double | max () const |
double | alarm () const |
QString | title () const |
QString | value () const |
QString | units () const |
QString | widget () const |
int | fftSamples () const |
QJsonObject | jsonData () const |
bool | read (const QJsonObject &object) |
Private Attributes | |
bool | m_fft |
bool | m_led |
bool | m_log |
bool | m_graph |
QString | m_title |
QString | m_value |
QString | m_units |
QString | m_widget |
QJsonObject | m_jsonData |
int | m_index |
double | m_max |
double | m_min |
double | m_alarm |
int | m_fftSamples |
Friends | |
class | Editor |
The Dataset class.
The dataset class represents the properties and values of an individual data unit.
For example, supose that you are reading the values of a temperature sensor. In this case, the dataset could have the following values:
Description for each field of the dataset class:
JSON::Dataset::Dataset | ( | ) |
double JSON::Dataset::alarm | ( | ) | const |
Returns the alarm level of the dataset
bool JSON::Dataset::fft | ( | ) | const |
true
if the UI should generate a FFT plot of this dataset int JSON::Dataset::fftSamples | ( | ) | const |
Returns the maximum freq. for the FFT transform
bool JSON::Dataset::graph | ( | ) | const |
true
if the UI should graph this dataset int JSON::Dataset::index | ( | ) | const |
QJsonObject JSON::Dataset::jsonData | ( | ) | const |
Returns the JSON data that represents this widget
bool JSON::Dataset::led | ( | ) | const |
true
if the UI should generate a LED of this dataset bool JSON::Dataset::log | ( | ) | const |
true
if the UI should generate a logarithmic plot of this dataset double JSON::Dataset::max | ( | ) | const |
Returns the maximum value of the dataset
double JSON::Dataset::min | ( | ) | const |
Returns the minimum value of the dataset
bool JSON::Dataset::read | ( | const QJsonObject & | object | ) |
Reads dataset information from the given object and evaluates any JS code in the "value" field of the dataset.
true
on read success, false
on failure QString JSON::Dataset::title | ( | ) | const |
QString JSON::Dataset::units | ( | ) | const |
QString JSON::Dataset::value | ( | ) | const |
QString JSON::Dataset::widget | ( | ) | const |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |