ESyS-Particle  2.3.4
TimingDataWriter Class Reference

#include <Timer.h>

Collaboration diagram for TimingDataWriter:

Public Member Functions

 TimingDataWriter (const std::string &fileName, MpiWTimers &timers)
 
std::ostream & getOStream ()
 
const std::string & getFileName () const
 
void writeHeader ()
 
void appendData ()
 

Private Types

typedef boost::shared_ptr< std::ofstream > OFStreamPtr
 

Private Attributes

std::string m_fileName
 
MpiWTimersm_pTimers
 
bool m_haveWrittenHeader
 
OFStreamPtr m_oFStreamPtr
 

Detailed Description

Helper for appending timing data to file, caches an ofstream for a file.

Member Typedef Documentation

◆ OFStreamPtr

typedef boost::shared_ptr<std::ofstream> TimingDataWriter::OFStreamPtr
private

Constructor & Destructor Documentation

◆ TimingDataWriter()

TimingDataWriter::TimingDataWriter ( const std::string &  fileName,
MpiWTimers timers 
)

Member Function Documentation

◆ appendData()

void TimingDataWriter::appendData ( )

References MpiWTimers::appendData(), getOStream(), m_pTimers, and writeHeader().

Referenced by MpiWTimers::appendData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFileName()

const std::string & TimingDataWriter::getFileName ( ) const

References m_fileName.

Referenced by getOStream().

Here is the caller graph for this function:

◆ getOStream()

std::ostream & TimingDataWriter::getOStream ( )

References getFileName(), m_oFStreamPtr, and NULL.

Referenced by appendData(), and writeHeader().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeHeader()

void TimingDataWriter::writeHeader ( )

References getOStream(), m_haveWrittenHeader, m_pTimers, and MpiWTimers::writeHeader().

Referenced by appendData().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_fileName

std::string TimingDataWriter::m_fileName
private

Referenced by getFileName().

◆ m_haveWrittenHeader

bool TimingDataWriter::m_haveWrittenHeader
private

Referenced by writeHeader().

◆ m_oFStreamPtr

OFStreamPtr TimingDataWriter::m_oFStreamPtr
private

Referenced by getOStream().

◆ m_pTimers

MpiWTimers* TimingDataWriter::m_pTimers
private

Referenced by appendData(), and writeHeader().


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