gridripper::util::RuntimeFormatter Class Reference

Runtime formatter for AMR. More...

List of all members.

Public Member Functions

 RuntimeFormatter (int opts, int width, int prec)
 Creates a formatter object.
String format (double t)
 Formats the specified time.

Static Public Member Functions

static String format (int opts, int width, int prec, double t)
 Formats the specified time.

Static Public Attributes

static final int SS = 0
 Print seconds.
static final int HMS = 1
 Print hours, minutes and seconds.


Detailed Description

Runtime formatter for AMR.

Version:
0.5, 06/15/2006
Since:
GridRipper 0.5, 01/08/2006
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::util::RuntimeFormatter::RuntimeFormatter ( int  opts,
int  width,
int  prec 
) [inline]

Creates a formatter object.

Parameters:
opts SS or HMS
width minimum field width
prec number of digits right to the decimal point


Member Function Documentation

static String gridripper::util::RuntimeFormatter::format ( int  opts,
int  width,
int  prec,
double  t 
) [inline, static]

Formats the specified time.

Parameters:
opts SS or HMS
width minimum field width
prec number of digits right to the decimal point
t the time in seconds

String gridripper::util::RuntimeFormatter::format ( double  t  )  [inline]

Formats the specified time.


Member Data Documentation

Print seconds.

Print hours, minutes and seconds.


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:47:31 2009 for GridRipper by  doxygen 1.5.6