#include <DataLineFormatUtil.h>
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. | |
| 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".
| format | the dataline format string | |
| name | the field name |
| 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.
| format | the dataline format string | |
| name | the basename of the fields to query | |
| n | number of fields to query |
| static string gridripper::util::DataLineFormatUtil::getHeaderFormat | ( | const string & | format | ) | [static] |
Constructs header format string from dataline format string.
| format | the dataline format string |
1.5.6