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>
Public Member Functions | |
RNDouble & | operator= (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... | |
![]() | |
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 |
FormattedDouble & | operator++ () |
Increment the value (prefix). More... | |
FormattedDouble | operator++ (int) |
Increment the value (postfix). More... | |
FormattedDouble & | operator-- () |
Decrement the value (prefix). More... | |
FormattedDouble | operator-- (int) |
Decrement the value (postfix). More... | |
FormattedDouble | operator/ (double d) const |
FormattedDouble & | operator= (const FormattedDouble &right)=default |
Copy assignment. More... | |
FormattedDouble & | operator= (const std::string &s) |
Assign a value by decoding a string using existing formatting. More... | |
FormattedDouble & | operator= (double d) |
Assign a value without affecting formatting. More... | |
Additional Inherited Members | |
![]() | |
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... | |
|
inline |
Constructor for a value, with all defaults for format.
Definition at line 54 of file RNDouble.hpp.
|
inline |
Decode a string.
Definition at line 60 of file RNDouble.hpp.
Assign a value by decoding a string using existing formatting.
Definition at line 65 of file RNDouble.hpp.