Class for the format used in this code.
Definition at line 65 of file SolarSystemEphemeris.cpp.
Public Member Functions | |
SSEDouble & | operator= (const string &s) |
Assign a value by decoding a string using existing formatting. More... | |
SSEDouble (const string &str) | |
Decode a string. More... | |
SSEDouble (double d=0) | |
![]() | |
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 |
Definition at line 68 of file SolarSystemEphemeris.cpp.
|
inline |
Decode a string.
Definition at line 75 of file SolarSystemEphemeris.cpp.
Assign a value by decoding a string using existing formatting.
Definition at line 78 of file SolarSystemEphemeris.cpp.