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.

68 lines
1.5 KiB
C++

#pragma once
#ifndef WellData_h__
#define WellData_h__
namespace NChart
{
struct AFX_EXT_CLASS WELLPIEGRAPHDATA{
double oilPercent;
double waterPercent;
};
class AFX_EXT_CLASS CWellData : public CObject
{
public:
CWellData();
CWellData(const CWellData & data);
virtual ~CWellData();
CWellData & operator = (const CWellData & refVal);
void SetOilAndWaterSumAvg(double doilAndWaterSumAvg);
double GetOilAndWaterSumAvg();
void SetGasAvg(double dgasAvg);
double GetGasAvg();
CString Name() const { return name; }
void Name(CString val) { name = val; }
double X() const { return x; }
void X(double val) { x = val; }
double Oil() const { return oil; }
void Oil(double val) { oil = val; }
double Gas() const { return gas; }
void Gas(double val) { gas = val; }
double Water() const { return water; }
void Water(double val) { water = val; }
double Y() const { return y; }
void Y(double val) { y = val; }
double SumOfOilWater() const { return sumOfOilWater; }
void SumOfOilWater(double val) { sumOfOilWater = val; }
double GetOilWaterSum();
double GetOilAndWaterSumScale();
double GetGasHistogramScale();
WELLPIEGRAPHDATA GetOilWaterPercent();
static double oilAndWaterSumAvg;
static double gasAvg;
protected:
CString name;
double x;
double y;
double oil;
double gas;
double water;
WELLPIEGRAPHDATA pieData;
double sumOfOilWater;
};
}//namespace
using namespace NChart;
#endif // WellData_h__