gridripper::util::DataLineFormatUtil Class Reference

Data formatting utility methods. More...

#include <DataLineFormatUtil.h>

List of all members.

Static Public Member Functions

static string getFormat (const string &format, const string &name)
 Gets field format from dataline format string.
static tvalarray< string > getFuncFormats (const string &format, const string &name, int n)
 Gets an n-element array of field formats from dataline format string.
static string getHeaderFormat (const 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 ( const string &  format,
const string &  name 
) [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 tvalarray<string> gridripper::util::DataLineFormatUtil::getFuncFormats ( const string &  format,
const string &  name,
int  n 
) [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 ( const string &  format  )  [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:46:59 2009 for GridRipper by  doxygen 1.5.6