1 #ifndef TOOLS_ANALYZER_H 2 #define TOOLS_ANALYZER_H 11 #include <util/param/ParamComposite.h> 12 #include <util/misc/FileMaster.h> 18 namespace Util {
class FileMaster; }
108 virtual void sample(
long iStep) = 0;
121 int interval()
const;
128 bool isAtInterval(
long counter)
const;
143 void readInterval(std::istream &in);
150 void readOutputFileName(std::istream &in);
165 const std::string& outputFileName()
const;
170 std::string outputFileName(
const std::string& suffix)
const;
175 std::string outputFileName_;
187 bool ownsFileMaster_;
196 inline int Analyzer::interval()
const 197 {
return interval_; }
202 inline bool Analyzer::isAtInterval(
long counter)
const 203 {
return (counter%interval_ == 0); }
208 inline const std::string& Analyzer::outputFileName()
const 209 {
return outputFileName_; }
215 {
return *configurationPtr_; }
Utility classes for scientific computation.
A FileMaster manages input and output files for a simulation.
An object that can read multiple parameters from file.