ABLATE Source Documentation  0.12.34
probeInitializer.hpp
1 #ifndef ABLATELIBRARY_PROBEINITIALIZER_HPP
2 #define ABLATELIBRARY_PROBEINITIALIZER_HPP
3 
4 #include <filesystem>
5 #include <memory>
6 #include "environment/runEnvironment.hpp"
7 #include "probe.hpp"
8 
9 namespace ablate::monitors::probes {
11  public:
12  virtual ~ProbeInitializer() = default;
13 
18  virtual const std::vector<Probe>& GetProbes() const = 0;
19 
24  virtual std::filesystem::path GetDirectory() const { return ablate::environment::RunEnvironment::Get().GetOutputDirectory(); }
25 
30  virtual void Report(MPI_Comm) const {}
31 };
32 } // namespace ablate::monitors::probes
33 #endif // ABLATELIBRARY_PROBEINITIALIZER_HPP
const std::filesystem::path & GetOutputDirectory() const
Definition: runEnvironment.hpp:75
Definition: probeInitializer.hpp:10
virtual const std::vector< Probe > & GetProbes() const =0
virtual void Report(MPI_Comm) const
Definition: probeInitializer.hpp:30
virtual std::filesystem::path GetDirectory() const
Definition: probeInitializer.hpp:24