FACT++  1.0
Fits Class Reference

#include <Fits.h>

+ Collaboration diagram for Fits:

Public Member Functions

 Fits ()
 
virtual ~Fits ()
 
bool IsOpen () const
 returns wether or not the file is currently open or not More...
 
void AddStandardColumn (const Description &desc, const string &dataFormat, void *dataPointer, long unsigned int numDataBytes)
 Adds a column that exists in all FITS files. More...
 
void InitDataColumns (const vector< Description > &desc, const vector< string > &dataFormat, MessageImp *out)
 Adds columns specific to the service being logged. More...
 
bool Open (const string &fileName, const string &tableName, uint32_t *fitsCounter, MessageImp *out, int runNumber, CCfits::FITS *file=0)
 Opens a FITS file. More...
 
bool Write (const Converter &conv, const void *data)
 Write one line of data. Use the given converter. More...
 
void Close ()
 Close the currently opened file. More...
 
void Flush ()
 Flush the currently opened file to disk. More...
 
int GetWrittenSize () const
 Get the size currently written on the disk. More...
 
string GetName () const
 

Public Attributes

int32_t fRunNumber
 current run number being logged More...
 

Private Member Functions

bool WriteHeaderKeys ()
 Write the FITS header keys. More...
 
void MoveFileToCorruptedFile ()
 

Private Attributes

FitsFilefFile
 
string fFileName
 
vector< DescriptionfStandardColDesc
 
vector< string > fStandardFormats
 Format of the standard columns. More...
 
vector< void * > fStandardPointers
 the pointers to the standard variables More...
 
vector< int > fStandardNumBytes
 the number of bytes taken by each standard variable More...
 
vector< DescriptionfDataColDesc
 the vector of data column names More...
 
string fTableDesc
 
vector< string > fDataFormats
 the data format of the data columns More...
 
vector< char > fCopyBuffer
 the copy buffer. Required to put the standard and data variable in contguous memory More...
 
double fEndMjD
 to keep track of the time of the latest written entry (to update the header when closing the file) More...
 
uint32_t * fNumOpenFitsFiles
 Keep track of number of opened fits. More...
 
MessageImpfMess
 were to log the errors More...
 

Detailed Description

Definition at line 11 of file Fits.h.


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