Luiza  v03-01
SelectTableData.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef SelectTableData_h
4 #define SelectTableData_h 1
5 
6 #include "luiza/Processor.h"
7 
8 using namespace gloria;
9 
10 namespace luiza {
11 
12 
14 
66  class SelectTableData : public Processor {
67 
68  public:
69 
70  virtual Processor* newProcessor() { return new SelectTableData ; }
71 
72 
73  SelectTableData() ;
74 
78  virtual void init() ;
79 
81 
83  virtual void startAnalysis( GloriaDataContainer* data ) ;
84 
87  virtual void processData( GloriaDataContainer* data ) ;
88 
89 
90  virtual void check( GloriaDataContainer* data ) ;
91 
92 
94 
95  virtual void concludeAnalysis( GloriaDataContainer* data ) ;
96 
99  virtual void end() ;
100 
101 
102  protected:
103 
105  void printEndMessage() const ;
106 
109 
112 
115 
117  string _sortColumn;
118 
121 
123  std::vector<std::string> _columnValueRange;
124 
126  std::vector<std::string> _outputColumns;
127 
131 
134 
135  int _nLoops ;
136  int _nInputTables ;
137  } ;
138 
139 } // end namespace luiza
140 #endif
141 
142 
143 
string _sortColumn
Name of the column which should be used for table sorting.
Definition: SelectTableData.h:117
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
bool _permanentCollection
Flag the output collection to be permanent.
Definition: SelectTableData.h:114
int _minCount
Minimum number of selected rows for processor returning true value.
Definition: SelectTableData.h:133
std::vector< std::string > _columnValueRange
Names of table columns with allowed value ranges.
Definition: SelectTableData.h:123
bool _reverseSort
Flag to indicate that output table should be sorted in reverse order.
Definition: SelectTableData.h:120
bool _acceptIfAny
Definition: SelectTableData.h:130
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: SelectTableData.h:70
Base class for Luiza processors.
Definition: Processor.h:55
string _inputCollectionName
Name of the collection containing input table.
Definition: SelectTableData.h:108
string _outputCollectionName
Name of the output table collection (for selected rows)
Definition: SelectTableData.h:111
std::vector< std::string > _outputColumns
Names of table columns to be stored to output file.
Definition: SelectTableData.h:126
Namespace for Luiza framework.
Definition: CCCollection.h:6
Processor to select data rows from the table.
Definition: SelectTableData.h:66