Luiza  v03-01
TableTextReader.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef TableTextReader_h
4 #define TableTextReader_h 1
5 
6 #include "DataSourceProcessor.h"
7 // #include "Processor.h"
8 // #include "data/GloriaDataContainer.h"
9 
10 using namespace gloria;
11 
12 namespace luiza {
13 
14 
16 
73 
74  public:
75 
76  virtual TableTextReader* newProcessor();
77 
78 
79  TableTextReader() ;
80 
84  virtual void init() ;
85 
88  virtual void processData( GloriaDataContainer* data ) ;
89 
90 
91  virtual void check( GloriaDataContainer* data ) ;
92 
93 
96  virtual void end() ;
97 
98 
99  protected:
100 
102  std::vector< std::string > _tableFileList ;
103 
105  std::vector< std::string > _listFileList ;
106 
108  std::vector< std::string > _columnNames ;
109 
111  std::vector< std::string > _columnTypes ;
112 
114  std::vector< std::string > _columnUnits ;
115 
117  std::vector< std::string > _columnDefaults ;
118 
120  std::string _tableCollectionName ;
121 
124 
127 
129  int _nLoops ;
130 
132  int _nTables ;
133 
135  int _nFiles ;
136 
138  void printEndMessage() const ;
139 
142  } ;
143 
144  } // end namespace luiza
145 #endif
std::vector< std::string > _columnDefaults
Default values for columns in the input table.
Definition: TableTextReader.h:117
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
std::vector< std::string > _columnTypes
Types of columns in the input table.
Definition: TableTextReader.h:111
int _tablesPerLoop
Number of tables to be read per processing loop (0 for all)
Definition: TableTextReader.h:126
std::vector< std::string > _columnNames
Names of columns in the input table.
Definition: TableTextReader.h:108
Processor for reading data tables from input text files.
Definition: TableTextReader.h:72
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
std::string _tableCollectionName
Name of the table collection to which tables from file should be stored.
Definition: TableTextReader.h:120
Base class for processors accessing input data.
Definition: DataSourceProcessor.h:19
int _nTables
Table counter.
Definition: TableTextReader.h:132
std::vector< std::string > _listFileList
Names of files containing lists of table file names (one per line)
Definition: TableTextReader.h:105
GloriaFitsTable * _inputTable
Template of input table, as defined by user.
Definition: TableTextReader.h:141
Class for reading and processing fits tables in Luiza.
Definition: GloriaFitsTable.h:109
int _nFiles
File counter.
Definition: TableTextReader.h:135
Namespace for Luiza framework.
Definition: CCCollection.h:6
int _nLoops
Loop counter.
Definition: TableTextReader.h:129
bool _permanentCollection
Flag for collections, which should not be deleted after loop is finished.
Definition: TableTextReader.h:123
std::vector< std::string > _tableFileList
List of text table files to be read.
Definition: TableTextReader.h:102
std::vector< std::string > _columnUnits
Units of columns in the input table.
Definition: TableTextReader.h:114