Numberfield Class Reference

Information for formatting a number field. More...

#include <string_util.hh>

List of all members.

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

Detailed Description

Information for formatting a number field.


Constructor & Destructor Documentation

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

Parameters:
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

Parameters:
IntType true if integer type
MaxValue maximum ||value|| for field
MinWidth minimum field width
Precision number of significant figures

Member Function Documentation

void Numberfield::init ( const bool &  IntType,
const float &  MaxValue,
const int &  MinWidth,
const int &  Precision 
)

(re)initialise from type, minimum field width, and precision

Parameters:
IntType true if integer type
MaxValue maximum ||value|| for field
MinWidth minimum field width
Precision number of significant figures

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends
Generated on Tue Mar 1 11:22:28 2011 for Pointless by  doxygen 1.6.3