-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepanet2_8h_source.html
431 lines (429 loc) · 58.5 KB
/
epanet2_8h_source.html
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>EPANET: /Users/sam/Dropbox (CitiLogics)/Code/EPANET-OWA/include/epanet2.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">EPANET
 <span id="projectnumber">2.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('epanet2_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Modules</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">epanet2.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="epanet2_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *******************************************************************</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> </span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> EPANET2.H - Prototypes for EPANET Functions Exported to DLL Toolkit</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> </span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> VERSION: 2.00</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> DATE: 5/8/00</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> 10/25/00</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> 3/1/01</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> 8/15/07 (2.00.11)</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> 2/14/08 (2.00.12)</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> AUTHORS: L. Rossman - US EPA - NRMRL</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> OpenWaterAnalytics members: see git stats for contributors</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> </span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> *******************************************************************</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef EPANET2_H</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#define EPANET2_H</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// the toolkit can be compiled with support for double-precision as well.</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// just make sure that you use the correct #define in your client code.</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#ifndef EN_API_FLOAT_TYPE</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor"> #define EN_API_FLOAT_TYPE float</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// --- define WINDOWS</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#undef WINDOWS</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#ifdef _WIN32</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor"> #define WINDOWS</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#ifdef __WIN32__</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor"> #define WINDOWS</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// --- define DLLEXPORT</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#ifndef DLLEXPORT</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor"> #ifdef WINDOWS</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor"> #ifdef __cplusplus</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor"> #define DLLEXPORT extern "C" __declspec(dllexport)</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor"> #else</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor"> #define DLLEXPORT __declspec(dllexport) __stdcall</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor"> #endif // __cplusplus</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor"> #elif defined(CYGWIN)</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor"> #define DLLEXPORT __stdcall</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor"> #elif defined(__APPLE__)</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor"> #ifdef __cplusplus</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor"> #define DLLEXPORT</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor"> #else</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor"> #define DLLEXPORT</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor"> #endif</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor"> #else</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor"> #define DLLEXPORT</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor"> #endif</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">// --- Define the EPANET toolkit constants</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor">#define EN_ELEVATION 0 </span><span class="comment">/* Node parameters */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#define EN_BASEDEMAND 1</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#define EN_PATTERN 2</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#define EN_EMITTER 3</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor">#define EN_INITQUAL 4</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#define EN_SOURCEQUAL 5</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor">#define EN_SOURCEPAT 6</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="preprocessor">#define EN_SOURCETYPE 7</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#define EN_TANKLEVEL 8</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="preprocessor">#define EN_DEMAND 9</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">#define EN_HEAD 10</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="preprocessor">#define EN_PRESSURE 11</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#define EN_QUALITY 12</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor">#define EN_SOURCEMASS 13</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="preprocessor">#define EN_INITVOLUME 14</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor">#define EN_MIXMODEL 15</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor">#define EN_MIXZONEVOL 16</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="preprocessor">#define EN_TANKDIAM 17</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor">#define EN_MINVOLUME 18</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">#define EN_VOLCURVE 19</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor">#define EN_MINLEVEL 20</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor">#define EN_MAXLEVEL 21</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor">#define EN_MIXFRACTION 22</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="preprocessor">#define EN_TANK_KBULK 23</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="preprocessor">#define EN_TANKVOLUME 24</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="preprocessor">#define EN_MAXVOLUME 25</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="preprocessor">#define EN_DIAMETER 0 </span><span class="comment">/* Link parameters */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="preprocessor">#define EN_LENGTH 1</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="preprocessor">#define EN_ROUGHNESS 2</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="preprocessor">#define EN_MINORLOSS 3</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="preprocessor">#define EN_INITSTATUS 4</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor">#define EN_INITSETTING 5</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="preprocessor">#define EN_KBULK 6</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="preprocessor">#define EN_KWALL 7</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="preprocessor">#define EN_FLOW 8</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="preprocessor">#define EN_VELOCITY 9</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="preprocessor">#define EN_HEADLOSS 10</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="preprocessor">#define EN_STATUS 11</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="preprocessor">#define EN_SETTING 12</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="preprocessor">#define EN_ENERGY 13</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="preprocessor">#define EN_LINKQUAL 14</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="preprocessor">#define EN_LINKPATTERN 15</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="preprocessor">#define EN_DURATION 0 </span><span class="comment">/* Time parameters */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="preprocessor">#define EN_HYDSTEP 1</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#define EN_QUALSTEP 2</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor">#define EN_PATTERNSTEP 3</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="preprocessor">#define EN_PATTERNSTART 4</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="preprocessor">#define EN_REPORTSTEP 5</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="preprocessor">#define EN_REPORTSTART 6</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="preprocessor">#define EN_RULESTEP 7</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="preprocessor">#define EN_STATISTIC 8</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="preprocessor">#define EN_PERIODS 9</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="preprocessor">#define EN_STARTTIME 10 </span><span class="comment">/* Added TNT 10/2/2009 */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="preprocessor">#define EN_HTIME 11</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor">#define EN_QTIME 12</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="preprocessor">#define EN_HALTFLAG 13</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">#define EN_NEXTEVENT 14</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="preprocessor">#define EN_ITERATIONS 0</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="preprocessor">#define EN_RELATIVEERROR 1</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="preprocessor">#define EN_NODECOUNT 0 </span><span class="comment">/* Component counts */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="preprocessor">#define EN_TANKCOUNT 1</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="preprocessor">#define EN_LINKCOUNT 2</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="preprocessor">#define EN_PATCOUNT 3</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="preprocessor">#define EN_CURVECOUNT 4</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="preprocessor">#define EN_CONTROLCOUNT 5</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor">#define EN_JUNCTION 0 </span><span class="comment">/* Node types */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="preprocessor">#define EN_RESERVOIR 1</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="preprocessor">#define EN_TANK 2</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="preprocessor">#define EN_CVPIPE 0 </span><span class="comment">/* Link types. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="preprocessor">#define EN_PIPE 1 </span><span class="comment">/* See LinkType in TYPES.H */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="preprocessor">#define EN_PUMP 2</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="preprocessor">#define EN_PRV 3</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="preprocessor">#define EN_PSV 4</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="preprocessor">#define EN_PBV 5</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="preprocessor">#define EN_FCV 6</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="preprocessor">#define EN_TCV 7</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="preprocessor">#define EN_GPV 8</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="preprocessor">#define EN_NONE 0 </span><span class="comment">/* Quality analysis types. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="preprocessor">#define EN_CHEM 1 </span><span class="comment">/* See QualType in TYPES.H */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="preprocessor">#define EN_AGE 2</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="preprocessor">#define EN_TRACE 3</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="preprocessor">#define EN_CONCEN 0 </span><span class="comment">/* Source quality types. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="preprocessor">#define EN_MASS 1 </span><span class="comment">/* See SourceType in TYPES.H. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="preprocessor">#define EN_SETPOINT 2</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor">#define EN_FLOWPACED 3</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="preprocessor">#define EN_CFS 0 </span><span class="comment">/* Flow units types. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="preprocessor">#define EN_GPM 1 </span><span class="comment">/* See FlowUnitsType */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="preprocessor">#define EN_MGD 2 </span><span class="comment">/* in TYPES.H. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="preprocessor">#define EN_IMGD 3</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="preprocessor">#define EN_AFD 4</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="preprocessor">#define EN_LPS 5</span></div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="preprocessor">#define EN_LPM 6</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="preprocessor">#define EN_MLD 7</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="preprocessor">#define EN_CMH 8</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="preprocessor">#define EN_CMD 9</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="preprocessor">#define EN_TRIALS 0 </span><span class="comment">/* Misc. options */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="preprocessor">#define EN_ACCURACY 1</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="preprocessor">#define EN_TOLERANCE 2</span></div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="preprocessor">#define EN_EMITEXPON 3</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="preprocessor">#define EN_DEMANDMULT 4</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="preprocessor">#define EN_LOWLEVEL 0 </span><span class="comment">/* Control types. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="preprocessor">#define EN_HILEVEL 1 </span><span class="comment">/* See ControlType */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="preprocessor">#define EN_TIMER 2 </span><span class="comment">/* in TYPES.H. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="preprocessor">#define EN_TIMEOFDAY 3</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="preprocessor">#define EN_AVERAGE 1 </span><span class="comment">/* Time statistic types. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#define EN_MINIMUM 2 </span><span class="comment">/* See TstatType in TYPES.H */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="preprocessor">#define EN_MAXIMUM 3</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="preprocessor">#define EN_RANGE 4</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="preprocessor">#define EN_MIX1 0 </span><span class="comment">/* Tank mixing models */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="preprocessor">#define EN_MIX2 1</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="preprocessor">#define EN_FIFO 2</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="preprocessor">#define EN_LIFO 3</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="preprocessor">#define EN_NOSAVE 0 </span><span class="comment">/* Save-results-to-file flag */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="preprocessor">#define EN_SAVE 1</span></div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="preprocessor">#define EN_INITFLOW 10 </span><span class="comment">/* Re-initialize flows flag */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment">// --- Declare the EPANET toolkit functions</span></div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="preprocessor">#if defined(__cplusplus)</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="epanet2_8h.html#a0647270876bbbf21b5a81660b3ddb128">ENepanet</a>(<span class="keywordtype">char</span> *inpFile, <span class="keywordtype">char</span> *rptFile, <span class="keywordtype">char</span> *binOutFile, <span class="keywordtype">void</span> (*callback) (<span class="keywordtype">char</span> *));</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  </div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="group___file_management.html#gafc5011f03a886751f7b41a75be16e2b9">ENopen</a>(<span class="keywordtype">char</span> *inpFile, <span class="keywordtype">char</span> *rptFile, <span class="keywordtype">char</span> *binOutFile);</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  </div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="group___file_management.html#gad0e4d2aaccc25eddd0cc4c15c083ac8f">ENsaveinpfile</a>(<span class="keywordtype">char</span> *filename);</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  </div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="epanet2_8h.html#af953962d462ee37493418ba5b54b2e1e">ENclose</a>();</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  </div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="group___hydraulic_functions.html#gace66aad32f79c40b0da459d60ab4ef4a">ENsolveH</a>();</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  </div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="group___hydraulic_functions.html#ga52c012b09cd536f46eea0d6903e16747">ENsaveH</a>();</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  </div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="group___hydraulic_functions.html#gaac0286dd4bbd7f4183f94bfed25f3b45">ENopenH</a>();</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  </div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="group___hydraulic_functions.html#gace15165dac61f3180e770cf406281b61">ENinitH</a>(<span class="keywordtype">int</span> initFlag);</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  </div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="group___hydraulic_functions.html#gad45bda3e7bbdfc54160847bf4c8c72e5">ENrunH</a>(<span class="keywordtype">long</span> *currentTime);</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  </div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="group___hydraulic_functions.html#ga5ac0044292927b47c6c4aa4bfa0f7b23">ENnextH</a>(<span class="keywordtype">long</span> *tStep);</div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keywordtype">int</span> DLLEXPORT ENcloseH();</div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keywordtype">int</span> DLLEXPORT ENsavehydfile(<span class="keywordtype">char</span> *filename);</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keywordtype">int</span> DLLEXPORT ENusehydfile(<span class="keywordtype">char</span> *filename);</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  </div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="keywordtype">int</span> DLLEXPORT ENsolveQ();</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="keywordtype">int</span> DLLEXPORT ENopenQ();</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="keywordtype">int</span> DLLEXPORT ENinitQ(<span class="keywordtype">int</span> saveFlag);</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keywordtype">int</span> DLLEXPORT ENrunQ(<span class="keywordtype">long</span> *currentTime);</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keywordtype">int</span> DLLEXPORT ENnextQ(<span class="keywordtype">long</span> *tStep);</div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordtype">int</span> DLLEXPORT ENstepQ(<span class="keywordtype">long</span> *timeLeft);</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordtype">int</span> DLLEXPORT ENcloseQ();</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  </div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordtype">int</span> DLLEXPORT ENwriteline(<span class="keywordtype">char</span> *line);</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="keywordtype">int</span> DLLEXPORT ENreport();</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="keywordtype">int</span> DLLEXPORT ENresetreport();</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetreport(<span class="keywordtype">char</span> *reportFormat);</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  </div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetcontrol(<span class="keywordtype">int</span> controlIndex, <span class="keywordtype">int</span> *controlType, <span class="keywordtype">int</span> *linkIdx, EN_API_FLOAT_TYPE *setting, <span class="keywordtype">int</span> *nodeIdx, EN_API_FLOAT_TYPE *level);</div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetcount(<span class="keywordtype">int</span> code, <span class="keywordtype">int</span> *count);</div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetoption(<span class="keywordtype">int</span> code, EN_API_FLOAT_TYPE *value);</div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="keywordtype">int</span> DLLEXPORT ENgettimeparam(<span class="keywordtype">int</span> code, <span class="keywordtype">long</span> *value);</div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetflowunits(<span class="keywordtype">int</span> *code);</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetpatternindex(<span class="keywordtype">char</span> *<span class="keywordtype">id</span>, <span class="keywordtype">int</span> *index);</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetpatternid(<span class="keywordtype">int</span> index, <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetpatternlen(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> *len);</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetpatternvalue(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> period, EN_API_FLOAT_TYPE *value);</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetaveragepatternvalue(<span class="keywordtype">int</span> index, EN_API_FLOAT_TYPE *value);</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetqualtype(<span class="keywordtype">int</span> *qualcode, <span class="keywordtype">int</span> *tracenode);</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <span class="keywordtype">int</span> DLLEXPORT ENgeterror(<span class="keywordtype">int</span> errcode, <span class="keywordtype">char</span> *errmsg, <span class="keywordtype">int</span> maxLen);</div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetstatistic(<span class="keywordtype">int</span> code, EN_API_FLOAT_TYPE* value);</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  </div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetnodeindex(<span class="keywordtype">char</span> *<span class="keywordtype">id</span>, <span class="keywordtype">int</span> *index);</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetnodeid(<span class="keywordtype">int</span> index, <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetnodetype(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> *code);</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetnodevalue(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> code, EN_API_FLOAT_TYPE *value);</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetcoord(<span class="keywordtype">int</span> index, EN_API_FLOAT_TYPE *x, EN_API_FLOAT_TYPE *y);</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetcoord(<span class="keywordtype">int</span> index, EN_API_FLOAT_TYPE x, EN_API_FLOAT_TYPE y);</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  </div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetnumdemands(<span class="keywordtype">int</span> nodeIndex, <span class="keywordtype">int</span> *numDemands);</div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetbasedemand(<span class="keywordtype">int</span> nodeIndex, <span class="keywordtype">int</span> demandIdx, EN_API_FLOAT_TYPE *baseDemand);</div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetdemandpattern(<span class="keywordtype">int</span> nodeIndex, <span class="keywordtype">int</span> demandIdx, <span class="keywordtype">int</span> *pattIdx);</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  </div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetlinkindex(<span class="keywordtype">char</span> *<span class="keywordtype">id</span>, <span class="keywordtype">int</span> *index);</div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetlinkid(<span class="keywordtype">int</span> index, <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetlinktype(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> *code);</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetlinknodes(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> *node1, <span class="keywordtype">int</span> *node2);</div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetlinkvalue(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> code, EN_API_FLOAT_TYPE *value);</div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  </div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetcurve(<span class="keywordtype">int</span> curveIndex, <span class="keywordtype">char</span>* <span class="keywordtype">id</span>, <span class="keywordtype">int</span> *nValues, EN_API_FLOAT_TYPE **xValues, EN_API_FLOAT_TYPE **yValues);</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetheadcurve(<span class="keywordtype">int</span>, <span class="keywordtype">char</span> *);</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  </div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="keywordtype">int</span> DLLEXPORT <a class="code" href="epanet2_8h.html#a46d941b08be92598e309347f22c41892">ENgetpumptype</a>(<span class="keywordtype">int</span> linkIndex, <span class="keywordtype">int</span> *outType);</div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  </div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetversion(<span class="keywordtype">int</span> *version);</div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  </div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetcontrol(<span class="keywordtype">int</span> cindex, <span class="keywordtype">int</span> ctype, <span class="keywordtype">int</span> lindex, EN_API_FLOAT_TYPE setting, <span class="keywordtype">int</span> nindex, EN_API_FLOAT_TYPE level);</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetnodevalue(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> code, EN_API_FLOAT_TYPE v);</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetlinkvalue(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> code, EN_API_FLOAT_TYPE v);</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <span class="keywordtype">int</span> DLLEXPORT ENaddpattern(<span class="keywordtype">char</span> *<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetpattern(<span class="keywordtype">int</span> index, EN_API_FLOAT_TYPE *f, <span class="keywordtype">int</span> len);</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetpatternvalue(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> period, EN_API_FLOAT_TYPE value);</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keywordtype">int</span> DLLEXPORT ENsettimeparam(<span class="keywordtype">int</span> code, <span class="keywordtype">long</span> value);</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetoption(<span class="keywordtype">int</span> code, EN_API_FLOAT_TYPE v);</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetstatusreport(<span class="keywordtype">int</span> code);</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetqualtype(<span class="keywordtype">int</span> qualcode, <span class="keywordtype">char</span> *chemname, <span class="keywordtype">char</span> *chemunits, <span class="keywordtype">char</span> *tracenode);</div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetqualinfo(<span class="keywordtype">int</span> *qualcode, <span class="keywordtype">char</span> *chemname, <span class="keywordtype">char</span> *chemunits, <span class="keywordtype">int</span> *tracenode);</div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetbasedemand(<span class="keywordtype">int</span> nodeIndex, <span class="keywordtype">int</span> demandIdx, EN_API_FLOAT_TYPE baseDemand);</div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> </div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetcurveindex(<span class="keywordtype">char</span> *<span class="keywordtype">id</span>, <span class="keywordtype">int</span> *index);</div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetcurveid(<span class="keywordtype">int</span> index, <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetcurvelen(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> *len);</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keywordtype">int</span> DLLEXPORT ENgetcurvevalue(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> pnt, EN_API_FLOAT_TYPE *x, EN_API_FLOAT_TYPE *y);</div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetcurvevalue(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> pnt, EN_API_FLOAT_TYPE x, EN_API_FLOAT_TYPE y);</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordtype">int</span> DLLEXPORT ENsetcurve(<span class="keywordtype">int</span> index, EN_API_FLOAT_TYPE *x, EN_API_FLOAT_TYPE *y, <span class="keywordtype">int</span> len);</div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <span class="keywordtype">int</span> DLLEXPORT ENaddcurve(<span class="keywordtype">char</span> *<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  </div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="preprocessor">#if defined(__cplusplus)</span></div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> }</div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> </div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span> <span class="preprocessor">#endif //EPANET2_H</span></div>
<div class="ttc" id="epanet2_8h_html_af953962d462ee37493418ba5b54b2e1e"><div class="ttname"><a href="epanet2_8h.html#af953962d462ee37493418ba5b54b2e1e">ENclose</a></div><div class="ttdeci">int DLLEXPORT ENclose()</div><div class="ttdoc">Frees all memory and files used by EPANET. </div><div class="ttdef"><b>Definition:</b> epanet.c:273</div></div>
<div class="ttc" id="group___file_management_html_gafc5011f03a886751f7b41a75be16e2b9"><div class="ttname"><a href="group___file_management.html#gafc5011f03a886751f7b41a75be16e2b9">ENopen</a></div><div class="ttdeci">int DLLEXPORT ENopen(char *inpFile, char *rptFile, char *binOutFile)</div><div class="ttdoc">Opens EPANET input file & reads in network data. </div><div class="ttdef"><b>Definition:</b> epanet.c:187</div></div>
<div class="ttc" id="group___hydraulic_functions_html_ga5ac0044292927b47c6c4aa4bfa0f7b23"><div class="ttname"><a href="group___hydraulic_functions.html#ga5ac0044292927b47c6c4aa4bfa0f7b23">ENnextH</a></div><div class="ttdeci">int DLLEXPORT ENnextH(long *tStep)</div><div class="ttdoc">Determine time (in seconds) until next hydraulic event. </div><div class="ttdef"><b>Definition:</b> epanet.c:497</div></div>
<div class="ttc" id="group___file_management_html_gad0e4d2aaccc25eddd0cc4c15c083ac8f"><div class="ttname"><a href="group___file_management.html#gad0e4d2aaccc25eddd0cc4c15c083ac8f">ENsaveinpfile</a></div><div class="ttdeci">int DLLEXPORT ENsaveinpfile(char *filename)</div><div class="ttdoc">Saves current data to "INP" formatted text file. </div><div class="ttdef"><b>Definition:</b> epanet.c:259</div></div>
<div class="ttc" id="group___hydraulic_functions_html_ga52c012b09cd536f46eea0d6903e16747"><div class="ttname"><a href="group___hydraulic_functions.html#ga52c012b09cd536f46eea0d6903e16747">ENsaveH</a></div><div class="ttdeci">int DLLEXPORT ENsaveH()</div><div class="ttdoc">Saves hydraulic results to binary file. </div><div class="ttdef"><b>Definition:</b> epanet.c:371</div></div>
<div class="ttc" id="group___hydraulic_functions_html_gad45bda3e7bbdfc54160847bf4c8c72e5"><div class="ttname"><a href="group___hydraulic_functions.html#gad45bda3e7bbdfc54160847bf4c8c72e5">ENrunH</a></div><div class="ttdeci">int DLLEXPORT ENrunH(long *currentTime)</div><div class="ttdoc">Run a hydraulic solution period. </div><div class="ttdef"><b>Definition:</b> epanet.c:475</div></div>
<div class="ttc" id="group___hydraulic_functions_html_gaac0286dd4bbd7f4183f94bfed25f3b45"><div class="ttname"><a href="group___hydraulic_functions.html#gaac0286dd4bbd7f4183f94bfed25f3b45">ENopenH</a></div><div class="ttdeci">int DLLEXPORT ENopenH()</div><div class="ttdoc">Sets up data structures for hydraulic analysis. </div><div class="ttdef"><b>Definition:</b> epanet.c:405</div></div>
<div class="ttc" id="group___hydraulic_functions_html_gace15165dac61f3180e770cf406281b61"><div class="ttname"><a href="group___hydraulic_functions.html#gace15165dac61f3180e770cf406281b61">ENinitH</a></div><div class="ttdeci">int DLLEXPORT ENinitH(int initFlag)</div><div class="ttdoc">Initializes hydraulic analysis. </div><div class="ttdef"><b>Definition:</b> epanet.c:433</div></div>
<div class="ttc" id="epanet2_8h_html_a0647270876bbbf21b5a81660b3ddb128"><div class="ttname"><a href="epanet2_8h.html#a0647270876bbbf21b5a81660b3ddb128">ENepanet</a></div><div class="ttdeci">int DLLEXPORT ENepanet(char *inpFile, char *rptFile, char *binOutFile, void(*callback)(char *))</div><div class="ttdoc">runs a complete EPANET simulation </div><div class="ttdef"><b>Definition:</b> epanet.c:156</div></div>
<div class="ttc" id="group___hydraulic_functions_html_gace66aad32f79c40b0da459d60ab4ef4a"><div class="ttname"><a href="group___hydraulic_functions.html#gace66aad32f79c40b0da459d60ab4ef4a">ENsolveH</a></div><div class="ttdeci">int DLLEXPORT ENsolveH()</div><div class="ttdoc">Solves the network hydraulics for all time periods. </div><div class="ttdef"><b>Definition:</b> epanet.c:316</div></div>
<div class="ttc" id="epanet2_8h_html_a46d941b08be92598e309347f22c41892"><div class="ttname"><a href="epanet2_8h.html#a46d941b08be92598e309347f22c41892">ENgetpumptype</a></div><div class="ttdeci">int DLLEXPORT ENgetpumptype(int linkIndex, int *outType)</div><div class="ttdoc">Get the type of pump. </div><div class="ttdef"><b>Definition:</b> epanet.c:2785</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="epanet2_8h.html">epanet2.h</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
</ul>
</div>
</body>
</html>