/********************************************************************* * * 文 件: DotMag.h 停机管理类 * * 版权所有: Shanghai Baosight Software Co., Ltd. * * 概述 : * : * : * * 版本历史 * 1.0 2010-06-22 liliang 增加注释 * %USER% *********************************************************************/ #ifndef LINEMAG_H_ #define LINEMAG_H_ #include #include #include namespace baosight{ /********************************************************************* * 类 名: DotMag * 版权所有: Shanghai Baosight Software Co., Ltd. * 类 职 责 : 停机开始与停机结束管理 * : 停机分割 * : 向L3发送停机实绩 * 版本历史 * 1.0 2010-06-22 liliang 初次建立,增加注释 * *********************************************************************/ class DotMag{ public: /********************************************************************** * 概述: 开机,更新停机记录 * 函数名: LineStart * 返回值: long 成功返回停机时间,失败返回-1 * 参数列表: 参数类型 取值范围 描述 * t: time_t 开机时间 * * 版本历史 * 1.0 2010-08-10 echo_li 初次建立 * **********************************************************************/ virtual long LineStart(time_t t,string secName = "PS"); //停机结束,返回停机开始时间 virtual long LineStart(time_t t, char *coilId, string secName = "PS"); /********************************************************************** * 概述: 停机,插入停机记录 * 函数名: LineStop * 返回值: short * 参数列表: 参数类型 取值范围 描述 * t: time_t 停机时刻 * * 版本历史 * 1.0 2010-08-10 echo_li 初次建立 * **********************************************************************/ virtual short LineStop(time_t t,string secName = "PS"); /********************************************************************** * 概述: 停机分割,根据分割时间点 * 函数名: DevideDisTurbance * 返回值: short * 参数列表: 参数类型 取值范围 描述 * t: time_t 分割时间点 * * 版本历史 * 1.0 2010-08-10 echo_li * **********************************************************************/ virtual short DevideDisTurbance(time_t t); /********************************************************************** * 概述: 返回当前生产线的状态 * 函数名: LineStatus * 返回值: short * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2010-08-10 echo_li * **********************************************************************/ virtual short LineStatus(string secName = "PS"); public: DotMag(ShiftDAO& pShiftDao); virtual ~DotMag(); private: ShiftDAO* mp_ShiftDao; ShiftMag* mp_shiftMag; //班管理信息 }; } #endif