Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

fbwrap::FBwNumField Class Reference

Base class for numeric type fields. More...

#include <FBwNumField.h>

Inheritance diagram for fbwrap::FBwNumField:

fbwrap::FBwField fbwrap::FBwDoubleField fbwrap::FBwExact32 fbwrap::FBwFloatField List of all members.

Public Methods

virtual void SetFormatFlag ()
 FBwNumField (string pname, FBwFieldKind pKind)
 Constructor.

 FBwNumField (const FBwNumField &f, FBwFieldKind pKind)
 Copy constructor.

virtual void SetScale (short scal)
 Set scale.

void ShowSign (bool show)
 Show sign on formated value.

void ShowParen (bool show)
 Show number between '( )' when number is negative.

void ShowMon (bool show)
 Show locale monetary symbol.

void ShowGroup (bool show)
 Groups number using current locale grouping.

virtual ~FBwNumField ()
 Destructor.


Protected Methods

string GetFormat () const
string GetFormatedValue (double val) const

Protected Attributes

float factor
struct {
   bool   showmon:1
   bool   showgroup:1
   bool   showsign:1
   bool   showparen:1
   bool   blanknull:1
   bool   fillzero:1
format

Detailed Description

Base class for numeric type fields.


Constructor & Destructor Documentation

fbwrap::FBwNumField::FBwNumField string    pname,
FBwFieldKind    pKind
 

Constructor.

Parameters:
pname:  field name
pKind  field type


Member Function Documentation

void fbwrap::FBwNumField::ShowSign bool    show [inline]
 

Show sign on formated value.

Parameters:
show:  if show is true the sign is printed, otherwise
the sign is printed for negative values only


The documentation for this class was generated from the following files:
Generated on Fri Jan 31 08:30:05 2003 for fbwrap by doxygen1.2.17