Chaste
Release::2017.1
|
#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.
References AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mpOutStream.
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.
References AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mFileName.
|
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 AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mFileName, AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mpOutStream, and 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 AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mFileName, AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mpOutStream, and 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.
References AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mFileName.
|
virtual |
Add a newline character to mpOutStream.
Definition at line 74 of file AbstractCellBasedWriter.cpp.
References AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mpOutStream.
Referenced by CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >::WriteHeader().
|
virtual |
Write the current time stamp to mpOutStream.
Definition at line 68 of file AbstractCellBasedWriter.cpp.
References SimulationTime::GetTime(), SimulationTime::Instance(), and AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::mpOutStream.
|
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 >::GetFileName(), AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::OpenOutputFile(), AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::OpenOutputFileForAppend(), AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::serialize(), and AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::SetFileName().
|
protected |
An output stream for writing data.
Definition at line 72 of file AbstractCellBasedWriter.hpp.
Referenced by AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::CloseFile(), AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::OpenOutputFile(), AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::OpenOutputFileForAppend(), CellPopulationElementWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), VoronoiDataWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), CellPopulationAreaWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), NodeVelocityWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), HeterotypicBoundaryLengthWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), NodeLocationWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), BoundaryNodeWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), CellPopulationAdjacencyMatrixWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), VertexT2SwapLocationsWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), VertexT1SwapLocationsWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), VertexT3SwapLocationsWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), NodeLocationWriter< ELEMENT_DIM, SPACE_DIM >::VisitAnyPopulation(), CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >::VisitAnyPopulation(), BoundaryNodeWriter< ELEMENT_DIM, SPACE_DIM >::VisitAnyPopulation(), CellPopulationAdjacencyMatrixWriter< ELEMENT_DIM, SPACE_DIM >::VisitAnyPopulation(), CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >::VisitAnyPopulation(), CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >::VisitAnyPopulation(), RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::VisitAnyPopulation(), CellBetaCateninWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellMutationStatesWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellLocationIndexWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellLabelWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellVolumesWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellRosetteRankWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellIdWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellAgesWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellAncestorWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellProliferativePhasesWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellRadiusWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellCycleModelProteinConcentrationsWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellDeltaNotchWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellProliferativeTypesWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellAppliedForceWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellDataItemWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >::WriteHeader(), AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::WriteNewline(), and AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >::WriteTimeStamp().