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/WellInterpretResultBrush.h

37 lines
791 B
C

1 month ago
#pragma once
#include <vector>
#include <string>
#include <map>
enum EBrushLibType
{
BrushNone,
BrushWaterFlooding, //ˮ<><CBAE>
BrushFacies, //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
BrushLithology //<2F><><EFBFBD><EFBFBD>
};
class AFX_EXT_CLASS CWellInterpretBrushLib
{
public:
CWellInterpretBrushLib();
~CWellInterpretBrushLib();
void Clear();
public:
BOOL InitLib(LPCTSTR lpszLibName);
BOOL GetColor(EBrushLibType brushType, CString name, COLORREF& color);
BOOL GetColor(CString strTable, CString Column, CString name, COLORREF& color);
void GetFaciesNames(CStringArray& strArr);
protected:
std::map<EBrushLibType, std::map<CString, COLORREF>*> m_BrushMaps;
BOOL m_bInit;
};
extern CWellInterpretBrushLib m_gInterpretBrushLib;
extern "C" AFX_EXT_API CWellInterpretBrushLib* WINAPI AfxGetGlobalInterpretBrushLib();