2026-05-09 11:23:45 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <glob/BinaryTele.h>
|
|
|
|
|
#include <log4cplus/LOG.h>
|
|
|
|
|
#include <zlib/MemVar.h>
|
2026-05-13 15:24:32 +08:00
|
|
|
#include <zlib/MemFix.hpp>
|
2026-05-09 11:23:45 +08:00
|
|
|
#include <zlib/zoneDef.h>
|
2026-05-13 15:24:32 +08:00
|
|
|
#include <TestProject/RNG/model/ModelRegistry.h>
|
2026-05-09 11:23:45 +08:00
|
|
|
#include <array>
|
|
|
|
|
#include <chrono>
|
2026-05-13 15:24:32 +08:00
|
|
|
#include <map>
|
2026-05-09 11:23:45 +08:00
|
|
|
#include <numeric>
|
|
|
|
|
#include <string>
|
2026-05-13 15:24:32 +08:00
|
|
|
using namespace std;
|
|
|
|
|
|
2026-05-09 11:23:45 +08:00
|
|
|
class Generator {
|
2026-05-13 15:24:32 +08:00
|
|
|
public:
|
2026-05-09 11:23:45 +08:00
|
|
|
Generator();
|
|
|
|
|
~Generator();
|
|
|
|
|
bool wtite_in_shm(int event_no);
|
|
|
|
|
|
2026-05-13 15:24:32 +08:00
|
|
|
private:
|
2026-05-09 11:23:45 +08:00
|
|
|
std::unique_ptr<LOG> logger_;
|
|
|
|
|
BinaryTele binary_tele{CMemVar::Const()->event_eis_start, "T_LOV_FDAAITEM"};
|
|
|
|
|
map<int, CMemFix<PLC_DATA>*> m_mapfix;
|
|
|
|
|
chrono::system_clock::time_point stime;
|
2026-05-13 15:24:32 +08:00
|
|
|
ModelRegistry& registry;
|
|
|
|
|
};
|