Luiza  v03-01
TestProcessor.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef TestProcessor_h
4 #define TestProcessor_h 1
5 
6 #include "Processor.h"
7 
8 using namespace gloria;
9 
10 namespace luiza {
11 
12 
14 
24  class TestProcessor : public Processor {
25 
26  public:
27 
28  virtual Processor* newProcessor() { return new TestProcessor ; }
29 
30 
31  TestProcessor() ;
32 
34 
36  virtual void init() ;
37 
39 
41  virtual void startAnalysis( GloriaDataContainer* data ) ;
42 
43 
45 
46  virtual void processData( GloriaDataContainer* data ) ;
47 
48 
49  virtual void check( GloriaDataContainer* data ) ;
50 
52 
53  virtual void concludeAnalysis( GloriaDataContainer* ) ;
54 
55 
57 
58  virtual void end() ;
59 
60 
61  protected:
62 
64  void printEndMessage() const ;
65 
66  string _imageCollectionName;
67  string _tableCollectionName;
68 
69  int _nLoops ;
70  int _nImgCollections ;
71  int _nImages ;
72  int _nTblCollections ;
73  int _nTables ;
74 
75  GloriaFitsTable *_imgTable;
76  GloriaFitsTable *_tblTable;
77 
78  } ;
79 
80 } // end namespace luiza
81 #endif
82 
83 
84 
Simple processor for testing data collection.
Definition: TestProcessor.h:24
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for Luiza processors.
Definition: Processor.h:55
Class for reading and processing fits tables in Luiza.
Definition: GloriaFitsTable.h:109
Namespace for Luiza framework.
Definition: CCCollection.h:6
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: TestProcessor.h:28