Utils Class Reference

General TRANTOO unitilities class. More...

#include <utils.h>

List of all members.

Static Public Member Functions

static void encodeVectorDoubleAsString (const vector< double > &v, string &s)
 Encode data in a vector double as a string.
static bool getCommandLineArgument (const QStringList &parameter, QString &value)
 Overloaded function provided for conveniance.
static bool getCommandLineArgument (const QString &parameter, QString &value)
 Retrieve an argument from the command line.


Detailed Description

General TRANTOO unitilities class.

Various utilities for use by TRANTOO itself.


Member Function Documentation

static void Utils::encodeVectorDoubleAsString ( const vector< double > &  v,
string &  s 
) [inline, static]

Encode data in a vector double as a string.

Parameters:
v source vector
s target string
Todo:
UNIT TEST THIS FUNCTION

static bool Utils::getCommandLineArgument ( const QStringList &  parameter,
QString &  value 
) [inline, static]

Overloaded function provided for conveniance.

Parameters:
parameter used to identify the option being used
value for the parameter
Returns:
true if the parameter exists
Test:
that all but only the parameters provided work.
This function provides for the case where there may be multiple ways of using a parameter at the command line, eg. "--modulepath" is the full option but "-m" can be used as a shortcut.

static bool Utils::getCommandLineArgument ( const QString &  parameter,
QString &  value 
) [inline, static]

Retrieve an argument from the command line.

Parameters:
parameter used to identify the option being used (supplied by the caller)
value for the parameter (supplied by this method)
Returns:
true if the parameter exists *
Test:
that the values are retrieved correctly


Generated on Mon Feb 23 16:42:01 2009 for Dragon Wings by  doxygen 1.5.5