emsApplication/applications/emsConfigurer/datafetcher.cpp

32 lines
473 B
C++
Raw Normal View History

2024-09-12 16:23:44 +08:00
#include "datafetcher.h"
#include "globalparameters.h"
2024-10-12 14:00:37 +08:00
#include "mysqlutils.h"
#include <hv/hlog.h>
2024-09-12 16:23:44 +08:00
DataFetcher::DataFetcher()
{
}
DataFetcher::~DataFetcher()
{
}
bool DataFetcher::Fetch(TableData& tbl_data)
{
2024-10-12 14:00:37 +08:00
int rows = MysqlUtils::getInstance()->RetrieveTableData(tbl_data);
if (rows < 0)
{
hloge("Failed to retrieve signal data");
return false;
}
2024-09-12 16:23:44 +08:00
return true;
}
int DataFetcher::VerifyStatus()
{
return STATUS_NORMAL;
}