32 lines
473 B
C++
32 lines
473 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 rows = MysqlUtils::getInstance()->RetrieveTableData(tbl_data);
|
|
if (rows < 0)
|
|
{
|
|
hloge("Failed to retrieve signal data");
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
int DataFetcher::VerifyStatus()
|
|
{
|
|
return STATUS_NORMAL;
|
|
}
|