gridripper::util::RuntimeFormatter Class Reference

Runtime formatter for AMR. More...

#include <RuntimeFormatter.h>

List of all members.

Public Types

enum  { SS = 0, HMS = 1 }

Public Member Functions

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

Static Public Member Functions

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


Detailed Description

Runtime formatter for AMR.

Version:
0.5, 01/08/2007
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::util::RuntimeFormatter::RuntimeFormatter ( int  opts,
int  width,
int  prec 
)

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 
) [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  )  const

Formats the specified time.


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

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