SP3Stream.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 SP3STREAM_INCLUDE
45 #define SP3STREAM_INCLUDE
46 
47 #include "FFTextStream.hpp"
48 #include "SP3Header.hpp"
49 
50 namespace gnsstk
51 {
53 
54 
61  class SP3Stream : public FFTextStream
62  {
63  public:
65  SP3Stream();
66 
71  SP3Stream(const char* filename,
72  std::ios::openmode mode=std::ios::in);
73 
75  virtual ~SP3Stream();
76 
80  virtual void close(void);
81 
86  virtual void open(const char* filename, std::ios::openmode mode);
87 
89  bool wroteEOF;
90  bool writingMode;
92  std::string lastLine;
93  std::vector<std::string> warnings;
94 
95  private:
97  void init(std::ios::openmode);
98 
99  }; // class SP3Stream
100 
102 
103 } // namespace gnsstk
104 
105 #endif // SP3STREAM_INCLUDE
gnsstk::SP3Stream::writingMode
bool writingMode
True if the stream is open in 'out', not 'in', mode.
Definition: SP3Stream.hpp:90
SP3Header.hpp
gnsstk::FFStream::filename
std::string filename
file name
Definition: FFStream.hpp:179
gnsstk::SP3Stream::header
SP3Header header
SP3Header for this file.
Definition: SP3Stream.hpp:88
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::SP3Stream::SP3Stream
SP3Stream()
Default constructor.
Definition: SP3Stream.cpp:49
gnsstk::SP3Stream::~SP3Stream
virtual ~SP3Stream()
destructor; override to force 'close'
Definition: SP3Stream.cpp:67
gnsstk::SP3Stream::open
virtual void open(const char *filename, std::ios::openmode mode)
Definition: SP3Stream.cpp:95
gnsstk::SP3Stream::currentEpoch
CommonTime currentEpoch
Time from last epoch record read.
Definition: SP3Stream.hpp:91
gnsstk::SP3Stream
Definition: SP3Stream.hpp:61
gnsstk::SP3Stream::close
virtual void close(void)
Definition: SP3Stream.cpp:74
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::FFTextStream::init
void init()
Initialize internal data structures.
Definition: FFTextStream.cpp:97
FFTextStream.hpp
gnsstk::SP3Header
Definition: SP3Header.hpp:68
gnsstk::SP3Stream::warnings
std::vector< std::string > warnings
warnings produced by reallyGetRecord()s
Definition: SP3Stream.hpp:93
gnsstk::SP3Stream::wroteEOF
bool wroteEOF
True if the final 'EOF' has been read.
Definition: SP3Stream.hpp:89
gnsstk::SP3Stream::lastLine
std::string lastLine
Last line read, perhaps not yet processed.
Definition: SP3Stream.hpp:92
gnsstk::FFTextStream
Definition: FFTextStream.hpp:63


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