gridripper::util::DataLineFormatUtil Class Reference

Data formatting utility methods. More...

List of all members.

Static Public Member Functions

static String getFormat (String format, String name)
 Gets field format from dataline format string.
static String[] getFuncFormats (String format, String name, int n)
 Gets an n-element array of field formats from dataline format string.
static String getHeaderFormat (String format)
 Constructs header format string from dataline format string.


Detailed Description

Data formatting utility methods.

Version:
0.5, 12/24/2008
Since:
0.5, 02/20/2008
Author:
Peter Csizmadia

Member Function Documentation

static String gridripper::util::DataLineFormatUtil::getFormat ( String  format,
String  name 
) [inline, static]

Gets field format from dataline format string.

The dataline format string is a colon separated list of field name:format pairs, starting with a colon. Example: getFormat(":x:%9.6f:f:%13.6f", "f") returns "%13.6f".

Parameters:
format the dataline format string
name the field name
Returns:
the field's format or empty string if not found

static String [] gridripper::util::DataLineFormatUtil::getFuncFormats ( String  format,
String  name,
int  n 
) [inline, static]

Gets an n-element array of field formats from dataline format string.

The dataline format string is a colon separated list of field name:format pairs, starting with a colon. The k-th element of the returned array is the format of the field named namek or, if it is not present, the format of "name" or empty string.

Parameters:
format the dataline format string
name the basename of the fields to query
n number of fields to query
Returns:
the array of format strings

static String gridripper::util::DataLineFormatUtil::getHeaderFormat ( String  format  )  [inline, static]

Constructs header format string from dataline format string.

Parameters:
format the dataline format string
Returns:
the header format string


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

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