forward declaration
class LabeledVector. Pretty print a Vector using the labels in a Namelist. For example, the following code produces the following output:
Definition at line 85 of file Namelist.hpp.
#include <Namelist.hpp>
Public Member Functions | |
LabeledVector & | fixed () |
Set the format to fixed. More... | |
LabeledVector (const Namelist &nl, const Vector< double > &v) | |
Constructor, defaults are width 12 prec 5 format fixed. More... | |
LabeledVector & | linetag (const std::string &m) |
Set the tag. More... | |
LabeledVector & | message (const std::string &m) |
Set the label or name. More... | |
LabeledVector & | scientific () |
Set the format to scientific. More... | |
LabeledVector & | setprecision (int p) |
Set the precision to p digits. More... | |
LabeledVector & | setw (int w) |
Set the width to w characters. More... | |
Public Attributes | |
int | form |
format - 0=general, 1=fixed(default), 2=integer More... | |
std::string | msg |
label (name in Namelist) for each row More... | |
const Namelist & | NL |
Namelist of names. More... | |
int | prec |
precision of fixed, in digits More... | |
std::string | tag |
text at beginning of each line (row) More... | |
const Vector< double > & | V |
Vector to print. More... | |
int | wid |
width of fields, in characters More... | |
Constructor, defaults are width 12 prec 5 format fixed.
Definition at line 97 of file Namelist.hpp.
|
inline |
Set the format to fixed.
Definition at line 117 of file Namelist.hpp.
|
inline |
Set the tag.
Definition at line 138 of file Namelist.hpp.
|
inline |
Set the label or name.
Definition at line 131 of file Namelist.hpp.
|
inline |
Set the format to scientific.
Definition at line 124 of file Namelist.hpp.
|
inline |
Set the precision to p digits.
Definition at line 110 of file Namelist.hpp.
|
inline |
Set the width to w characters.
Definition at line 103 of file Namelist.hpp.
int gnsstk::LabeledVector::form |
format - 0=general, 1=fixed(default), 2=integer
Definition at line 90 of file Namelist.hpp.
std::string gnsstk::LabeledVector::msg |
label (name in Namelist) for each row
Definition at line 91 of file Namelist.hpp.
Namelist of names.
Definition at line 93 of file Namelist.hpp.
int gnsstk::LabeledVector::prec |
precision of fixed, in digits
Definition at line 89 of file Namelist.hpp.
std::string gnsstk::LabeledVector::tag |
text at beginning of each line (row)
Definition at line 92 of file Namelist.hpp.
Vector to print.
Definition at line 94 of file Namelist.hpp.
int gnsstk::LabeledVector::wid |
width of fields, in characters
Definition at line 88 of file Namelist.hpp.