EPANET  3.0
EPANET Development Project
element.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 ELEMENT_H_
12 #define ELEMENT_H_
13 
14 #include <string>
15 
18 
19 class Element
20 {
21  public:
22 
23  enum ElementType {NODE, LINK, PATTERN, CURVE, CONTROL};
24 
25  Element(std::string name_);
26  virtual ~Element() = 0;
27 
28  std::string name;
29  int index;
30 
31  private:
32 
33  // Elements can't be copied or tested for equality
34  Element(const Element& e);
35  Element& operator=(const Element& e);
36 };
37 
38 #endif
Abstract parent class for all pipe network components.
Definition: element.h:19
std::string name
element&#39;s ID name
Definition: element.h:28
int index
index in array of elements
Definition: element.h:29