Luiza  v03-01
PiTableReader.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef PiTableReader_h
4 #define PiTableReader_h 1
5 
6 #include "luiza/DataSourceProcessor.h"
7 // #include "Processor.h"
8 // #include "data/GloriaDataContainer.h"
9 
10 using namespace gloria;
11 
12 namespace luiza {
13 
14 
16 
56 
57  public:
58 
59  virtual PiTableReader* newProcessor();
60 
61 
62  PiTableReader() ;
63 
67  virtual void init() ;
68 
70 
72  virtual void startAnalysis( GloriaDataContainer* data ) ;
73 
76  virtual void processData( GloriaDataContainer* data ) ;
77 
78 
79  virtual void check( GloriaDataContainer* data ) ;
80 
81 
83 
84  virtual void concludeAnalysis( GloriaDataContainer* data ) ;
85 
88  virtual void end() ;
89 
90 
91  protected:
92 
94  std::vector< std::string > _tableFileList ;
95 
97  std::vector< std::string > _listFileList ;
98 
100  std::string _tableCollectionName ;
101 
104 
106  std::vector< std::string > _selectedColumns ;
107 
110 
112  int _nLoops ;
113 
115  int _nTables ;
116 
118  int _nFiles ;
119 
121  void printEndMessage() const ;
122 
123  GloriaFitsImage* _inputImage;
124  GloriaFitsTable* _inputTable;
125  } ;
126 
127  } // end namespace luiza
128 #endif
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
int _nFiles
File counter.
Definition: PiTableReader.h:118
int _nLoops
Loop counter.
Definition: PiTableReader.h:112
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
int _nTables
Table counter.
Definition: PiTableReader.h:115
Base class for processors accessing input data.
Definition: DataSourceProcessor.h:19
bool _permanentCollection
Flag for collections, which should not be deleted after loop is finished.
Definition: PiTableReader.h:103
Class for reading and processing fits tables in Luiza.
Definition: GloriaFitsTable.h:109
std::vector< std::string > _selectedColumns
Name (and order) of columns which should be copied to the output table.
Definition: PiTableReader.h:106
std::string _tableCollectionName
Name of the table collection to which tables from file should be stored.
Definition: PiTableReader.h:100
Processor for reading Pi of the Sky data tables (mag and ast files)
Definition: PiTableReader.h:55
std::vector< std::string > _tableFileList
List of fits table files to be read.
Definition: PiTableReader.h:94
Namespace for Luiza framework.
Definition: CCCollection.h:6
Class for reading and processing fits images in Luiza.
Definition: GloriaFitsImage.h:43
int _tablesPerLoop
Number of tables to be read per processing loop (0 for all)
Definition: PiTableReader.h:109
std::vector< std::string > _listFileList
Names of files containing lists of table file names (one per line)
Definition: PiTableReader.h:97