LAPTOP-SNT8I5JK\Boounion
2025-01-07 e688cec6c19b3582d441581a8e12fb30686d6644
SourceCode/Bond/BoounionPLC/Model.h
@@ -1,5 +1,7 @@
#pragma once
#include "Configuration.h"
#include "PLC.h"
#include <map>
class CModel
@@ -14,6 +16,9 @@
   int init();
   int term();
   void onTimer(UINT nTimerid);
   std::map<std::string, CPLC*>& gtPlcMap();
   int addPlc(const char* pszName, const char* pszIp, const unsigned int port);
   int removePlc(const char* pszName);
public:
   int notify(int code);
@@ -37,6 +42,7 @@
   IObservable* m_pObservable;
   IObservableEmitter* m_pObservableEmitter;
   CString m_strWorkDir;
   std::map<std::string, CPLC*> m_mapPlc;
private:
   int m_nTimerID;