Rinex3ClockBase.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 RINEX3CLOCKBASE_HPP
45 #define RINEX3CLOCKBASE_HPP
46 
47 #include "FFData.hpp"
48 #include "FormattedDouble.hpp"
49 
50 namespace gnsstk
51 {
53 
54 
56  class Rinex3ClockBase : public FFData
57  {
58  public:
61  class R3CDouble : public FormattedDouble
62  {
63  public:
65  R3CDouble(double d)
66  : FormattedDouble(d, StringUtils::FFLead::Zero, 13, 2, 19, 'E',
67  StringUtils::FFSign::NegOnly,
68  StringUtils::FFAlign::Right)
69  {}
70 
72  R3CDouble& operator=(const std::string& s)
73  { FormattedDouble::operator=(s); return *this; }
74  };
75 
77  virtual ~Rinex3ClockBase() {}
78  };
79 
81 
82 } // namespace
83 
84 #endif // RINEX3CLOCKBASE_HPP
gnsstk::FFData
Definition: FFData.hpp:87
gnsstk::FormattedDouble::operator=
FormattedDouble & operator=(const FormattedDouble &right)=default
Copy assignment.
gnsstk::Rinex3ClockBase::R3CDouble::R3CDouble
R3CDouble(double d)
Constructor for a value, with all defaults for format.
Definition: Rinex3ClockBase.hpp:65
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::StringUtils::FFAlign::Right
@ Right
Formatted output will be right-aligned.
gnsstk::Rinex3ClockBase::~Rinex3ClockBase
virtual ~Rinex3ClockBase()
Destructor per the coding standards.
Definition: Rinex3ClockBase.hpp:77
gnsstk::StringUtils::FFLead
FFLead
Leading character for floatFormat(), after any whitespace or sign.
Definition: StringUtils.hpp:109
gnsstk::FormattedDouble
Definition: FormattedDouble.hpp:70
gnsstk::StringUtils::FFSign::NegOnly
@ NegOnly
Prefix output with a minus sign (neg) or nothing (pos)
gnsstk::StringUtils::FFLead::Zero
@ Zero
Start with zero, e.g. 0.12345.
FormattedDouble.hpp
gnsstk::StringUtils::FFSign
FFSign
How to handle sign in floatFormat()
Definition: StringUtils.hpp:117
gnsstk::Rinex3ClockBase
This class is here to make readable inheritance diagrams.
Definition: Rinex3ClockBase.hpp:56
FFData.hpp
gnsstk::Rinex3ClockBase::R3CDouble::operator=
R3CDouble & operator=(const std::string &s)
Assign a value by decoding a string using existing formatting.
Definition: Rinex3ClockBase.hpp:72
gnsstk::StringUtils::FFAlign
FFAlign
Alignment of data for floatFormat()
Definition: StringUtils.hpp:125
gnsstk::Rinex3ClockBase::R3CDouble
Definition: Rinex3ClockBase.hpp:61


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