Luiza  v03-01
TableTextWriter.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef TableTextWriter_h
4 #define TableTextWriter_h 1
5 
6 #include "Processor.h"
7 
8 #include <fstream>
9 
10 using namespace gloria;
11 
12 namespace luiza {
13 
14 
16 
53  class TableTextWriter : public Processor {
54 
55  public:
56 
57  virtual TableTextWriter* newProcessor();
58 
59 
61 
65  virtual void init() ;
66 
69  virtual void startAnalysis( GloriaDataContainer* data ) ;
70 
71 
74  virtual void processData( GloriaDataContainer* data ) ;
75 
76 
77  virtual void check( GloriaDataContainer* data ) ;
78 
79 
82  virtual void concludeAnalysis( GloriaDataContainer* data ) ;
83 
84 
87  virtual void end() ;
88 
89 
90  protected:
91 
94 
97 
99  bool _oneFile;
100 
103 
105  std::vector< std::string > _selectedColumns;
106 
108  std::vector< std::string > _headerRecords;
109 
112 
114  ofstream _outputStream;
115 
117  int _nLoops ;
118 
120  int _nTables ;
121 
123  int _nWritten ;
124 
125 
126  void printEndMessage() const ;
127  } ;
128 
129  } // end namespace luiza
130 #endif
std::vector< std::string > _headerRecords
Header records to be stored.
Definition: TableTextWriter.h:108
bool _addCounter
Flag for output to single file.
Definition: TableTextWriter.h:102
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
ofstream _outputStream
Output file pointer.
Definition: TableTextWriter.h:114
string _textFileNameRoot
Output file name root.
Definition: TableTextWriter.h:96
int _nTables
Table counter, used to number file name.
Definition: TableTextWriter.h:120
std::vector< std::string > _selectedColumns
Table columns to be stored.
Definition: TableTextWriter.h:105
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for Luiza processors.
Definition: Processor.h:55
GloriaFitsTable * _outputTable
Temporary table to prepare text output.
Definition: TableTextWriter.h:111
bool _oneFile
Flag for output to single file.
Definition: TableTextWriter.h:99
int _nWritten
Counter for images successfully written to file.
Definition: TableTextWriter.h:123
Class for reading and processing fits tables in Luiza.
Definition: GloriaFitsTable.h:109
Processor for writing tables to output TEXT files.
Definition: TableTextWriter.h:53
Namespace for Luiza framework.
Definition: CCCollection.h:6
string _tableCollectionName
Name of the table collection which should be stored.
Definition: TableTextWriter.h:93
int _nLoops
Loop counter.
Definition: TableTextWriter.h:117