Molecular Dynamics  v0.4
Project for the Practical hosted by the Scientific Computing Chair
Static Public Member Functions | List of all members
TxtWriter Class Reference

#include <TxtWriter.h>

Collaboration diagram for TxtWriter:
Collaboration graph

Static Public Member Functions

static int writeToFile (ParticleContainer &pc, std::string filename)
 Writes particles from a given particle container to a .txt file. More...
 

Member Function Documentation

◆ writeToFile()

int TxtWriter::writeToFile ( ParticleContainer pc,
std::string  filename 
)
static

Writes particles from a given particle container to a .txt file.

Parameters
pcParticle Container which contains the particles that should be written to the .txt file.
filenameName of the file the contents of the particle container are written to. Important: Do not call the file checkpointTest14562547.txt since it could somehow interfere with the remove command in the TxtWriterTest.cpp
Returns
0, if the operation was successful, 1 otherwise.
Here is the call graph for this function:
Here is the caller graph for this function:

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