OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | List of all members
StatBaseWriter Class Reference

#include <StatBaseWriter.h>

Inheritance diagram for StatBaseWriter:
Inheritance graph
[legend]
Collaboration diagram for StatBaseWriter:
Collaboration graph
[legend]

Public Member Functions

 StatBaseWriter (const std::string &fname, bool restart)
 
unsigned int rewindToSpos (double maxSpos)
 delete the last 'numberOfLines' lines of the statistics file More...
 
- Public Member Functions inherited from SDDSWriter
 SDDSWriter (const std::string &fname, bool restart)
 
virtual ~SDDSWriter ()
 
virtual void write (PartBunchBase< double, 3 > *beam)
 
void rewindLines (size_t numberOfLines)
 delete the last 'numberOfLines' lines of the file 'fileName' More...
 
void replaceVersionString ()
 
double getLastValue (const std::string &column)
 
bool exists () const
 

Additional Inherited Members

- Public Types inherited from SDDSWriter
typedef std::pair< std::string,
std::string > 
desc_t
 
typedef std::tuple
< std::string, std::string,
std::string > 
param_t
 
typedef std::pair< std::string,
size_t > 
data_t
 
typedef std::tuple
< std::string, std::string,
std::string, std::string > 
cols_t
 
- Protected Member Functions inherited from SDDSWriter
void addDescription (const std::string &text, const std::string &content)
 
template<typename T >
void addParameter (const std::string &name, const std::string &type, const std::string &desc, const T &value)
 
void addDefaultParameters ()
 
void addColumn (const std::string &name, const std::string &type, const std::string &unit, const std::string &desc)
 
void addInfo (const std::string &mode, const size_t &no_row_counts)
 
void writeRow ()
 
void open ()
 
void close ()
 
void writeHeader ()
 Write SDDS header. More...
 
template<typename T >
std::string toString (const T &val)
 
bool hasColumns () const
 
- Protected Attributes inherited from SDDSWriter
std::string fname_m
 
std::ios_base::openmode mode_m
 First write to the statistics output file. More...
 
SDDSColumnSet columns_m
 

Detailed Description

Definition at line 7 of file StatBaseWriter.h.

Constructor & Destructor Documentation

StatBaseWriter::StatBaseWriter ( const std::string &  fname,
bool  restart 
)

Definition at line 3 of file StatBaseWriter.cpp.

Member Function Documentation

unsigned int StatBaseWriter::rewindToSpos ( double  maxSpos)
inline

delete the last 'numberOfLines' lines of the statistics file

Definition at line 20 of file StatBaseWriter.h.

References SDDSWriter::fname_m, IpplInfo::myNode(), and Util::rewindLinesSDDS().

Here is the call graph for this function:


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