Scheduler
record.h
Go to the documentation of this file.
1 
10 #ifndef RECORD_H
11 #define RECORD_H
12 
13 #include <memory>
14 #include <string>
15 #include <utility>
16 #include <vector>
17 
18 #include <utils/configuration.h>
19 
20 namespace Utils
21 {
22 
23 class Record
24 {
25 public:
26  Record(std::shared_ptr<Utils::Configuration> conf, std::string name);
27  void add(double time, double element);
28  void printToFile(std::string folder) const;
29 private:
30  std::vector<std::pair<double, double>> vector;
31  std::string name;
32  std::shared_ptr<Utils::Configuration> conf;
33  bool record{true};
34 };
35 
36 
37 }
38 
39 #endif
void printToFile(std::string folder) const
Definition: record.cpp:23
void add(double time, double element)
Definition: record.cpp:41
list time
Definition: aging.py:11
Record(std::shared_ptr< Utils::Configuration > conf, std::string name)
Definition: record.cpp:18
Definition: context.h:16