/********************************************************************* * * 文 件: StatusWatcher.h 监听画面事件,然后分发处理 * * 版权所有: Shanghai Baosight Software Co., Ltd. * * 概述:画面事件以TAG方式广播到后台,根据事件的名字,分发处理. *********************************************************************/ #ifndef EVENTWATCHER_H_ #define EVENTWATCHER_H_ #include #include #include #include using namespace iPlature; using namespace baosight; namespace baosight { /********************************************************************* * 类 名: EventWatcher * 版权所有: Shanghai Baosight Software Co., Ltd. * 类 职 责:根据不同的tag事件,进行不同的处理 * : * : * 版本历史 * 1.0 2010-09-01 echo_li 增加注释 * *********************************************************************/ class EventWatcher : public ::iPlature::WatchInterface { public: EventWatcher(); ~EventWatcher(void); /********************************************************************** * 概述: 接收并转发tag事件 * 函数名: EventWatch **********************************************************************/ virtual void EventWatch(const ::std::string& strEventName, const ::std::string& strValue, const Ice::Current&); virtual void ReReadConfiguration(const ::Ice::Current&); private: /********************************************************************** * 概述: 处理计划请求 * 函数名: RequestSchedule * **********************************************************************/ void RequestSchedule(string strValue); /********************************************************************** * 概述: 入口回退 * 函数名: RejectCoil **********************************************************************/ void RejectCoil(string strValue); /********************************************************************** * 概述: 补发生产实绩 * 函数名: ReSendProduct **********************************************************************/ void ReSendProduct(string strValue); /********************************************************************** * 概述: 画面修改原始数据,进行设定值重算 * 函数名: UpdatePrimary **********************************************************************/ void UpdatePrimary(string strValue); private: IceUtil::Mutex m_eventMutex; AdminInterfacePrx _tagAdmin ; TAGVALUEMAP tagPairs; private: MessageICEPrx m_proxyPmg;//pmg模块代理 MessageICEPrx m_proxyMtr;//mtr模块代理 MessageICEPrx m_proxyRdc;//rdc模块代理 MessageICEPrx m_proxyLst;//lst模块代理 MessageICEPrx m_proxyTdh;//pdh模块代理 MessageICEPrx m_proxySmg;//smg模块代理 MessageICEPrx m_proxyPrm;//prm模块代理 MessageICEPrx m_proxyRmg;//rmg模块代理 MessageICEPrx m_proxyStm;//stm模块代理 }; }; #endif