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

Class for writing data to a text file, possibly accompanied by binary files for the orbit library. More...

#include <iodata.h>

Public Member Functions

 CFileOutputText ()
 create object but don't open file
 
 CFileOutputText (const std::string &_baseFileName)
 create object and open the file
 
void open (const std::string &_baseFileName)
 open a new file for writing; if another file was opened then close it beforehand
 
 ~CFileOutputText ()
 close file(s) if they were opened
 
bool ok () const
 status of last file operation
 
bool writeOrbit (const COrbit *value)
 write a trajectory to the text file
 
bool writeOrbitLibrary (const COrbitLibrary *value, bool withModelData)
 write orbit library to the text file, and possibly the data for Schwarzschild modelling to binary files.
 

Private Member Functions

bool writeOrbitDesc (const COrbitDesc *value, bool withModelData)
 write one line to the orbit library text file, and possibly the information objects to binary files
 

Private Attributes

std::string baseFileName
 name of the text file; if necessary to write binary files, extensions are added to this name
 
bool status
 status of last i/o operation
 
bool isopen
 indicates whether the file is open
 
bool started
 whether the output to the text file has begun and the header line has been written
 
size_t orbitIndex
 index of current orbit in the orbit library (for keeping track of the position in binary files)
 
std::ofstream strmText
 stream object for the main text file
 
hid_t h5_fileSchwData
 identificator of HDF5 file with Schwarzschild model data arrays (CSchwInformation)
 
hid_t h5_datasetSchwData
 identificator of HDF5 dataset for Schwarzschild data
 
hid_t h5_fileTrajSample
 identificator of HDF5 file with trajectory sample (CTrajSampleInformation)
 
hid_t h5_datasetTrajSample
 identificator of HDF5 dataset with trajectory sample
 

Detailed Description

Class for writing data to a text file, possibly accompanied by binary files for the orbit library.


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