-
Notifications
You must be signed in to change notification settings - Fork 3
/
GmshReader.h
40 lines (33 loc) · 959 Bytes
/
GmshReader.h
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
#pragma once
#include <vector>
#include "Point.h"
#include "NodeIdent.h"
#include "NodeIdentMsh.h"
using namespace std;
class GmshReader {
public:
GmshReader();
void readMesh();
void constructIdNodes();
unsigned getNbNode();
unsigned getNbElMsh();
unsigned getNbElm();
string getFname();
vector<Point> & getCoordNodes();
vector<NodeIdent> & getIdNodes();
vector<NodeIdentMsh> & getIdNodesMsh();
GmshReader* setNbNode(unsigned);
GmshReader* setNbElMsh(unsigned);
GmshReader* setNbElm(unsigned);
GmshReader* setFname(string);
private:
GmshReader(const GmshReader &gmshReader); // override default copy constructor
GmshReader & operator = (const GmshReader &gmshReader); // and assignment operator
unsigned nbNode;
unsigned nbElMsh;
unsigned nbElm;
string fName;
vector<Point> coordNodes;
vector<NodeIdent> idNodes;
vector<NodeIdentMsh> idNodesMsh;
};