Luiza  v03-01
FitsTableWriter.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef FitsTableWriter_h
4 #define FitsTableWriter_h 1
5 
6 #include "Processor.h"
7 
8 #include <fstream>
9 
10 using namespace gloria;
11 
12 namespace luiza {
13 
14 
16 
44  class FitsTableWriter : public Processor {
45 
46  public:
47 
48  virtual FitsTableWriter* newProcessor();
49 
50 
52 
56  virtual void init() ;
57 
60  virtual void startAnalysis( GloriaDataContainer* data ) ;
61 
62 
65  virtual void processData( GloriaDataContainer* data ) ;
66 
67 
68  virtual void check( GloriaDataContainer* data ) ;
69 
70 
73  virtual void concludeAnalysis( GloriaDataContainer* data ) ;
74 
75 
78  virtual void end() ;
79 
80 
81  protected:
82 
85 
88 
91 
93  std::vector< std::string > _selectedColumns;
94 
97 
99  int _nLoops ;
100 
102  int _nTables ;
103 
105  int _nWritten ;
106 
107 
108  void printEndMessage() const ;
109  } ;
110 
111  } // end namespace luiza
112 #endif
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
int _nWritten
Counter for images successfully written to file.
Definition: FitsTableWriter.h:105
bool _binaryTable
Flag for output to single file.
Definition: FitsTableWriter.h:90
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
string _tableCollectionName
Name of the table collection which should be stored.
Definition: FitsTableWriter.h:84
Base class for Luiza processors.
Definition: Processor.h:55
std::vector< std::string > _selectedColumns
Table columns to be stored.
Definition: FitsTableWriter.h:93
Processor for writing tables to output TEXT files.
Definition: FitsTableWriter.h:44
string _fitsFileNameRoot
Output file name root.
Definition: FitsTableWriter.h:87
Class for reading and processing fits tables in Luiza.
Definition: GloriaFitsTable.h:109
int _nTables
Table counter, used to number file name.
Definition: FitsTableWriter.h:102
GloriaFitsTable * _outputTable
Temporary table to prepare text output.
Definition: FitsTableWriter.h:96
Namespace for Luiza framework.
Definition: CCCollection.h:6
int _nLoops
Loop counter.
Definition: FitsTableWriter.h:99