Last change
on this file since 1804 was 1792, checked in by Takeshi Nakazato, 14 years ago |
- Bug fixes on NROFiller.
- Makefile is updated to compile NROFiller
- Uncommented the line to create NROFiller in FillerWrapper.h
|
File size:
1.3 KB
|
Line | |
---|
1 | //
|
---|
2 | // C++ Interface: NROFiller
|
---|
3 | //
|
---|
4 | // Description:
|
---|
5 | //
|
---|
6 | // This class is a concrete class that derives from FillerBase class.
|
---|
7 | // The class implements the following methods to be able to read NRO
|
---|
8 | // data (45m and ASTE).
|
---|
9 | //
|
---|
10 | // open()
|
---|
11 | // close()
|
---|
12 | // fill()
|
---|
13 | //
|
---|
14 | // The fill() method usually iterates over the source data and calls
|
---|
15 | // the setXYZ() methods for. After all the data for a row has been set via
|
---|
16 | // these methods, the fill() method needs to call commitRow() to write the
|
---|
17 | // data to the scantable.
|
---|
18 | // All arguments which are defaulted in the setXYZ() methods are optional. All
|
---|
19 | // others should be set explicitly.
|
---|
20 | //
|
---|
21 | // Author: Takeshi Nakazato <takeshi.nakazato@nao.ac.jp>, (C) 2010
|
---|
22 | //
|
---|
23 | // Copyright: See COPYING file that comes with this distribution
|
---|
24 | //
|
---|
25 | //
|
---|
26 | #ifndef ASAPNROFILLER_H
|
---|
27 | #define ASAPNROFILLER_H
|
---|
28 |
|
---|
29 | #include "FillerBase.h"
|
---|
30 |
|
---|
31 | // STL
|
---|
32 | #include <string>
|
---|
33 | #include <vector>
|
---|
34 | // AIPS++
|
---|
35 | #include <casa/aips.h>
|
---|
36 | #include <atnf/PKSIO/NROReader.h>
|
---|
37 |
|
---|
38 | namespace asap
|
---|
39 | {
|
---|
40 |
|
---|
41 | class NROFiller : public FillerBase
|
---|
42 | {
|
---|
43 | public:
|
---|
44 | NROFiller(casa::CountedPtr<Scantable> stable);
|
---|
45 | virtual ~NROFiller();
|
---|
46 |
|
---|
47 | virtual bool open(const std::string& filename) ;
|
---|
48 | virtual void fill() ;
|
---|
49 | virtual void close() ;
|
---|
50 |
|
---|
51 | protected:
|
---|
52 |
|
---|
53 | private:
|
---|
54 | // pointer to the reader
|
---|
55 | NROReader *reader_ ;
|
---|
56 | };
|
---|
57 |
|
---|
58 |
|
---|
59 | }
|
---|
60 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.