SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Member Functions | Private Member Functions | Private Attributes | List of all members
smile::CIOSnapshotGadget Class Reference

GADGET snapshot format; needs UNSIO library. More...

#include <iosnapshot.h>

Inheritance diagram for smile::CIOSnapshotGadget:
Inheritance graph
[legend]
Collaboration diagram for smile::CIOSnapshotGadget:
Collaboration graph
[legend]

Public Member Functions

 CIOSnapshotGadget (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
 

Detailed Description

GADGET snapshot format; needs UNSIO library.

Member Function Documentation

virtual bool smile::CIOSnapshotGadget::readSnapshot ( CPointMassSet< float > *&  points)
inlinevirtual

read a snapshot from the file;

Parameters
[in,out]pointsis 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.
Returns
success or failure; in the latter case points may contain garbage.

Implements smile::CBasicIOSnapshot.

virtual bool smile::CIOSnapshotGadget::writeSnapshot ( const CPointMassSet< float > *  points)
inlinevirtual

write a snapshot to the file; return success or failure.

Implements smile::CBasicIOSnapshot.


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