SMILE
v2.5
Schwarzschild Modelling Interactive expLoratory Environment
|
Text file with three coordinates, possibly three velocities and mass, space or tab-separated. More...
#include <iosnapshot.h>
Public Member Functions | |
CIOSnapshotText (const std::string &_fileName) | |
virtual bool | readSnapshot (CPointMassSet< float > *&points) |
read a snapshot from the file; More... | |
virtual bool | readSnapshot (CPointMassSet< double > *&points) |
virtual bool | writeSnapshot (const CPointMassSet< float > *points) |
write a snapshot to the file; return success or failure. More... | |
virtual bool | writeSnapshot (const CPointMassSet< double > *points) |
Private Member Functions | |
template<typename NumT > | |
bool | readSnapshotT (CPointMassSet< NumT > *&points) |
template<typename NumT > | |
bool | writeSnapshotT (const CPointMassSet< NumT > *points) |
Private Attributes | |
const std::string | fileName |
Text file with three coordinates, possibly three velocities and mass, space or tab-separated.
|
inlinevirtual |
read a snapshot from the file;
[in,out] | points | is a pointer to the CPointMassSet class; if it is NULL then a new instance of this class is created, otherwise the content of this object is replaced by the new snapshot. |
Implements smile::CBasicIOSnapshot.
|
inlinevirtual |
write a snapshot to the file; return success or failure.
Implements smile::CBasicIOSnapshot.