Util Class Reference

Genaral untility functions. More...

#include <util.h>

List of all members.

Static Public Member Functions

static std::string strip_whitespace (const std::string &str)
static TokenList tokenize (const std::string &str, const std::string &separators)
template<typename T>
static bool fromString (T *value, const std::string &str)


Detailed Description

Genaral untility functions.

Definition at line 30 of file util.h.


Member Function Documentation

template<typename T>
static bool Util::fromString T *  value,
const std::string &  str
[inline, static]
 

Helper function

Parameters:
value Any value that can be streamed by stringstream
str The string to be converted
Returns:
true on success

Definition at line 44 of file util.h.

Referenced by Configuration::intValue(), VC820::run(), PeakTech10Ascii::run(), M9803R::run(), GDM703::setAscii(), and MetexAscii::setMetexAscii().

std::string Util::strip_whitespace const std::string &  str  )  [static]
 

Definition at line 50 of file util.cpp.

Referenced by Configuration::loadFile(), PeakTech10Ascii::run(), GDM703::setAscii(), and MetexAscii::setMetexAscii().

TokenList Util::tokenize const std::string &  str,
const std::string &  separators
[static]
 

Definition at line 22 of file util.cpp.

Referenced by Configuration::loadFile(), SerialPort::open(), and Configuration::setCommandLine().


The documentation for this class was generated from the following files:
Generated on Mon Jan 22 23:24:19 2007 for cdmm by  doxygen 1.4.6