00001 #pragma ident "$Id: Rinex3ClockStream.hpp 3319 2012-09-19 16:58:10Z prestonherrmann $"
00002
00008 #ifndef GPSTK_RINEX3CLOCKSTREAM_HPP
00009 #define GPSTK_RINEX3CLOCKSTREAM_HPP
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #include <vector>
00035 #include <list>
00036 #include <map>
00037 #include <string>
00038
00039 #include "FFTextStream.hpp"
00040 #include "Rinex3ClockHeader.hpp"
00041
00042 namespace gpstk
00043 {
00044
00047
00053 class Rinex3ClockStream : public FFTextStream
00054 {
00055 public:
00056
00057
00059 Rinex3ClockStream()
00060 : headerRead(false) {};
00061
00062
00068 Rinex3ClockStream( const char* fn,
00069 std::ios::openmode mode=std::ios::in )
00070 : FFTextStream(fn, mode), headerRead(false) {};
00071
00072
00078 Rinex3ClockStream( const std::string fn,
00079 std::ios::openmode mode=std::ios::in )
00080 : FFTextStream(fn.c_str(), mode), headerRead(false) {};
00081
00082
00084 virtual ~Rinex3ClockStream() {};
00085
00086
00092 virtual void open( const char* fn,
00093 std::ios::openmode mode )
00094 {
00095 FFTextStream::open(fn, mode);
00096 headerRead = false;
00097 header = Rinex3ClockHeader();
00098 };
00099
00100
00106 virtual void open( const std::string& fn,
00107 std::ios::openmode mode )
00108 { open(fn.c_str(), mode); };
00109
00110
00112 bool headerRead;
00113
00114
00116 Rinex3ClockHeader header;
00117
00118
00119 };
00120
00122
00123 }
00124
00125 #endif // GPSTK_RINEX3CLOCKSTREAM_HPP