-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
59 lines (45 loc) · 1.66 KB
/
main.cpp
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <iostream>
#include <fstream>
#include <sstream>
#include <map>
#include <vector>
#include <string>
#include "DirFileReader.h"
#include "ParFileReader.h"
#include "MatFileReader.h"
#include "SubFileReader.h"
#include "ExcFileReader.h"
#include "JunFileReader.h"
int main()
{
DirFileReader dirReader;
dirReader.setFileFolder("C:/Projects/readInputFiles_SEAM/readSEAM/seamInputFiles/");
dirReader.readDirFile(dirReader.getFileFolder() + "seam.in");
dirReader.displayFilePaths();
std::cout << "=========================================================\n";
std::cout << std::endl;
ParFileReader parReader;
parReader.readFromFile(dirReader.getFileFolder() + "seam.par");
parReader.displayParameters();
std::cout << "=========================================================\n";
std::cout << std::endl;
MatFileReader matReader;
matReader.readMatFile(dirReader.getFileFolder() + "seam.mat");
matReader.displayMaterials();
std::cout << "=========================================================\n";
std::cout << std::endl;
SubFileReader subReader;
subReader.readSubFile(dirReader.getFileFolder() + "seam.sub");
subReader.displaySubsystems();
std::cout << "=========================================================\n";
std::cout << std::endl;
ExcFileReader excReader;
excReader.readExcFile(dirReader.getFileFolder() + "seam.exc");
excReader.displayExcitations();
std::cout << "=========================================================\n";
std::cout << std::endl;
JunFileReader junReader;
junReader.readExcFile(dirReader.getFileFolder() + "seam.jun");
junReader.displayJunctions();
return 0;
}