Container model of sensor channels.
More...
#include <projecteditor.h>
List of all members.
Detailed Description
Container model of sensor channels.
Member Enumeration Documentation
- Enumerator:
FieldSensorId |
|
FieldSensorChannelNr |
|
FieldSensorCustomName |
|
Constructor & Destructor Documentation
SensorChannelModel::SensorChannelModel |
( |
QObject * |
parent = 0 |
) |
[inline] |
: SqlQueryModel(parent), sens_id(0){
setDependency("tbl_sensor_channel_calibrations");
setDependency("tbl_sensor_channels");
defaultQuery = QString("SELECT '#' || sens_chan_nr || ': ' || sens_chan_name || COALESCE(' [' || (SELECT count(*) || ' calibrations: last @ ' || max(sens_chan_cali_timestamp) || ']' FROM tbl_sensor_channel_calibrations scc WHERE scc.sens_id = c.sens_id AND scc.sens_chan_nr = c.sens_chan_nr)::text, ' [Never calibrated]'), "
"sens_id, sens_chan_nr, "
"sens_type || ' (' || sens_serialnr || ')' "
"FROM tbl_sensor_channels c "
"INNER JOIN tbl_sensors s USING (sens_id) ");
unconstrain();
}
Member Function Documentation
int SensorChannelModel::constraint |
( |
|
) |
[inline] |
void SensorChannelModel::setConstraint |
( |
const int & |
sens_id |
) |
[inline] |
void SensorChannelModel::unconstrain |
( |
|
) |
[inline] |
The documentation for this class was generated from the following file: