Public Member Functions | List of all members
gnsstk::RNDouble Class Reference

Detailed Description

This class specializes FormattedDouble to cover the data that is present in RINEX NAV data files. The formatting of individual data is the same between RINEX 2 and 3 so we put the shared implementation here.

Definition at line 50 of file RNDouble.hpp.

#include <RNDouble.hpp>

Inheritance diagram for gnsstk::RNDouble:
Inheritance graph
[legend]

Public Member Functions

RNDoubleoperator= (const std::string &s)
 Assign a value by decoding a string using existing formatting. More...
 
 RNDouble (const std::string &str)
 Decode a string. More...
 
 RNDouble (double d=0)
 Constructor for a value, with all defaults for format. More...
 
- Public Member Functions inherited from gnsstk::FormattedDouble
void dump (std::ostream &s) const
 debug output all data members More...
 
 FormattedDouble (const std::string &str, unsigned width=0, char expChar='e')
 
 FormattedDouble (double d, StringUtils::FFLead lead, unsigned mantissa=0, unsigned exponent=2, unsigned width=0, char expChar='e', StringUtils::FFSign sign=StringUtils::FFSign::NegOnly, StringUtils::FFAlign align=StringUtils::FFAlign::Left)
 
 FormattedDouble (unsigned width=0, char expChar='e')
 
 operator double () const
 Cast this object to a double for math and such. More...
 
 operator double & ()
 Cast this object to a double for math and such. More...
 
 operator std::string ()
 Cast this object to a string using formatting configuration. More...
 
FormattedDouble operator* (double d) const
 
FormattedDoubleoperator++ ()
 Increment the value (prefix). More...
 
FormattedDouble operator++ (int)
 Increment the value (postfix). More...
 
FormattedDoubleoperator-- ()
 Decrement the value (prefix). More...
 
FormattedDouble operator-- (int)
 Decrement the value (postfix). More...
 
FormattedDouble operator/ (double d) const
 
FormattedDoubleoperator= (const FormattedDouble &right)=default
 Copy assignment. More...
 
FormattedDoubleoperator= (const std::string &s)
 Assign a value by decoding a string using existing formatting. More...
 
FormattedDoubleoperator= (double d)
 Assign a value without affecting formatting. More...
 

Additional Inherited Members

- Public Attributes inherited from gnsstk::FormattedDouble
StringUtils::FFAlign alignment
 Alignment when padding with space. More...
 
char exponentChar
 What character delimits the exponent. More...
 
unsigned exponentLen
 How many digits of exponent. More...
 
StringUtils::FFLead leadChar
 Leading non-space character. More...
 
StringUtils::FFSign leadSign
 How to handle signs for positive val. More...
 
unsigned mantissaLen
 How many digits of mantissa. More...
 
unsigned totalLen
 Total width of space-padded value. More...
 
double val
 The value as read or to be formatted. More...
 

Constructor & Destructor Documentation

◆ RNDouble() [1/2]

gnsstk::RNDouble::RNDouble ( double  d = 0)
inline

Constructor for a value, with all defaults for format.

Definition at line 54 of file RNDouble.hpp.

◆ RNDouble() [2/2]

gnsstk::RNDouble::RNDouble ( const std::string &  str)
inline

Decode a string.

Definition at line 60 of file RNDouble.hpp.

Member Function Documentation

◆ operator=()

RNDouble& gnsstk::RNDouble::operator= ( const std::string &  s)
inline

Assign a value by decoding a string using existing formatting.

Definition at line 65 of file RNDouble.hpp.


The documentation for this class was generated from the following file:


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