source: branches/newfiller/src/NROFiller.h @ 1791

Last change on this file since 1791 was 1791, checked in by Takeshi Nakazato, 14 years ago

Added NROFiller.

File size: 1.2 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// STL
30#include <string>
31#include <vector>
32// AIPS++
33#include <casa/aips.h>
34#include <atnf/PKSIO/NROReader.h>
35
36namespace asap
37{
38
39class NROFiller : public FillerBase
40{
41  public:
42    NROFiller(casa::CountedPtr<Scantable> stable);
43    virtual ~NROFiller();
44
45    virtual bool open(const std::string& filename) ;
46    virtual void fill() ;
47    virtual void close() ;
48
49  protected:
50
51  private:
52    // pointer to the reader
53    NROReader *reader_ ;
54}
55
56
57};
Note: See TracBrowser for help on using the repository browser.