-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPTableCont.h
More file actions
36 lines (29 loc) · 879 Bytes
/
PTableCont.h
File metadata and controls
36 lines (29 loc) · 879 Bytes
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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: PTable.h
* Author: pwof
*
* Created on May 31, 2018, 3:44 PM
*/
#ifndef PTABLECONT_H
#define PTABLECONT_H
typedef std::map<double, double[2]> PTableDRow;
class PTableCont {
public:
PTableCont();
PTableCont(const PTableCont& orig);
virtual ~PTableCont();
bool ReadFromFile(std::string FileName);
std::map<int, PTableDRow> GetData(std::string type) {return Data[type];}
void Write(std::string type);
private:
// Data["even"] has "even" ptable info
// Data["odd"] has "odd" ptable info
// Data["all"] has "no difference even/odd" ptable info
std::map<std::string, std::map<int, PTableDRow> > Data;
};
#endif /* PTABLECONT_H */