Information for formatting a number field. More...
#include <string_util.hh>
Public Member Functions | |
| Numberfield (const int &Type, const int &Width, const int &Dec, const std::string &Label1="", const std::string &Label2="") | |
| constructor from type, field width, and number of characters after decimal point | |
| void | init (const int &Type, const int &Width, const int &Dec, const std::string &Label1="", const std::string &Label2="") |
| (re)initialise from type, field width, and number of characters after decimal point | |
| Numberfield (const bool &IntType, const float &MaxValue, const int &MinWidth, const int &Precision) | |
| constructor from type, minimum field width, and precision | |
| void | init (const bool &IntType, const float &MaxValue, const int &MinWidth, const int &Precision) |
| (re)initialise from type, minimum field width, and precision | |
Public Attributes | |
| int | type |
| int | width |
| int | dec |
| scala::Range | range |
| std::string | label1 |
| std::string | label2 |
Information for formatting a number field.
| Numberfield::Numberfield | ( | const int & | Type, | |
| const int & | Width, | |||
| const int & | Dec, | |||
| const std::string & | Label1 = "", |
|||
| const std::string & | Label2 = "" | |||
| ) | [inline] |
constructor from type, field width, and number of characters after decimal point
| Type | = 0 float, +1 int, +2 string, -1 item type (float or int) | |
| Width | field width | |
| Dec | number of characters after decimal point | |
| label1 | column title for 1st line of header | |
| label2 | column title for 2nd line of header (default blank) |
| Numberfield::Numberfield | ( | const bool & | IntType, | |
| const float & | MaxValue, | |||
| const int & | MinWidth, | |||
| const int & | Precision | |||
| ) |
constructor from type, minimum field width, and precision
constructor from type, maximum value, minimum field width, and precision
| IntType | true if integer type | |
| MaxValue | maximum ||value|| for field | |
| MinWidth | minimum field width | |
| Precision | number of significant figures |
| void Numberfield::init | ( | const bool & | IntType, | |
| const float & | MaxValue, | |||
| const int & | MinWidth, | |||
| const int & | Precision | |||
| ) |
(re)initialise from type, minimum field width, and precision
| IntType | true if integer type | |
| MaxValue | maximum ||value|| for field | |
| MinWidth | minimum field width | |
| Precision | number of significant figures |
1.6.3