/// bind values to passed statement void FanCoilUnitScene::bindToStatement(sqlite3pp::statement &aStatement, int &aIndex, const char *aParentIdentifier, uint64_t aCommonFlags) { inherited::bindToStatement(aStatement, aIndex, aParentIdentifier, aCommonFlags); // bind the fields aStatement.bind(aIndex++, powerState); aStatement.bind(aIndex++, (int)operationMode); }
// bind values to passed statement void SensorBehaviour::bindToStatement(sqlite3pp::statement &aStatement, int &aIndex, const char *aParentIdentifier, uint64_t aCommonFlags) { inherited::bindToStatement(aStatement, aIndex, aParentIdentifier, aCommonFlags); // bind the fields aStatement.bind(aIndex++, sensorGroup); aStatement.bind(aIndex++, (long long int)minPushInterval); aStatement.bind(aIndex++, (long long int)changesOnlyInterval); }
// bind values to passed statement void DeviceSettings::bindToStatement(sqlite3pp::statement &aStatement, int &aIndex, const char *aParentIdentifier, uint64_t aCommonFlags) { inherited::bindToStatement(aStatement, aIndex, aParentIdentifier, aCommonFlags); // bind the fields aStatement.bind(aIndex++, deviceFlags); aStatement.bind(aIndex++, device.getAssignedName().c_str()); aStatement.bind(aIndex++, zoneID); }
// bind values to passed statement void ClimateControlBehaviour::bindToStatement(sqlite3pp::statement &aStatement, int &aIndex, const char *aParentIdentifier, uint64_t aCommonFlags) { // encode the flags if (climateControlIdle) aCommonFlags |= outputflag_climateControlIdle; // bind inherited::bindToStatement(aStatement, aIndex, aParentIdentifier, aCommonFlags); // bind the fields aStatement.bind(aIndex++, heatingSystemCapability); aStatement.bind(aIndex++, heatingSystemType); }
// bind values to passed statement void OutputBehaviour::bindToStatement(sqlite3pp::statement &aStatement, int &aIndex, const char *aParentIdentifier, uint64_t aCommonFlags) { inherited::bindToStatement(aStatement, aIndex, aParentIdentifier, aCommonFlags); // encode the flags if (pushChanges) aCommonFlags |= outputflag_pushChanges; // bind the fields aStatement.bind(aIndex++, outputMode); aStatement.bind(aIndex++, (long long int)aCommonFlags); aStatement.bind(aIndex++, (long long int)outputGroups); }
/// bind values to passed statement void MovingLightScene::bindToStatement(sqlite3pp::statement &aStatement, int &aIndex, const char *aParentIdentifier, uint64_t aCommonFlags) { inherited::bindToStatement(aStatement, aIndex, aParentIdentifier, aCommonFlags); // bind the fields aStatement.bind(aIndex++, hPos); aStatement.bind(aIndex++, vPos); }
/// bind values to passed statement void PersistentParams::bindToStatement(sqlite3pp::statement &aStatement, int &aIndex, const char *aParentIdentifier, uint64_t aCommonFlags) { // the parent identifier is the first column to bind aStatement.bind(aIndex++, aParentIdentifier, false); // text not static }