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.
62 lines
1.8 KiB
C++
62 lines
1.8 KiB
C++
#ifndef TRACKTEXTOBJ_H
|
|
#define TRACKTEXTOBJ_H
|
|
#pragma once
|
|
|
|
//主要功能:
|
|
// 文本道类
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
class CInclinedTrack;
|
|
class AFX_EXT_CLASS CTrackText : public CInclinedTrack
|
|
{
|
|
protected:
|
|
|
|
public:
|
|
CTrackText();
|
|
CTrackText(const CRect8& position);
|
|
virtual ~CTrackText();
|
|
CLONE_WELLOBJECT(CTrackText)
|
|
virtual void operator=(CTrackText& object);
|
|
// Implementation
|
|
public:
|
|
|
|
virtual void AddObjChild(); //创建文本子对象
|
|
virtual void CalcBorders();
|
|
|
|
virtual void ResetChildProperties();
|
|
|
|
////从工区导入数据时创建道内子对象
|
|
void BuidChildObject(vector<CString> &fields, StringVectorSet &datas, BOOL bInit=FALSE);
|
|
//// 获取道内对象的具体内容
|
|
void GetChildDatas(StringVectorSet &dataContent, BOOL bHaveWellName = TRUE);
|
|
|
|
public:
|
|
// PCG格式的读写
|
|
//读pcg格式的数据
|
|
virtual int ReadPCG_Data(CFile &fr,const short& ver);
|
|
//读pcg格式的道
|
|
virtual int ReadPCG_Self(CFile &fr,CXmlParse& xp,const short& ver);
|
|
virtual int ReadPCG_SelfTraceSection(CFile &fr,CXmlParse& xp,const short& ver);
|
|
virtual int ReadPCG_DataSection(CFile &fr,const short& ver);
|
|
//写pcg格式的道
|
|
virtual void WritePCG_Trace(CFile &fw,int nBaseTabNum);
|
|
//写pcg格式的道内数据
|
|
virtual void WritePCG_Data(CFile &fw,int nBaseTabNum);
|
|
//写pcg格式的道
|
|
virtual void WritePCG_TraceSection(CFile &fw,int nBaseTabNum);
|
|
//写pcg格式的道内数据
|
|
virtual void WritePCG_DataSection(CFile &fw,int nBaseTabNum);
|
|
public:
|
|
virtual int ReadPCG_Data(CKXmlParse& xp, const short& ver);
|
|
//读pcg格式的道
|
|
virtual int ReadPCG_Self( CKXmlParse& xp, const short& ver);
|
|
virtual int ReadPCG_SelfTraceSection( CKXmlParse& xp, const short& ver);
|
|
virtual int ReadPCG_DataSection(CKXmlParse& xp, const short& ver);
|
|
|
|
public:
|
|
virtual void GetChildDatas(CString& jsonStr);
|
|
virtual BOOL SetChildDatas(CString& jsonStr);
|
|
};
|
|
|
|
#endif |