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.
|
|
|
|
#pragma once
|
|
|
|
|
#include "GlobalDefine.h"
|
|
|
|
|
#include "LabVecRang.h"
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC>ı<EFBFBD><C4B1><EFBFBD><EFBFBD>Ͷ<EFBFBD>ȡ
|
|
|
|
|
class CWorkFileMgr
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CWorkFileMgr(void);
|
|
|
|
|
~CWorkFileMgr(void);
|
|
|
|
|
void SaveWorkFile(CString FilePath);
|
|
|
|
|
void ReadWorkFile(CString FilePath);
|
|
|
|
|
void SeparateStrVec(CLabVecRang &LabVecRang,vector<CLabVecRang> &LabVecRangVec,LAB_TYPE StrLabStart,LAB_TYPE StrLabEnd);
|
|
|
|
|
CLab FindLab(CLabVecRang &LabVecRang,LAB_TYPE LabStr);
|
|
|
|
|
|
|
|
|
|
void OnOpenFile();
|
|
|
|
|
void OnSaveFile();
|
|
|
|
|
void OnSaveFileAs();
|
|
|
|
|
void OpenObjFile();
|
|
|
|
|
void SaveObjFile();
|
|
|
|
|
void SaveCutParFile(CString FilePath);
|
|
|
|
|
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);
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
void ReadWorkFileExt(CString FilePath,vector<CLab> &LabVec);
|
|
|
|
|
|
|
|
|
|
void SaveFile(CString FileName);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
static CString m_CurOpenFile;//<2F><>ǰ<EFBFBD><EFBFBD><F2BFAAB5>ļ<EFBFBD><C4BC><EFBFBD>
|
|
|
|
|
};
|
|
|
|
|
|