Jive reference manual
List of all members | Public Member Functions | Static Public Attributes | Friends
jem::io::NumberFormat Class Reference

#include <jem/io/NumberFormat.h>

Public Member Functions

 NumberFormat ()
 
void setDefaults ()
 
void setFlag (int flag, bool choice=true)
 
void setFlags (int flags)
 
void setScientific (bool choice=true)
 
void setUppercase (bool choice=true)
 
void setShowSign (bool choice=true)
 
void setIntegerBase (int base)
 
void setIntegerWidth (int n)
 
void setIntegerDigits (int n)
 
void setFloatWidth (int n)
 
void setFractionDigits (int n)
 
int getFlags () const
 
int getIntegerBase () const
 
int getIntegerWidth () const
 
int getIntegerDigits () const
 
int getFloatWidth () const
 
int getFractionDigits () const
 
int print (char *buf, lint number) const
 
String print (lint number) const
 
int print (char *buf, double number) const
 
String print (double number) const
 

Static Public Attributes

static const int MAX_WIDTH = 32
 
static const int MAX_DIGITS = 32
 
static const int MIN_BUFSIZE = MAX_WIDTH + MAX_DIGITS + 16
 
static const int SCIENTIFIC
 
static const int UPPERCASE
 
static const int SHOW_SIGN
 

Friends

class PrintWriter
 

Constructor & Destructor Documentation

jem::io::NumberFormat::NumberFormat ( )

Member Function Documentation

void jem::io::NumberFormat::setDefaults ( )
void jem::io::NumberFormat::setFlag ( int  flag,
bool  choice = true 
)
void jem::io::NumberFormat::setFlags ( int  flags)
void jem::io::NumberFormat::setScientific ( bool  choice = true)
void jem::io::NumberFormat::setUppercase ( bool  choice = true)
void jem::io::NumberFormat::setShowSign ( bool  choice = true)
void jem::io::NumberFormat::setIntegerBase ( int  base)
void jem::io::NumberFormat::setIntegerWidth ( int  n)
void jem::io::NumberFormat::setIntegerDigits ( int  n)
void jem::io::NumberFormat::setFloatWidth ( int  n)
void jem::io::NumberFormat::setFractionDigits ( int  n)
int jem::io::NumberFormat::getFlags ( ) const
int jem::io::NumberFormat::getIntegerBase ( ) const
int jem::io::NumberFormat::getIntegerWidth ( ) const
int jem::io::NumberFormat::getIntegerDigits ( ) const
int jem::io::NumberFormat::getFloatWidth ( ) const
int jem::io::NumberFormat::getFractionDigits ( ) const
int jem::io::NumberFormat::print ( char *  buf,
lint  number 
) const
String jem::io::NumberFormat::print ( lint  number) const
int jem::io::NumberFormat::print ( char *  buf,
double  number 
) const
String jem::io::NumberFormat::print ( double  number) const

Friends And Related Function Documentation

friend class PrintWriter
friend

Member Data Documentation

const int jem::io::NumberFormat::MAX_WIDTH = 32
static
const int jem::io::NumberFormat::MAX_DIGITS = 32
static
const int jem::io::NumberFormat::MIN_BUFSIZE = MAX_WIDTH + MAX_DIGITS + 16
static
const int jem::io::NumberFormat::SCIENTIFIC
static
const int jem::io::NumberFormat::UPPERCASE
static
const int jem::io::NumberFormat::SHOW_SIGN
static