You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.7 KiB
56 lines
1.7 KiB
4 years ago
|
#ifndef DBMAPODIZATIONLUT_H
|
||
|
#define DBMAPODIZATIONLUT_H
|
||
|
|
||
|
#include <QMetaType>
|
||
|
#include <QString>
|
||
|
#include <QObject>
|
||
|
#include <QtSql>
|
||
|
|
||
|
#include "model/databaseManager/utils/initializationUtils.h"
|
||
|
|
||
|
/*************************************************************************************************/
|
||
|
/**
|
||
|
* @brief Database dto structure for ApodizationLut
|
||
|
* @author Mohammad Mohsen Talaie
|
||
|
* @details
|
||
|
* @date 07 feb 2021
|
||
|
*/
|
||
|
/*************************************************************************************************/
|
||
|
typedef struct DbmDtoApodizationLut
|
||
|
{
|
||
|
QList<int> case1;
|
||
|
QList<int> case2;
|
||
|
QList<int> case3;
|
||
|
QList<int> case4;
|
||
|
bool isActive;
|
||
|
}DbmDtoApodizationLut;
|
||
|
|
||
|
Q_DECLARE_METATYPE(DbmDtoApodizationLut)
|
||
|
|
||
|
/*************************************************************************************************/
|
||
|
/**
|
||
|
* @brief Database class for ApodizationLut
|
||
|
* @author Mohammad Mohsen Talaie
|
||
|
* @details
|
||
|
* @date 2021
|
||
|
*/
|
||
|
/*************************************************************************************************/
|
||
|
class DbmApodizationLut
|
||
|
{
|
||
|
public:
|
||
|
static bool getApodizationLut(QSqlTableModel* tableModel, DbmDtoApodizationLut& apodizationLut)
|
||
|
{
|
||
|
tableModel->setTable("ApodizationLut");
|
||
|
tableModel->setFilter(QString("isActive = 1"));
|
||
|
bool ret = tableModel->select();
|
||
|
INIT_LIST(apodizationLut, tableModel, case1, Int, 0);
|
||
|
INIT_LIST(apodizationLut, tableModel, case2, Int, 0);
|
||
|
INIT_LIST(apodizationLut, tableModel, case3, Int, 0);
|
||
|
INIT_LIST(apodizationLut, tableModel, case4, Int, 0);
|
||
|
|
||
|
return ret;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif //DBMAPODIZATIONLUT_H
|