OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::StatWriter Class Reference

A configurable Statistics Writer. More...

#include "io/StatWriter.hpp"

Public Member Functions

 StatWriter (const std::string &filename, Stats *stats)
 
 ~StatWriter ()
 
void writeStat ()
 
void writeStatReport ()
 
void setReportFileName (const std::string &rfn)
 

Private Member Functions

void writeTitle ()
 
void writeReal (int i)
 
void writeVector (int i)
 
void writePotVec (int i)
 
void writeMatrix (int i)
 

Private Attributes

std::ofstream statfile_
 
std::ofstream reportfile_
 
std::string reportFileName_
 
std::string version
 
Statsstats_
 

Detailed Description

A configurable Statistics Writer.

Definition at line 57 of file StatWriter.hpp.

Constructor & Destructor Documentation

◆ StatWriter()

OpenMD::StatWriter::StatWriter ( const std::string &  filename,
Stats stats 
)

◆ ~StatWriter()

OpenMD::StatWriter::~StatWriter ( )

Definition at line 107 of file StatWriter.cpp.

References statfile_, and worldRank.

Member Function Documentation

◆ setReportFileName()

void OpenMD::StatWriter::setReportFileName ( const std::string &  rfn)
inline

◆ writeMatrix()

void OpenMD::StatWriter::writeMatrix ( int  i)
private

◆ writePotVec()

void OpenMD::StatWriter::writePotVec ( int  i)
private

◆ writeReal()

void OpenMD::StatWriter::writeReal ( int  i)
private

◆ writeStat()

◆ writeStatReport()

◆ writeTitle()

void OpenMD::StatWriter::writeTitle ( )
private

◆ writeVector()

void OpenMD::StatWriter::writeVector ( int  i)
private

Member Data Documentation

◆ reportfile_

std::ofstream OpenMD::StatWriter::reportfile_
private

Definition at line 74 of file StatWriter.hpp.

Referenced by writeStatReport().

◆ reportFileName_

std::string OpenMD::StatWriter::reportFileName_
private

Definition at line 75 of file StatWriter.hpp.

Referenced by setReportFileName(), and writeStatReport().

◆ statfile_

std::ofstream OpenMD::StatWriter::statfile_
private

◆ stats_

Stats* OpenMD::StatWriter::stats_
private

◆ version

std::string OpenMD::StatWriter::version
private

Definition at line 76 of file StatWriter.hpp.

Referenced by StatWriter(), and writeTitle().


The documentation for this class was generated from the following files: