SinexData.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_SINEXDATA_HPP
45 #define GNSSTK_SINEXDATA_HPP
46 
47 #include <vector>
48 #include <map>
49 #include "SinexBase.hpp"
50 #include "SinexHeader.hpp"
51 #include "SinexBlock.hpp"
52 
53 namespace gnsstk
54 {
55  namespace Sinex
56  {
58 
59 
67  class Data : public FFData
68  {
69  public:
70 
73 
75  virtual ~Data();
76 
77  // The next four lines is our common interface
79  virtual bool isData() const { return true; };
80 
82  virtual void dump(std::ostream& s) const;
83 
85  static bool isValidBlockTitle(const std::string& block);
86 
89 
92 
93  protected:
94 
97 
102  static void initBlockFactory();
103 
110  void reallyPutRecord(FFStream& s) const;
111 
123  void reallyGetRecord(FFStream& s);
124 
125  }; // class Data
126 
128 
129  } // namespace Sinex
130 
131 } // namespace gnsstk
132 
133 #endif // GNSSTK_SINEXDATA_HPP
gnsstk::FFData
Definition: FFData.hpp:87
gnsstk::Sinex::BlockFactory
std::map< std::string, BlockCreateFunc > BlockFactory
Mapping from block titles to block create functions.
Definition: SinexBlock.hpp:221
gnsstk::Sinex::Data::reallyGetRecord
void reallyGetRecord(FFStream &s)
Definition: SinexData.cpp:158
SinexBlock.hpp
gnsstk::Sinex::Data::blocks
Blocks blocks
Block storage.
Definition: SinexData.hpp:91
gnsstk::FFStream
Definition: FFStream.hpp:119
gnsstk::Sinex::Data::blockFactory
static BlockFactory blockFactory
Mappings from block titles to create functions.
Definition: SinexData.hpp:96
gnsstk::Sinex::Data::header
Header header
Header.
Definition: SinexData.hpp:88
SinexBase.hpp
gnsstk::Sinex::Data::initBlockFactory
static void initBlockFactory()
Definition: SinexData.cpp:62
gnsstk::Sinex::Blocks
std::vector< const BlockBase * > Blocks
Block storage type.
Definition: SinexBlock.hpp:212
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::Sinex::Data::isData
virtual bool isData() const
Data is "data" so this function always returns true.
Definition: SinexData.hpp:79
gnsstk::Sinex::Data::isValidBlockTitle
static bool isValidBlockTitle(const std::string &block)
Verifies that the specified block title is valid.
Definition: SinexData.cpp:295
gnsstk::Sinex::Data
Definition: SinexData.hpp:67
gnsstk::Sinex::Header
Definition: SinexHeader.hpp:63
gnsstk::Sinex::Data::reallyPutRecord
void reallyPutRecord(FFStream &s) const
Definition: SinexData.cpp:120
gnsstk::Sinex::Data::dump
virtual void dump(std::ostream &s) const
Debug output function.
Definition: SinexData.cpp:305
gnsstk::Sinex::Data::~Data
virtual ~Data()
Destructor.
Definition: SinexData.cpp:108
SinexHeader.hpp
gnsstk::Sinex::Data::Data
Data()
Constructor.
Definition: SinexData.hpp:72


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