-
Notifications
You must be signed in to change notification settings - Fork 2
/
ONTCV.cpp
48 lines (31 loc) · 1.11 KB
/
ONTCV.cpp
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
/*
*******************************************************************
OOTEN: Object Oriented Toolkit for Epanet
ONTCV.CPP - Implementation of OOTEN ONTCV (throttle control valve) class
VERSION: 1.00beta
DATE: 13 June 2003
AUTHOR: JE van Zyl
Rand Afrikaans University
Johannesburg
South Africa
jevz@ing.rau.ac.za
*******************************************************************
*/
//---------------------------------------------------------------------------
#pragma hdrstop
#include "ONTCV.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
ONTCV::ONTCV(void) {}
ONTCV::ONTCV(int enIndex, ONSystem* parent, ONNode* startNode, ONNode* endNode)
:ONValve(enIndex, parent, startNode, endNode) {}
ONTCV::ONTCV(ONTCV &o):ONValve(o.epanetIndex(), o.parent(), o.startNode(), o.endNode()) {}
ONLink* ONTCV::clone(void)
{
return (ONLink*)(new ONTCV(*this));
}
ONTCV::~ONTCV(void) {}
ONElement::elementTpe ONTCV::type(void) const
{
return etTCV;
}