46 lines
905 B
C++
46 lines
905 B
C++
#include "data_warehouse.h"
|
|
|
|
#include <QDebug>
|
|
|
|
DataWarehouse::DataWarehouse()
|
|
{
|
|
init();
|
|
}
|
|
|
|
DataWarehouse::~DataWarehouse() {}
|
|
|
|
DataWarehouse *DataWarehouse::getInstance(void)
|
|
{
|
|
static DataWarehouse *instance = NULL;
|
|
if (instance == NULL) {
|
|
instance = new DataWarehouse();
|
|
return instance;
|
|
}
|
|
|
|
return instance;
|
|
}
|
|
|
|
void DataWarehouse::init(void)
|
|
{
|
|
this->platform.clear();
|
|
this->getPlatForm();
|
|
|
|
this->intelPlug = StartMode::MODE_PLUG;
|
|
this->intelMode = false;
|
|
this->winFlag = QString("min");
|
|
this->maxInputNum = 35;
|
|
|
|
return;
|
|
}
|
|
|
|
void DataWarehouse::getPlatForm(void)
|
|
{
|
|
QString platform = QString(KDKGetPrjCodeName().c_str());
|
|
if (platform == QString("V10SP1-Intel") || platform == QString("V10SP1-edu")) {
|
|
this->platform = QString("intel");
|
|
}
|
|
qDebug() << "Info : check run platform is " << this->platform;
|
|
|
|
return;
|
|
}
|