- Timestamp:
- 08/26/10 13:04:24 (14 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/FillerBase.h
r1819 r1904 43 43 virtual ~FillerBase() {;} 44 44 45 // virtual bool open(const std::string& filename, constRecord& rec) = 0;46 virtual bool open(const std::string& filename) = 0;45 virtual bool open(const std::string& filename, const casa::Record& rec) = 0; 46 // virtual bool open(const std::string& filename) = 0; 47 47 virtual void fill() = 0; 48 48 virtual void close() = 0; -
trunk/src/FillerWrapper.h
r1819 r1904 16 16 #include <casa/Exceptions.h> 17 17 #include <casa/Utilities/CountedPtr.h> 18 #include <casa/Containers/Record.h> 18 19 #include <casa/OS/File.h> 19 20 … … 38 39 39 40 40 // void open(const std::string& filename, casa::Recordrec) {41 void open(const std::string& filename) {41 void open(const std::string& filename, const casa::Record& rec) { 42 // void open(const std::string& filename) { 42 43 casa::File file(filename); 43 44 if ( !file.exists() ) { … … 45 46 } 46 47 filler_ = new PKSFiller(stable_); 47 //if (filler_->open(filename, rec)) {48 if (filler_->open(filename)) {48 if (filler_->open(filename, rec)) { 49 // if (filler_->open(filename)) { 49 50 attached_ = true; 50 51 return; 51 52 } 52 53 filler_ = new NROFiller(stable_); 53 //if (filler_->open(filename, rec)) {54 if (filler_->open(filename)) {54 if (filler_->open(filename, rec)) { 55 // if (filler_->open(filename)) { 55 56 attached_ = true; 56 57 return; -
trunk/src/NROFiller.cpp
r1819 r1904 20 20 #include "NROFiller.h" 21 21 #include "STHeader.h" 22 #include <casa/Containers/Record.h> 22 23 #include <atnf/PKSIO/SrcType.h> 23 24 … … 36 37 } 37 38 38 bool NROFiller::open(const std::string& filename)39 bool NROFiller::open(const std::string& filename, const Record& rec) 39 40 { 40 41 bool status = true ; -
trunk/src/NROFiller.h
r1819 r1904 45 45 virtual ~NROFiller(); 46 46 47 bool open(const std::string& filename ) ;47 bool open(const std::string& filename, const casa::Record& rec) ; 48 48 void fill() ; 49 49 void close() ; -
trunk/src/PKSFiller.cpp
r1880 r1904 22 22 #include <casa/Logging/LogIO.h> 23 23 24 #include <casa/Containers/Record.h> 24 25 #include <measures/Measures/MDirection.h> 25 26 #include <measures/Measures/MeasConvert.h> … … 58 59 } 59 60 60 bool PKSFiller::open( const std::string& filename )61 bool PKSFiller::open( const std::string& filename, const Record& rec) 61 62 { 62 63 Bool haveBase, haveSpectra; -
trunk/src/PKSFiller.h
r1819 r1904 20 20 #include <casa/Arrays/Vector.h> 21 21 22 22 23 #include "FillerBase.h" 23 24 #include "Scantable.h" 24 25 26 class casa::Record; 25 27 class PKSreader; 26 28 … … 34 36 virtual ~PKSFiller(); 35 37 36 // bool open(const std::string& filename, const Record& rec)=0;37 bool open(const std::string& filename);38 bool open(const std::string& filename, const casa::Record& rec); 39 // bool open(const std::string& filename); 38 40 void fill(); 39 41 void close();
Note:
See TracChangeset
for help on using the changeset viewer.