LAPTOP-SNT8I5JK\Boounion
2025-01-07 22137ea1df173a3c58a641eb9cd12999258faf18
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;