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.
69 lines
2.0 KiB
C++
69 lines
2.0 KiB
C++
#ifndef TRACKCOMMONOBJ_H
|
|
#define TRACKCOMMONOBJ_H
|
|
#pragma once
|
|
|
|
//主要功能:
|
|
// 通用数据道类
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#include "CCommonDataDef.h"
|
|
|
|
class CInclinedTrack;
|
|
class AFX_EXT_CLASS CTrackCommonData : public CInclinedTrack
|
|
{
|
|
protected:
|
|
|
|
public:
|
|
CTrackCommonData();
|
|
CTrackCommonData(const CRect8& position);
|
|
virtual ~CTrackCommonData();
|
|
CLONE_WELLOBJECT(CTrackCommonData)
|
|
virtual void operator=(CTrackCommonData& object);
|
|
|
|
virtual void Serialize(CArchive& ar, const short& ver);
|
|
// 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:
|
|
|
|
virtual void Draw(CXyDC* pDC);
|
|
// 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);
|
|
|
|
CCommonDataDef m_CommonDataDef;
|
|
};
|
|
|
|
#endif |