eis/eqpalg/utility/update_data.h

54 lines
1.5 KiB
C
Raw Normal View History

#pragma once
/**
* @file update_data.h
* @brief MemCachedClient
* @author your name (you@domain.com)
* @version 0.1
* @date 2023-12-22
*
* Copyright: Baosight Co. Ltd.
* DO NOT COPY/USE WITHOUT PERMISSION
*
*/
#include <eqpalg/gb_item_memory.h>
#include <eqpalg/utility/eqp_stat.h>
#include <eqpalg/utility/eqp_status.h>
#include <log4cplus/LOG.h>
#include <zlib/MemCachedClient.h> ///MemCachedClient
#include <memory>
#include <shm/SingletonTemp.hpp>
class UpDateData {
private:
MemCachedClient m_memclient; ///< MemCachedClient
string unitNo_ = string(CMemVar::Const()->UnitNo); ///<机组号
string Jkey_data_; ///< fdaaitem数据的key
string Jkey_rule_stat_; ///<规则shm的key
string Jkey_eqp_state_; ///<设备运行状态
std::unique_ptr<LOG> logger_; ///< 本地logger
std::unique_ptr<EqpStatus> eqp_status_ptr_; ///<设备状态
public:
/**
* @brief key
* @param Jkey_data fdaaitem数据的key
* @param Jkey_rule_stat shm的key
*/
UpDateData(string Jkey_data, string Jkey_rule_stat);
/**
* @brief
*/
UpDateData();
~UpDateData();
/**
* @brief fdaaitem数据
*/
void update_item_data();
/**
* @brief shm数据
*/
void update_rule_stat_data();
/**
* @brief
*/
void update_eqp_status();
};