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.
kev/Drawer/SSBase/WellPoleLib/WellObjExtendInfo.h

44 lines
969 B
C++

#pragma once
#include <vector>
class AFX_EXT_CLASS CWellObjExtendInfo
{
public:
CWellObjExtendInfo();
CWellObjExtendInfo(int type, int mtype, CString eTypeStr, CString cTypeStr, CString mTypeStr);
virtual ~CWellObjExtendInfo();
public:
int m_type; //对象类型
int m_mtype; //对象所属的分类
CString m_eTypeStr; //英文类型名称
CString m_cTypeStr; //中文类型名称
CString m_mTypeStr;
public:
void operator=(const CWellObjExtendInfo& extObj);
};
class AFX_EXT_CLASS CWellObjExtendInfoMgr
{
protected:
CWellObjExtendInfoMgr();
public:
virtual ~CWellObjExtendInfoMgr();
public:
void GetTypeInfo(int type, CWellObjExtendInfo& objInfo);
std::vector<CWellObjExtendInfo*>& GetWellObjExtendInfos() { return m_WellObjExtInfos; }
std::vector<CWellObjExtendInfo*> GetWellTrackInfos();
static CWellObjExtendInfoMgr* GetInstance();
protected:
std::vector<CWellObjExtendInfo*> m_WellObjExtInfos;
void Init();
static CWellObjExtendInfoMgr * m_instance;
};