Xped
Loading...
Searching...
No Matches
ObservableBase.hpp
Go to the documentation of this file.
1#ifndef XPED_OBSERVABLE_BASE_HPP
2#define XPED_OBSERVABLE_BASE_HPP
3
4#include <string>
5
6#include <highfive/H5File.hpp>
7
8namespace Xped {
9
11{
12 explicit ObservableBase(const std::string& name_in = "", bool MEASURE_IN = true)
13 : name(name_in)
14 , MEASURE(MEASURE_IN)
15 {}
16
17 virtual std::string file_name() const { return "Op"; };
18 virtual std::string format() const { return "Op"; };
19
20 virtual std::string getResString(const std::string& offset) const = 0;
21
22 virtual void toFile(HighFive::File& file, const std::string&) const = 0;
23
24 std::string name = "Op";
25 bool MEASURE = true;
26
27 virtual ~ObservableBase() = default;
28};
29
30} // namespace Xped
31#endif
Definition: bench.cpp:62
Definition: ObservableBase.hpp:11
virtual std::string file_name() const
Definition: ObservableBase.hpp:17
virtual void toFile(HighFive::File &file, const std::string &) const =0
std::string name
Definition: ObservableBase.hpp:24
ObservableBase(const std::string &name_in="", bool MEASURE_IN=true)
Definition: ObservableBase.hpp:12
virtual std::string format() const
Definition: ObservableBase.hpp:18
virtual std::string getResString(const std::string &offset) const =0
virtual ~ObservableBase()=default
bool MEASURE
Definition: ObservableBase.hpp:25