-
Notifications
You must be signed in to change notification settings - Fork 2
/
ONCurve.h
55 lines (43 loc) · 1.56 KB
/
ONCurve.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
*******************************************************************
OOTEN: Object Oriented Toolkit for Epanet
ONCURVE.H - Definition of OOTEN ONCurve class
VERSION: 1.00beta
DATE: 13 June 2003
AUTHOR: JE van Zyl
Rand Afrikaans University
Johannesburg
South Africa
jevz@ing.rau.ac.za
*******************************************************************
*///---------------------------------------------------------------------------
#ifndef ONCurveH
#define ONCurveH
//---------------------------------------------------------------------------
#include <vector>
#include <utility>
#include "ONElement.h"
using namespace std;
class ONCurve: public ONElement
{
public:
//enumerators
enum curveTpe {ctVolume, ctPump, ctEfficiency, ctHeadloss};
//type defines
typedef pair<double, double> ONPoint;
//constructors and destructors
ONCurve(void);
ONCurve(int enIndex, ONSystem* parent);
ONCurve(const ONCurve &o);
virtual ONCurve* clone(void);
virtual ~ONCurve(void);
//methods
virtual elementTpe type(void) const;
virtual string id(void) const;
ONPoint dataPoint(int index) const;
void setDataPoint(int index, const ONPoint &datapoint);
vector<ONPoint> dataPoints(void) const;
void setDataPoints(const vector<ONPoint> &values);
int size(void) const;
};
#endif