191 lines
4.5 KiB
C++
191 lines
4.5 KiB
C++
// GeoMative.h : main header file for the GEOMATIVE application
|
||
//
|
||
#include <stdafx.h>
|
||
|
||
|
||
#if !defined(AFX_GEOMATIVE_H__7FEDD270_6145_4BD6_8B3A_CB6FBCE2333F__INCLUDED_)
|
||
#define AFX_GEOMATIVE_H__7FEDD270_6145_4BD6_8B3A_CB6FBCE2333F__INCLUDED_
|
||
|
||
|
||
|
||
#if _MSC_VER > 1000
|
||
#pragma once
|
||
#endif // _MSC_VER > 1000
|
||
|
||
|
||
#ifndef __AFXWIN_H__
|
||
#error include 'stdafx.h' before including this file for PCH
|
||
#endif
|
||
|
||
#include "resource.h" // main symbols
|
||
|
||
/////////////////////////////////////////////////////////////////////////////
|
||
// CGeoMativeApp:
|
||
// See GeoMative.cpp for the implementation of this class
|
||
//
|
||
#pragma warning(disable:4068)
|
||
#pragma warning(disable:4786)
|
||
|
||
#include "ProManager.h" // Added by ClassView
|
||
#include "TdManager.h" // Added by ClassView
|
||
#include "DevManager.h" // Added by ClassView
|
||
#include "ExecManager.h"
|
||
#include "SptManager.h"
|
||
#include "ioManager.h"
|
||
#include "DevLinkRecord.h"
|
||
#include "NetWorkOper.h"
|
||
#include <map>
|
||
|
||
class CDevManager;
|
||
class CTdManager;
|
||
class CPromanager;
|
||
class CExecManager;
|
||
class CSptManager;
|
||
class CIOManager;
|
||
|
||
typedef struct ST_DB_PASSWORD_INFO
|
||
{
|
||
int nTableID;
|
||
CString strPassword;
|
||
ST_DB_PASSWORD_INFO()
|
||
{
|
||
nTableID = 0;
|
||
strPassword = _T("");
|
||
}
|
||
}STDBPasswordInfo;
|
||
|
||
typedef struct ST_DB_OPERATE_PASSWORD_INFO
|
||
{
|
||
int nTableID;
|
||
int nDevType;
|
||
CString strPassword;
|
||
CString strDevName;
|
||
ST_DB_OPERATE_PASSWORD_INFO()
|
||
{
|
||
nDevType = 0;
|
||
nTableID = 0;
|
||
strPassword = _T("");
|
||
strDevName = _T("");
|
||
|
||
}
|
||
|
||
}STOperDBPassword;
|
||
|
||
static const GUID GUID_DEVINTERFACE_LIST[] =
|
||
{
|
||
// GUID_DEVINTERFACE_USB_DEVICE
|
||
{ 0xA5DCBF10, 0x6530, 0x11D2, { 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED } },
|
||
// GUID_DEVINTERFACE_DISK
|
||
{ 0x53f56307, 0xb6bf, 0x11d0, { 0x94, 0xf2, 0x00, 0xa0, 0xc9, 0x1e, 0xfb, 0x8b } },
|
||
// GUID_DEVINTERFACE_HID,
|
||
{ 0x4D1E55B2, 0xF16F, 0x11CF, { 0x88, 0xCB, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30 } }
|
||
};
|
||
|
||
enum EN_TRANSFER_FILE_METHOD
|
||
{
|
||
EN_TRANSFER_FILE_BY_COM = 1,
|
||
EN_TRANSFER_FILE_BY_USB,
|
||
EN_TRANSFER_FILE_BY_CLOUND,
|
||
EN_TRANSFER_FILE_BY_WIFI
|
||
};
|
||
|
||
enum EN_VERSION_INFO
|
||
{
|
||
EN_ON_LIEN_VERSION_1 = 1,
|
||
EN_ON_LIEN_VERSION_2,
|
||
};
|
||
|
||
typedef struct ST_CROSS_HOLE_CFG_INFO
|
||
{
|
||
float fFirstPoleDep;
|
||
float fHoleSpace;
|
||
ST_CROSS_HOLE_CFG_INFO()
|
||
{
|
||
fFirstPoleDep = fHoleSpace = 0;
|
||
}
|
||
|
||
}STCorssHoleCfgInfo;
|
||
|
||
enum EN_CHANNEL_INFO
|
||
{
|
||
EN_SINGLE_CHANNEL = 0, //0:单通道,装置生成脚本测点不排序
|
||
EN_MULTI_CHANNEL = 1 //1:多通道,除单通道的装置wen(a),wen(B),wen(Y),schumberger外,其他的装置都排序,AB相同的为一组
|
||
};
|
||
|
||
class CGeoMativeApp : public CWinApp
|
||
{
|
||
public:
|
||
CGeoMativeApp();
|
||
virtual ~CGeoMativeApp();
|
||
// Overrides
|
||
// ClassWizard generated virtual function overrides
|
||
//{{AFX_VIRTUAL(CGeoMativeApp)
|
||
public:
|
||
virtual BOOL InitInstance();
|
||
virtual int ExitInstance();
|
||
//}}AFX_VIRTUAL
|
||
|
||
// Implementation
|
||
void GetDBPasswordInfo();
|
||
void GetPasswordPtr(std::map<CString,STDBPasswordInfo> &mapPasswordInfo){mapPasswordInfo.clear();mapPasswordInfo=m_mapPasswordInfo;}
|
||
void GetDevPassword(CString strDevName, STDBPasswordInfo &strDBPassInfo);
|
||
void OnCfgTerrain();
|
||
bool GetCfgUrl();
|
||
int Get2dDataExpStyle(){return m_i2dDataExpStyle;}
|
||
protected:
|
||
|
||
|
||
HMENU m_hMDIMenu;
|
||
HACCEL m_hMDIAccel;
|
||
std::map<CString,STDBPasswordInfo> m_mapPasswordInfo;
|
||
|
||
// void GetGeoPassword(CString& strPassword);
|
||
|
||
|
||
public:
|
||
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
||
CDevManager* m_pDevManager;
|
||
CTdManager* m_pTdManager;
|
||
CProManager* m_pProManager;
|
||
CExecManager* m_pExecManager;
|
||
CSptManager* m_pSptManager;
|
||
CIOManager* m_pIOManager;
|
||
|
||
_ConnectionPtr m_pConnection;
|
||
DWORD m_dwScanThreadID;
|
||
HANDLE m_hScanThread;
|
||
|
||
DWORD m_dwSysTimeThreadID;
|
||
HANDLE m_hSysTimeThread;
|
||
CStringArray m_strRemAnalyFolder;
|
||
CString m_strUpgUrl;
|
||
CString m_strHomePage;
|
||
int m_i2dDataExpStyle;
|
||
BYTE m_ucMaxChannel;
|
||
int m_iCableType;
|
||
CNetWorkOper m_NetWorkOper;
|
||
UINT32 m_uiUserID;
|
||
EN_CHANNEL_INFO m_ucIsMultiChannel;
|
||
std::map<CString, STCorssHoleCfgInfo> m_mapCrossHole;
|
||
ADOX::_CatalogPtr m_pCatalog;
|
||
//{{AFX_MSG(CGeoMativeApp)
|
||
afx_msg void OnFileExit();
|
||
afx_msg void OnHelpAbout();
|
||
//}}AFX_MSG
|
||
DECLARE_MESSAGE_MAP()
|
||
private:
|
||
void InitalDiagnosisInfo();
|
||
void SetDBAttributeUpdateInfo();
|
||
void ProcConPtrCloseExpect();
|
||
bool ParserSigCrossHole(int iIndex);
|
||
bool GeCrossHoleCfg();
|
||
};
|
||
|
||
|
||
/////////////////////////////////////////////////////////////////////////////
|
||
|
||
//{{AFX_INSERT_LOCATION}}
|
||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||
|
||
#endif // !defined(AFX_GEOMATIVE_H__7FEDD270_6145_4BD6_8B3A_CB6FBCE2333F__INCLUDED_)
|