SinexHeader.hpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
44 #ifndef GNSSTK_SINEXHEADER_HPP
45 #define GNSSTK_SINEXHEADER_HPP
46 
47 #include <string>
48 #include "SinexBase.hpp"
49 
50 namespace gnsstk
51 {
52  namespace Sinex
53  {
54 
56 
57 
63  class Header
64  {
65  public:
66 
67  static const size_t MIN_LINE_LEN = 67;
68  static const size_t MAX_LINE_LEN = 79;
69 
72  Header(const std::string& line) : version(VERSION)
73  {
74  *this = line;
75  };
76 
78  virtual ~Header() {};
79 
81  operator std::string() const;
82  void operator=(const std::string& other);
83 
85  void dump(std::ostream& s) const;
86 
87  float version;
88  std::string creationAgency;
90  std::string dataAgency;
93  char obsCode;
94  uint32_t paramCount;
96  std::string solutionTypes;
97  }; // class Header
98 
100 
101  } // namespace Sinex
102 
103 } // namespace gnsstk
104 
105 #endif // GNSSTK_SINEXHEADER_HPP
gnsstk::Sinex::Header::obsCode
char obsCode
Definition: SinexHeader.hpp:93
gnsstk::Sinex::Header::~Header
virtual ~Header()
Destructor.
Definition: SinexHeader.hpp:78
gnsstk::Sinex::Header::creationAgency
std::string creationAgency
Agency creating the file.
Definition: SinexHeader.hpp:88
gnsstk::Sinex::Header::constraintCode
char constraintCode
Definition: SinexHeader.hpp:95
gnsstk::Sinex::Header::dataAgency
std::string dataAgency
Agency supplying data for the file.
Definition: SinexHeader.hpp:90
gnsstk::Sinex::Header::dataTimeEnd
Time dataTimeEnd
Definition: SinexHeader.hpp:92
gnsstk::Sinex::Header::dataTimeStart
Time dataTimeStart
Definition: SinexHeader.hpp:91
SinexBase.hpp
gnsstk::Sinex::Header::Header
Header()
Constructors.
Definition: SinexHeader.hpp:71
gnsstk::Sinex::Header::creationTime
Time creationTime
Creation time.
Definition: SinexHeader.hpp:89
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::Sinex::Header::paramCount
uint32_t paramCount
Definition: SinexHeader.hpp:94
gnsstk::Sinex::Header::solutionTypes
std::string solutionTypes
Solution types in this file: S,O,E,T,C,A, or ' '.
Definition: SinexHeader.hpp:96
gnsstk::Sinex::Header::dump
void dump(std::ostream &s) const
Debug output operator.
Definition: SinexHeader.cpp:125
gnsstk::Sinex::VERSION
const float VERSION
Definition: SinexBase.hpp:68
gnsstk::Sinex::Header
Definition: SinexHeader.hpp:63
gnsstk::Sinex::Header::Header
Header(const std::string &line)
Definition: SinexHeader.hpp:72
gnsstk::Sinex::Header::MIN_LINE_LEN
static const size_t MIN_LINE_LEN
Definition: SinexHeader.hpp:67
gnsstk::Sinex::Header::MAX_LINE_LEN
static const size_t MAX_LINE_LEN
Definition: SinexHeader.hpp:68
gnsstk::Sinex::Header::version
float version
Format version of the file ##.##.
Definition: SinexHeader.hpp:87
gnsstk::Sinex::Time
Definition: SinexBase.hpp:161
gnsstk::Sinex::Header::operator=
void operator=(const std::string &other)
Definition: SinexHeader.cpp:87


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:41