eis/eqpalg/utility/eqp_status.h

46 lines
784 B
C
Raw Normal View History

#pragma once
/**
* @file eqp_status.h
* @brief
* @author your name (you@domain.com)
* @version 0.1
* @date 2024-03-07
*
* Copyright: Baosight Co. Ltd.
* DO NOT COPY/USE WITHOUT PERMISSION
*
*/
#include <eqpalg/gb_item_memory.h>
#include <glob/BinaryTele.h>
#include <log4cplus/LOG.h>
#include <memory>
using std::map;
class EqpStatus {
public:
EqpStatus();
~EqpStatus();
/**
* @brief Get the data json object
* @return std::string
*/
std::string get_data_json();
private:
std::unique_ptr<LOG> logger_;
BinaryTele binary_tele{CMemVar::Const()->event_eis_start, "T_LOV_FDAAITEM"};
private:
/**
* @brief
* @return int
*/
int update_status();
/**
* @brief
* @return int
*/
int select_eqp_data();
};