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.

46 lines
1.2 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#ifndef AFX_EXT_CLASS
#define AFX_EXT_CLASS Q_DECL_IMPORT
#endif
#include "../GBase/IOFile.h"
namespace GObjects
{
class CMyCurve;
class AFX_EXT_CLASS CDfdFileReader
{
public:
CDfdFileReader(void);
~CDfdFileReader(void);
//列表中生成的为CCurve*对象
int ReadCurveAll(CString m_input, TPtrList& CurveList);
//从文件中读取curve*对象
int ReadCurveAll(CString m_input, std::vector<CMyCurve*>& curvelist);
//int ReadCurveAll(CString m_input, CCurveList& CurveList);
void ClearCurveList(TPtrList& curveList);
//int ReadCurveAll(CString m_input, TMap<int,void *> & CurveMap);
int ReadLayer(CString& line);
int ReadSuperLink(IOFile& fr, CString& line);
//返回曲线指针CCurve*
void* ReadCurve(IOFile& fr, CString& line);
void* ReadNextCurve(IOFile& fr); //读取一条曲线返回CCurve*指针,该指针需要外部删除
int IsSkip(CString& line);
int IsSuperLink(CString& line);
int IsCurve(CString& line);
void* ReadCalibrate(CString m_input);
//void* GetCalibrate(CString m_input,int state);
bool m_bShowProDlg; ///< 是否显示进度框默认true
protected:
int IsNew;
int ReadNew(CString& line);
int ReadDisplay(CString& line);
};
};
using namespace GObjects;