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.
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
#pragma once
|
|
#include "GlobalDefine.h"
|
|
#include "LabVecRang.h"
|
|
|
|
//工作文件的保存和读取
|
|
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;//当前打开的文件名
|
|
};
|
|
|