EPANET
3.0
EPANET Development Project
Main Page
Classes
Files
File List
File Members
src
Output
projectwriter.h
Go to the documentation of this file.
1
/* EPANET 3
2
*
3
* Copyright (c) 2016 Open Water Analytics
4
* Licensed under the terms of the MIT License (see the LICENSE file for details).
5
*
6
*/
7
10
11
#ifndef INPUTWRITER_H_
12
#define INPUTWRITER_H_
13
14
#include <fstream>
15
16
class
Network
;
17
20
21
class
ProjectWriter
22
{
23
public
:
24
ProjectWriter
();
25
~
ProjectWriter
();
26
int
writeFile(
const
char
* fname,
Network
* nw);
27
28
private
:
29
void
writeTitle();
30
void
writeJunctions();
31
void
writeReservoirs();
32
void
writeTanks();
33
void
writePipes();
34
void
writePumps();
35
void
writeValves();
36
void
writeDemands();
37
void
writeEmitters();
38
void
writeLeakages();
39
void
writeStatus();
40
void
writePatterns();
41
void
writeCurves();
42
void
writeControls();
43
void
writeQuality();
44
void
writeSources();
45
void
writeMixing();
46
void
writeReactions();
47
void
writeEnergy();
48
void
writeTimes();
49
void
writeOptions();
50
void
writeReport();
51
void
writeTags();
52
void
writeCoords();
53
void
writeAuxData();
54
Network
* network;
55
std::fstream fout;
56
};
57
58
#endif
ProjectWriter
The ProjectWriter class writes a project's data to file.
Definition:
projectwriter.h:21
Network
Contains the data elements that describe a pipe network.
Definition:
network.h:41
Generated by
1.8.11