You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.9 KiB
C++
51 lines
1.9 KiB
C++
#pragma once
|
|
#include "GlobalDefine.h"
|
|
#include "LabVecRang.h"
|
|
class CCspWaferPar;
|
|
//工作文件的保存和读取
|
|
class CWorkFileMgr
|
|
{
|
|
public:
|
|
CWorkFileMgr(void);
|
|
~CWorkFileMgr(void);
|
|
void SaveWorkFile(CString FilePath);
|
|
bool ReadWorkFile(CString FilePath,bool bCreatCspWaferData = true);
|
|
void SeparateStrVec(CLabVecRang &LabVecRang,vector<CLabVecRang> &LabVecRangVec,LAB_TYPE StrLabStart,LAB_TYPE StrLabEnd);
|
|
CLab FindLab(CLabVecRang &LabVecRang,LAB_TYPE LabStr);
|
|
|
|
void OnOpenFile();
|
|
bool OnSaveFile();
|
|
bool OnSaveFileAs();
|
|
void OpenObjFile();
|
|
void SaveObjFile();
|
|
static CString GetCurOpenFilePath(){return m_CurOpenFile;};
|
|
bool IsOpenFile();
|
|
void ReadObjFileByName(CString FileName);
|
|
void SaveObjTemplateFile(CString FilePath);
|
|
void ReadObjTemplateFile(CString FileName);
|
|
void SaveWorkFileExt(CString FilePath,vector<CLab> &LabVec);
|
|
void SaveFileName(CString FileName);
|
|
void SaveMapFileName(CString FileName);
|
|
bool OpenFileByPath(CString Path);
|
|
void OpenFileByPathEAP(CString Path);
|
|
void SaveFile(CString FileName);
|
|
|
|
void OnOpenMapFile();
|
|
bool OnOpenMapFile(CString mapFile);
|
|
bool OpenMapFileByPath(CString Path, CString mapFile, int type);
|
|
bool ReadWorkMapFile(CString FilePath, CString mapFile, int type, bool bCreatCspWaferData = true);
|
|
bool OpenMapExtern(CString mapFile, int type, bool bCreatCspWaferData);
|
|
static void SetCurOpenFile(CString makFile) { m_CurOpenFile = makFile; }
|
|
static void SetManualOpr(bool bMouFormat) { m_bManualOpr = bMouFormat; }
|
|
static bool GetManualOpr() { return m_bManualOpr; }
|
|
bool ReadWorkFileExt(CString FilePath,vector<CLab> &LabVec);
|
|
private:
|
|
bool ResolvingSinfFile(CString FilePath,CCspWaferPar& waferPar, MapData& mapData);
|
|
bool ResolvingTxtFile(CString FilePath, CCspWaferPar& waferPar, MapData& mapData);
|
|
bool ResolvingTskFile(CString FilePath, CCspWaferPar& waferPar, MapData& mapData); // 直接调用
|
|
private:
|
|
static CString m_CurOpenFile;//当前打开的文件名
|
|
static bool m_bManualOpr;
|
|
};
|
|
|