Chaste
Release::3.4
|
#include <AbstractCellBasedWriter.hpp>
Public Member Functions | |
AbstractCellBasedWriter (const std::string &rFileName) | |
virtual | ~AbstractCellBasedWriter () |
void | CloseFile () |
virtual void | OpenOutputFile (OutputFileHandler &rOutputFileHandler) |
void | OpenOutputFileForAppend (OutputFileHandler &rOutputFileHandler) |
virtual void | WriteTimeStamp () |
virtual void | WriteNewline () |
void | SetFileName (std::string fileName) |
std::string | GetFileName () |
Public Member Functions inherited from Identifiable | |
virtual | ~Identifiable () |
std::string | GetIdentifier () const |
Protected Attributes | |
std::string | mFileName |
out_stream | mpOutStream |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Abstract class for a writer that takes data from an AbstractCellPopulation and writes it to file.
Definition at line 48 of file AbstractCellBasedWriter.hpp.
AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::AbstractCellBasedWriter | ( | const std::string & | rFileName | ) |
Constructor.
rFileName | the name of the file to write to. |
Definition at line 39 of file AbstractCellBasedWriter.cpp.
|
virtual |
Virtual destructor.
Definition at line 45 of file AbstractCellBasedWriter.cpp.
void AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::CloseFile | ( | ) |
Close mpOutStream.
Definition at line 50 of file AbstractCellBasedWriter.cpp.
Referenced by AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::CloseRoundRobinWritersFiles(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::CloseWritersFiles().
std::string AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::GetFileName | ( | ) |
Definition at line 86 of file AbstractCellBasedWriter.cpp.
|
virtual |
Open mpOutStream for writing.
rOutputFileHandler | handler for the directory in which to open this file. |
Definition at line 56 of file AbstractCellBasedWriter.cpp.
References OutputFileHandler::OpenOutputFile().
Referenced by AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::OpenWritersFiles().
void AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::OpenOutputFileForAppend | ( | OutputFileHandler & | rOutputFileHandler | ) |
Open mpOutStream for appending.
rOutputFileHandler | handler for the directory in which to open this file. |
Definition at line 62 of file AbstractCellBasedWriter.cpp.
References OutputFileHandler::OpenOutputFile().
Referenced by AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::OpenRoundRobinWritersFilesForAppend(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::WriteResultsToFiles().
|
inlineprivate |
Serialize the object.
archive | the archive |
version | the current version of this class |
Definition at line 61 of file AbstractCellBasedWriter.hpp.
References AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mFileName.
void AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::SetFileName | ( | std::string | fileName | ) |
Set the output file name. This method allows the user to change mFileName from its default value, which is set in each subclass's constructor.
fileName | the output file name |
Definition at line 80 of file AbstractCellBasedWriter.cpp.
|
virtual |
Add a newline character to mpOutStream.
Definition at line 74 of file AbstractCellBasedWriter.cpp.
|
virtual |
Write the current time stamp to mpOutStream.
Definition at line 68 of file AbstractCellBasedWriter.cpp.
References SimulationTime::GetTime(), and SimulationTime::Instance().
|
friend |
Needed for serialization.
Definition at line 53 of file AbstractCellBasedWriter.hpp.
|
protected |
The name of the output file.
Definition at line 69 of file AbstractCellBasedWriter.hpp.
Referenced by AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::serialize().
|
protected |
An output stream for writing data.
Definition at line 72 of file AbstractCellBasedWriter.hpp.