![]() |
SMILE
v2.5
Schwarzschild Modelling Interactive expLoratory Environment
|
Input/output of Nbody snapshots in various formats. More...
#include "common.h"

Classes | |
| class | smile::CBasicIOSnapshot |
| The abstract class implementing reading and writing snapshots; derived classes take the filename as the argument of the constructor. More... | |
| class | smile::CIOSnapshotText |
| Text file with three coordinates, possibly three velocities and mass, space or tab-separated. More... | |
| class | smile::CIOSnapshotNemo |
| NEMO snapshot format. More... | |
| class | smile::CIOSnapshotGadget |
| GADGET snapshot format; needs UNSIO library. More... | |
Namespaces | |
| smile | |
| common namespace for all core SMILE classes, functions and variables | |
Functions | |
| CBasicIOSnapshot * | smile::createIOSnapshotRead (const std::string &fileName) |
| creates an instance of appropriate snapshot reader, according to the file format determined by reading first few bytes, or NULL if a file doesn't exist | |
| CBasicIOSnapshot * | smile::createIOSnapshotWrite (const std::string &fileFormat, const std::string &fileName, const std::string &header="") |
| creates an instance of snapshot writer for a given format name, or NULL if the format name string is incorrect | |
Input/output of Nbody snapshots in various formats.
The base class, smile::CBasicIOSnapshot, is used as the common interface for reading and writing Nbody snapshots to disk. The snapshots are provided by smile::CPointMassSet. Derived classes implement the data storage in various formats. Helper routines create an instance of the class corresponding to a given format string or to the actual file format.
1.8.8