Serial Studio 1.1.6
A dashboard software for your embedded projects
|
#include <Group.h>
Public Member Functions | |
~Group () | |
QString | title () const |
QString | widget () const |
int | datasetCount () const |
QVector< Dataset > & | datasets () |
bool | read (const QJsonObject &object) |
Q_INVOKABLE const JSON::Dataset & | getDataset (const int index) const |
Private Attributes | |
QString | m_title |
QString | m_widget |
QVector< Dataset > | m_datasets |
Friends | |
class | Editor |
class | UI::Dashboard |
The Group class.
The group class represents a set of datasets that are related together (e.g. they correspond to the same category).
Some special widgets, such as the accelerometer, the map or the gyroscope are generated using groups instead of datasets. For example, an accelerometer widget is constructed with a group with the following datasets:
A group contains the following properties:
JSON::Group::~Group | ( | ) |
Destructor function
int JSON::Group::datasetCount | ( | ) | const |
QVector< JSON::Dataset > & JSON::Group::datasets | ( | ) |
const JSON::Dataset & JSON::Group::getDataset | ( | const int | index | ) | const |
Q_NULLPTR
on invalid index bool JSON::Group::read | ( | const QJsonObject & | object | ) |
Reads the group information and all its asociated datasets from the given JSON object
.
true
on success, false
on failure QString JSON::Group::title | ( | ) | const |
QString JSON::Group::widget | ( | ) | const |
|
friend |
|
friend |
|
private |
|
private |
|
private |