EPANET  3.0
EPANET Development Project
linkparser.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 LINKPARSER_H_
12 #define LINKPARSER_H_
13 
14 #include <string>
15 #include <vector>
16 
17 class Link;
18 class Network;
19 
23 
25 {
26  public:
27  LinkParser() {}
28  ~LinkParser() {}
29 
30  void parseLinkData(std::string& id, Network* nw, std::vector<std::string>& tokens);
31  void parseStatus(Link* link, std::vector<std::string>& tokens);
32  void parseLeakage(Link* link, std::vector<std::string>& tokens);
33  void parseEnergy(Link* link, Network* network, std::vector<std::string>& tokens);
34  void parseReaction(Link* link, int type, std::vector<std::string>& tokens);
35 };
36 
37 #endif
Contains the data elements that describe a pipe network.
Definition: network.h:41