1#ifndef RPC_ANALYZER_TPP
2#define RPC_ANALYZER_TPP
5#include <util/misc/FileMaster.h>
6#include <util/archives/Serializable_includes.h>
44 readOutputFileName(in);
54 if (baseInterval == 0) {
57 if (baseInterval < 0) {
63 readOptional<long>(in,
"interval", interval_);
72 if (interval_ % baseInterval != 0) {
73 UTIL_THROW(
"interval is not a multiple of baseInterval");
79 { read<std::string>(in,
"outputFileName", outputFileName_); }
86 { fileMasterPtr_ = &fileMaster; }
94 assert(fileMasterPtr_);
95 return (*fileMasterPtr_);
105 std::string filename = outputFileName_;
Abstract base for periodic output and/or analysis actions.
static void initStatic()
Define and initialize baseInterval.
virtual void readParameters(std::istream &in)
Read parameters from archive.
void setFileMaster(FileMaster &fileMaster)
Set the FileMaster to use to open files.
void readInterval(std::istream &in)
Optionally read interval from file, with error checking.
const std::string & outputFileName() const
Return outputFileName string.
FileMaster & fileMaster()
Get the FileMaster by reference.
virtual ~Analyzer()
Destructor.
void readOutputFileName(std::istream &in)
Read outputFileName from file.
Analyzer()
Default constructor.
A FileMaster manages input and output files for a simulation.
An object that can read multiple parameters from file.
File containing preprocessor macros for error handling.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
PSCF package top-level namespace.
Utility classes for scientific computation.