00001 #pragma ident "$Id: ATSData.hpp 994 2007-12-17 15:20:49Z ocibu $"
00002
00003
00004
00005
00006
00007
00008
00009
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
00035
00036
00037
00038
00039 #ifndef ATSData_HPP
00040 #define ATSData_HPP
00041
00047 #include <map>
00048 #include <iostream>
00049
00050 #include <Exception.hpp>
00051 #include <DayTime.hpp>
00052 #include <StringUtils.hpp>
00053 #include <BinUtils.hpp>
00054
00055 #include <FFData.hpp>
00056 #include <FFStream.hpp>
00057 #include <DataStatus.hpp>
00058
00059 #include <RinexObsData.hpp>
00060
00061 #if !defined( __SUNPRO_CC ) && !defined( _MSC_VER )
00062 #include <stdint.h>
00063 #endif
00064
00065
00066 namespace gpstk
00067 {
00068
00069 class ATSStream;
00070
00073 class ATSData : public FFData
00074 {
00075 public:
00076 ATSData() throw()
00077 {}
00078
00079
00080 bool isValid() const {return true;}
00081
00083 virtual bool isData() const {return true;}
00084
00086 virtual std::string getName() const {return "ats";}
00087
00091 void dump(std::ostream& out, int detail=0) const throw();
00092
00093 struct SubChannelBlock
00094 {
00095 double pseudorange;
00096 double phase;
00097 double rangeRate;
00098 double cn0;
00099
00100
00101 uint8_t flags;
00102 uint32_t navMSB[4], navLSB[4];
00103 };
00104
00105 struct ChannelBlock
00106 {
00107 gpstk::SatID svid;
00108 double absTime;
00109 std::vector<SubChannelBlock> subChannels;
00110 };
00111
00112 uint8_t numChan;
00113 uint8_t numSubChan;
00114 static const uint8_t MaxNumChan;
00115 static const uint8_t MaxNumSubChan;
00116
00117 std::vector<ChannelBlock> channels;
00118
00119 static int debugLevel;
00120 static bool hexDump;
00121
00122 protected:
00123 virtual void reallyPutRecord(FFStream& s) const
00124 throw(std::exception, StringUtils::StringException,
00125 FFStreamError);
00126
00127 virtual void reallyGetRecord(FFStream& s)
00128 throw(std::exception, StringUtils::StringException,
00129 FFStreamError, EndOfFile);
00130 };
00131
00132 }
00133
00134 #endif // ATSData_HPP