#ifndef __THE_CLOUD_DEF_20160612__ #define __THE_CLOUD_DEF_20160612__ // 命名空间最好放在stdafx.h头文件中,不然可能产生编译错误; #include #include using namespace std; #ifndef _UNICODE typedef string TString; #else typedef wstring TString; #endif typedef vector STR_VEC; #include ////////////////////////////////////////////////////////////////////////// // Version表备份相关信息; typedef struct ST_StudioInfo { TString strVersion; TString strStudioName; // 影楼店名; TString strStudioTelNo; // 影楼电话; TString strStudioAddr; // 影楼地址; TString strStudioSite; // 影楼网址; TCHAR szbakServer1[MAX_PATH]; // 与bCheckbak1对应,原片备份目录的共享主机名 ; TCHAR szbakServer2[MAX_PATH]; // 与bCheckbak2对应,初修片备份目录的共享主机名 ; TCHAR szbakServer3[MAX_PATH]; // 与bCheckbak31对应,精修片备份目录的共享主机名 ; TCHAR szbakServer4[MAX_PATH]; // 与bCheckbak4对应,设计片备份目录的共享主机名 ; TCHAR szbakServer5[MAX_PATH]; // 与bCheckbak5对应,数据库备份目录的共享主机名 ; ST_StudioInfo(){ strVersion = _T("00000"); } ST_StudioInfo(const ST_StudioInfo &another) { strVersion = another.strVersion; strStudioName = another.strStudioName; strStudioTelNo = another.strStudioTelNo; strStudioAddr = another.strStudioAddr; strStudioSite = another.strStudioSite; } ST_StudioInfo& operator=(const ST_StudioInfo &another) { if ( this == &another) { return *this; } strVersion = another.strVersion; strStudioName = another.strStudioName; strStudioTelNo = another.strStudioTelNo; strStudioAddr = another.strStudioAddr; strStudioSite = another.strStudioSite; return *this; } }StudioInfo,*pStudioInfo; ////////////////////////////////////////////////////////////////////////// // branchinfo.dat文件; typedef struct _branchinfo_ { TString strBranchId; // 域名; TString strBranchName; // 店名; TString strBranchIP; // IP; TString strHomeOffice; // 总店; TString strEnterprise; // 企业名; }STBranchInfo, *pSTBranchInfo; /* ////////////////////////////////////////////////////////////////////////// // 共享目录信息表NetShareInfo; typedef struct ST_TblNetShareInfo { BOOL bEnable; TString strBranchId; TString strShareDirectory; BYTE byMinCapacity; BYTE byMaxCapacity; BYTE byImgType; BYTE byPriority; ST_TblNetShareInfo() { bEnable = FALSE; byMinCapacity = 0; byMaxCapacity = 0; byImgType = 0; byPriority = 0; } ST_TblNetShareInfo(const ST_TblNetShareInfo &another) { bEnable = another.bEnable; byMinCapacity = another.byMinCapacity; byMaxCapacity = another.byMaxCapacity; byPriority = another.byPriority; byImgType = another.byImgType; strBranchId = another.strBranchId; strShareDirectory = another.strShareDirectory; } ST_TblNetShareInfo& operator=(const ST_TblNetShareInfo &another) { if ( this == &another ) { return *this; } bEnable = another.bEnable; byMinCapacity = another.byMinCapacity; byMaxCapacity = another.byMaxCapacity; byPriority = another.byPriority; byImgType = another.byImgType; strBranchId = another.strBranchId; strShareDirectory = another.strShareDirectory; return *this; } }TblNetShareInfo,*pTblNetShareInfo; */ enum // 缩放结果; { ZoomNull = 0, // 无缩放; ZoomIn = 1, // 缩小; ZoomOut = 2 // 放大; }; enum { OImgtype = 1, // 原片; EImgtype = 2, // 初修; FImgtype = 3, // 精修; DImgtype = 4, // 设计; OBImgtype = 5, EBImgtype = 6, FBImgtype = 7, DBImgtype = 8 }; enum { IMG_IMPORT = 0, IMG_EXPORT = 1 }; enum { COPY_IF_EXISTS = 1, COPY_FAIL_IF_EXISTS = 2, COPY_OTHER_NAME_IF_EXISTS = 3 }; #define MIN_CAPACITY 5 #define MAX_CAPACITY 10 #define OImgpath _T("客户原片(管理软件)$") #define EImgpath _T("修好的片(管理软件)$") #define FImgpath _T("精修好的片(管理软件)$") #define DImgpath _T("设计好的片(管理软件)$") #define OBImgpath _T("客户原片备份(管理软件)$") #define EBImgpath _T("修好的片备份(管理软件)$") #define FBImgpath _T("精修好的片备份(管理软件)$") #define DBImgpath _T("设计好的片备份(管理软件)$") #define COBImgpath _T("客户原片备份(儿童管理软件)$") #define CEBImgpath _T("修好的片备份(儿童管理软件)$") #define CFBImgpath _T("精修好的片备份(儿童管理软件)$") #define CDBImgpath _T("设计好的片备份(儿童管理软件)$") #define GET_XPIX(x) ( x >> 16) // 高16位; #define GET_YPIX(y) (y & 0x0000ffff) // 低16位; #define SET_PIX(x,y) (( x << 16) | y) // 高低合并; #define INVALID_COPY_PIX ((DWORD)-1) // 传递此值,表示没有复制压缩; #endif//__THE_CLOUD_DEF_20160612__;