Ignore:
Timestamp:
Apr 29, 2011, 10:19:46 AM (9 years ago)
Author:
lyard
Message:
Added a number of subscriptions service and better error handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Fits.h

    r10442 r10489  
    66
    77#include "Description.h"
    8 
     8#include "MessageImp.h"
    99using namespace CCfits;
    1010
     
    4646                ///to keep track of the time of the latest written entry (to update the header when closing the file)
    4747                double fEndMjD;
     48                ///to keep track of the reference MjD
     49                double fRefMjD;
    4850                ///Write the FITS header keys
    4951                void WriteHeaderKeys();
    50                
     52public:
     53                ///Name of the openned file. For querying stats
     54                std::string fFileName;
     55private:
     56                ///Keep track of number of opened fits
     57                int* fNumOpenFitsFiles;
     58                ///were to log the errors
     59                MessageImp* fMess;             
    5160        public:
    5261               
     
    6069                                         fTotalNumBytes(0),
    6170                                         fEndMjD(0.0),
    62                                          fFileName("")
     71                                         fRefMjD(0.0),
     72                                         fFileName(""),
     73                                         fNumOpenFitsFiles(NULL),
     74                                         fMess(NULL)
    6375                 {}
    6476               
     
    7890
    7991                ///Opens a FITS file
    80                 void Open(const std::string& fileName, const std::string& tableName, FITS* file);
     92                void Open(const std::string& fileName, const std::string& tableName, FITS* file, int* fitsCounter, std::ostream& out);
    8193
    8294                ///Write one line of data. Use the given converter.
     
    88100                ///Get the size currently written on the disk
    89101                int GetWrittenSize();
    90                 ///Name of the openned file. For querying stats
    91                 std::string fFileName;
    92102
    93103};//Fits
Note: See TracChangeset for help on using the changeset viewer.