escript  Revision_4925
Public Member Functions | Private Attributes | List of all members
esysUtils::FileWriter Class Reference

#include <esysFileWriter.h>

Public Member Functions

 FileWriter ()
 
bool openFile (std::string filename, size_t initialSize=0)
 
bool writeOrdered (std::ostringstream &oss)
 
bool writeShared (std::ostringstream &oss)
 
bool writeAt (std::ostringstream &oss, long offset)
 
void close ()
 

Private Attributes

int mpiRank
 
int mpiSize
 
void * mpiComm
 
std::ofstream ofs
 

Constructor & Destructor Documentation

esysUtils::FileWriter::FileWriter ( )
inline

Member Function Documentation

void esysUtils::FileWriter::close ( )
inline
bool esysUtils::FileWriter::openFile ( std::string  filename,
size_t  initialSize = 0 
)
inline
bool esysUtils::FileWriter::writeAt ( std::ostringstream &  oss,
long  offset 
)
inline
bool esysUtils::FileWriter::writeOrdered ( std::ostringstream &  oss)
inline

References mpiSize, and ofs.

bool esysUtils::FileWriter::writeShared ( std::ostringstream &  oss)
inline

References mpiSize, and ofs.

Member Data Documentation

void* esysUtils::FileWriter::mpiComm
private

Referenced by openFile().

int esysUtils::FileWriter::mpiRank
private

Referenced by openFile().

int esysUtils::FileWriter::mpiSize
private
std::ofstream esysUtils::FileWriter::ofs
private

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