// Vcs-Client.h : PROJECT_NAME 应用程序的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "resource.h" // 主符号 #include "CCEXPipeLib.h" #define WM_MSG_ROBOT_TO_MAIN WM_USER+2000 // CKcCtrlApp: // 有关此类的实现,请参阅 Vcs-Client.cpp // class CKcCtrlApp : public CWinApp { public: CKcCtrlApp(); // 重写 public: virtual BOOL InitInstance(); public: //从配置文件获取控制信息,包括IP地址,端口,协议授权码 void GetCtrlServerInfo(); //构建请求报文头 void BuildMessageHeader(); public: CString m_strModulePath; //模块所在路径 CString m_strControllerIp; //控制器IP地址 int m_nControllerPort; //控制器端口号 unsigned char m_acAuthCoce[16]; //协议授权码,16个字节 int m_nReqPointId; //记录车辆请求点位置点ID int m_nReqPointType; //记录车辆请求点位置点类型 1:取请求, 2:放请求 int m_nCargoStatus; //载货状态 // 实现 CString SendMsg2Platform(CString strReceiver, int nMsgType, Json::Value param = NULL); void ChangeGuideType(int nType); DECLARE_MESSAGE_MAP() }; extern CKcCtrlApp theApp; extern CCEXPipeClientBase* g_pstPipeClient;