Luiza  v03-01
FitsImageReader.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef FitsImageReader_h
4 #define FitsImageReader_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 
53 
54  public:
55 
56  virtual FitsImageReader* newProcessor();
57 
58 
59  FitsImageReader() ;
60 
64  virtual void init() ;
65 
68  virtual void processData( GloriaDataContainer* data ) ;
69 
70 
71  virtual void check( GloriaDataContainer* data ) ;
72 
73 
76  virtual void end() ;
77 
78 
79  protected:
80 
82  std::vector< std::string > _fitsFileList ;
83 
85  std::vector< std::string > _listFileList ;
86 
88  std::string _imageCollectionName ;
89 
92 
95 
97  int _nLoops ;
98 
100  int _nImages ;
101 
103  int _nFiles ;
104 
106  void printEndMessage() const ;
107  } ;
108 
109  } // end namespace luiza
110 #endif
std::string _imageCollectionName
Name of the image collection to which images from file should be stored.
Definition: FitsImageReader.h:88
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
int _nFiles
File counter.
Definition: FitsImageReader.h:103
Processor for reading input FITS images.
Definition: FitsImageReader.h:52
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for processors accessing input data.
Definition: DataSourceProcessor.h:19
int _nLoops
Loop counter.
Definition: FitsImageReader.h:97
std::vector< std::string > _listFileList
Names of files containing FITS file lists (one per line) - alternative method.
Definition: FitsImageReader.h:85
int _imagesPerLoop
Number of images to be read per processing loop (0 for all)
Definition: FitsImageReader.h:94
std::vector< std::string > _fitsFileList
List of FITS files to be read.
Definition: FitsImageReader.h:82
Namespace for Luiza framework.
Definition: CCCollection.h:6
int _nImages
Image counter.
Definition: FitsImageReader.h:100
bool _permanentCollection
Flag for collections, which should not be deleted after loop is finished.
Definition: FitsImageReader.h:91