-
Notifications
You must be signed in to change notification settings - Fork 0
/
Analyse.hpp
49 lines (41 loc) · 1.35 KB
/
Analyse.hpp
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
#ifndef DEF_ANALYSE
#define DEF_ANALYSE
#include "Directory.hpp"
#include "CreateSystem.hpp"
class Analyse: public IOSystem{
public:
Analyse(std::string const& sim, unsigned int const& max_level, unsigned int const& bash_file, unsigned int const& ref);
/*Default destructor*/
virtual ~Analyse();
/*{Forbidden*/
Analyse() = delete;
Analyse(Analyse const&) = delete;
Analyse(Analyse&&) = delete;
Analyse& operator=(Analyse const&) = delete;
/*}*/
protected:
List<std::string> all_link_names_;
List<std::string> all_link_files_;
List<RSTFile> list_rst_;
unsigned int const ref_; //!< stores the type of lattice
unsigned int const max_level_;
unsigned int study_;
unsigned int nof_ = 0;
unsigned int level_ = 0;
std::string rel_level_ = "";
bool consider_only_most_recent_jdbin_ = false;
void do_analyse();
/*!At each level, this method is called to create useful output files*/
virtual void open_files() = 0;
/*!At each level, this method is called to close open files*/
virtual void close_files() = 0;
std::string extract_default();
std::string extract_best_of_previous_level();
std::string fit_therm_limit();
private:
unsigned int const bash_file_;//!< 0: execute bash commands; 1: write bash file: 2: execute bash file
void recursive_search();
void search_jdbin();
void extract_jdbin();
};
#endif