EPANET
3.0
EPANET Development Project
Main Page
Classes
Files
File List
File Members
src
Elements
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
Element
Abstract parent class for all pipe network components.
Definition:
element.h:19
Element::name
std::string name
element's ID name
Definition:
element.h:28
Element::index
int index
index in array of elements
Definition:
element.h:29
Generated by
1.8.11