SMILE
v2.5
Schwarzschild Modelling Interactive expLoratory Environment
|
NEMO snapshot format. More...
#include <iosnapshot.h>
Public Member Functions | |
CIOSnapshotNemo (const std::string &_fileName, const std::string &_header="") | |
create the class to read or write to the file; if writing is intended, may provide a header string in the constructor. More... | |
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 |
const std::string | header |
header string which will be written to the file | |
NEMO snapshot format.
reading is supported only if compiled with UNSIO library; writing the snapshot is implemented either by this library or by builtin routines.
|
inline |
create the class to read or write to the file; if writing is intended, may provide a header string in the constructor.
|
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.