SMODFData.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: SMODFData.hpp 3140 2012-06-18 15:03:02Z susancummins $"
00002 
00003 //============================================================================
00004 //
00005 //  This file is part of GPSTk, the GPS Toolkit.
00006 //
00007 //  The GPSTk is free software; you can redistribute it and/or modify
00008 //  it under the terms of the GNU Lesser General Public License as published
00009 //  by the Free Software Foundation; either version 2.1 of the License, or
00010 //  any later version.
00011 //
00012 //  The GPSTk is distributed in the hope that it will be useful,
00013 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 //  GNU Lesser General Public License for more details.
00016 //
00017 //  You should have received a copy of the GNU Lesser General Public
00018 //  License along with GPSTk; if not, write to the Free Software Foundation,
00019 //  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
00020 //  
00021 //  Copyright 2004, The University of Texas at Austin
00022 //
00023 //============================================================================
00024 
00025 //============================================================================
00026 //
00027 //This software developed by Applied Research Laboratories at the University of
00028 //Texas at Austin, under contract to an agency or agencies within the U.S. 
00029 //Department of Defense. The U.S. Government retains all rights to use,
00030 //duplicate, distribute, disclose, or release this software. 
00031 //
00032 //Pursuant to DoD Directive 523024 
00033 //
00034 // DISTRIBUTION STATEMENT A: This software has been approved for public 
00035 //                           release, distribution is unlimited.
00036 //
00037 //=============================================================================
00038 
00039 #ifndef SMODFDATA_HPP
00040 #define SMODFDATA_HPP
00041 
00047 #include <vector>
00048 
00049 #include "StringUtils.hpp"
00050 #include "FFData.hpp"
00051 #include "CommonTime.hpp"
00052 
00053 namespace gpstk
00054 {
00057 
00061    class SMODFData : public gpstk::FFData
00062    {
00063    public:
00065       SMODFData() : PRNID(0), time(gpstk::CommonTime::BEGINNING_OF_TIME) 
00066       {}
00067 
00069       virtual ~SMODFData() {}
00070 
00071       gpstk::CommonTime time;  
00072       short PRNID;        
00073       long  station;      
00074       short channel;      
00075       short type;         
00076       short lol;          
00077 
00078       long double obs;    
00079       double stdDev;      
00080       short tempSource;   
00081 
00082       short pressSource;  
00083 
00084       short humidSource;  
00085 
00086       double temp;        
00087       double pressure;    
00088       double humidity;    
00089 
00091       virtual bool isData() const {return true;}
00092 
00093       virtual void dump(std::ostream& s) const;
00094       
00096       static std::string doub2funny(const double& num,
00097                                     const std::string::size_type length,
00098                                     const std::string::size_type expLen);
00099 
00100    protected:
00103       virtual void reallyPutRecord(gpstk::FFStream& s) const
00104          throw(std::exception, gpstk::FFStreamError,
00105                gpstk::StringUtils::StringException);
00106 
00116       virtual void reallyGetRecord(gpstk::FFStream& s) 
00117          throw(std::exception, gpstk::FFStreamError,
00118                gpstk::StringUtils::StringException);
00119      
00120    private:
00121       static const int SMO_LEN_ICD211;  
00122       static const int SMO_LEN_LEGACY;  
00123       static const int BEGINGPS2DYEAR;  
00124    }; // class SMODFData
00125 
00127 
00128 } // namespace gpstk
00129 
00130 #endif

Generated on Wed Jun 19 03:31:10 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1