/********************************************************************* * * 文 件: Location.h 位置信息 * * 版权所有: Shanghai Baosight Software Co., Ltd. * * 概述://TODO请添加本文件包含功能详细描述 * ://TODO * ://TODO * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * %USER% *********************************************************************/ #ifndef _LOCATION_H_ #define _LOCATION_H_ #include #include using namespace std; using namespace baosight; class PosType { public: static const int ProductionSend = 1;// 生产实绩发送位置 static const int Weight = 2;// 生产实绩发送位置 static const int TR = 4;// 卷取机位置 static const int POR = 8;//开卷机位置 static const int Confirm = 16;// 钢卷确认位置 static const int SettingSend = 32;// 设定值发送位置 static const int SettinCalc = 64;// 设定值计算位置 static const int CanLoadCoil = 128;// 上鞍座位置 static const int Car = 256;// 穿梭小车 static const int EntryExit = 512;//入口或出口位置 }; /********************************************************************* * 类 名: Location * 版权所有: Shanghai Baosight Software Co., Ltd. * 类 职 责://描述了一个位置的信息,比如一个鞍座、小车 * ://TODO * ://TODO * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * *********************************************************************/ class Location { public: Location(); ~Location(); Location(const Location& another); Location& operator=(const Location& another); /********************************************************************** * 概述: //设置钢卷 * 函数名: setMuCode * 返回值: void //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * meCode : [IN/OUT] const MU_CODE & //TODO:参数取值范围 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ void setMuCode(const MU_CODE& meCode); /********************************************************************** * 概述: //当前位置是否有卷 * 函数名: haveCoil * 返回值: bool //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ bool haveCoil(); bool operator ==(Location& another); /********************************************************************** * 概述: 打印位置类型 * 函数名: printPosType * 返回值: void //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ void printPosType(); /********************************************************************** * 概述: //该位置是否可以上卷 * 函数名: canLoadCoil * 返回值: bool //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ bool canLoadCoil(); /********************************************************************** * 概述: //是否称重位置 * 函数名: isWeight * 返回值: bool //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ bool isWeight(); /********************************************************************** * 概述: //是否设定值计算位置 * 函数名: isSettingCalc * 返回值: bool //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ bool isSettingCalc(); /********************************************************************** * 概述: //是否设定值下发位置 * 函数名: isSettingSend * 返回值: bool //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ bool isSettingSend(); /********************************************************************** * 概述: //是否开卷机位置 * 函数名: isPOR * 返回值: bool //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ bool isPOR(); /********************************************************************** * 概述: //是否卷取机位置 * 函数名: isTR * 返回值: bool //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ bool isTR(); /********************************************************************** * 概述: //是否为步进梁 * 函数名: isWalkBeam * 返回值: bool //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ bool isWalkBeam(); /********************************************************************** * 概述: //生产实绩发送位置 * 函数名: isProdDataSend * 返回值: bool //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容 * **********************************************************************/ bool isProdDataSend(); public: char name[50];//位置的中文名字 int pos; //位置号 int type;//位置类型 int channel;//通道号 int walkbeampos; //步进粱内位置 MU_CODE meCode;//钢卷信息 short innerId;//内部卷号 }; #endif