My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
SzaCalReader.h
1 #ifndef GCP_UTIL_GCPCALREADER_H
2 #define GCP_UTIL_GCPCALREADER_H
3 
13 #include "gcp/util/common/PtSrcReader.h"
14 #include "gcp/util/common/String.h"
15 
16 #include <fstream>
17 
18 namespace gcp {
19  namespace util {
20 
21  class SzaCalReader : public PtSrcReader {
22  public:
23 
27  SzaCalReader(std::string catalogFile);
28  SzaCalReader();
29 
33  virtual ~SzaCalReader();
34 
35  public:
36 
37  // Catalog file handling
38 
39  void openCatalogFile();
40  void closeCatalogFile();
41 
42  // Catalog-specific function to read the next entry from a file
43 
45 
46  // Return true if we are at the end of the catalog file
47 
48  bool eof();
49 
50  // After a line has been read, this method should be called to
51  // convert the data to a Source structure.
52 
54 
55  private:
56 
57  // The catalog file handle
58 
59  std::ifstream ifStr_;
60 
61 
62  }; // End class SzaCalReader
63 
64  } // End namespace util
65 } // End namespace gcp
66 
67 
68 #endif // End #ifndef GCP_UTIL_GCPCALREADER_H
bool eof()
Definition: SzaCalReader.cc:96
void openCatalogFile()
Definition: SzaCalReader.cc:29
virtual ~SzaCalReader()
Definition: SzaCalReader.cc:24
Definition: SzaCalReader.h:21
Definition: String.h:16
void closeCatalogFile()
Definition: SzaCalReader.cc:41
PtSrcReader::Source convertToSource(String &str)
Definition: SzaCalReader.cc:74
Definition: PtSrcReader.h:35
SzaCalReader()
Definition: SzaCalReader.cc:19
PtSrcReader::Source readNextEntry()
Definition: SzaCalReader.cc:51
Definition: PtSrcReader.h:29