emsApplication/applications/emsConfigurer/datafetcher.cpp

32 lines
499 B
C++

#include "datafetcher.h"
#include "globalparameters.h"
#include "mysqlutils.h"
#include <hv/hlog.h>
DataFetcher::DataFetcher()
{
}
DataFetcher::~DataFetcher()
{
}
bool DataFetcher::Fetch(TableData& tbl_data,int fetch_rows)
{
int rows = MysqlUtils::getInstance()->RetrieveTableData(tbl_data,fetch_rows);
if (rows < 0)
{
hloge("Failed to retrieve signal data");
return false;
}
return true;
}
int DataFetcher::VerifyStatus()
{
return STATUS_NORMAL;
}