cqosdb::Utility Class Reference

A class intended to perform some generic operations. More...

#include <Utility.hxx>

List of all members.

Static Public Member Functions

template<class T>
static string T_as_string (const T &t)
 Convert from a T to a string Type T must support << operator.
template<class T>
static T string_as_T (const string &s)
 Convert from a string to a T Type T must support >> operator.
static void trim (string &s)
 Remove leading whitespace.
static void stringToLower (char *str, int len)
 Convert a string to lower case.


Detailed Description

A class intended to perform some generic operations.

Member Function Documentation

template<class T>
string cqosdb::Utility::T_as_string ( const T &  t  )  [inline, static]

Convert from a T to a string Type T must support << operator.

bool cqosdb::Utility::string_as_T< bool > ( const string &  s  )  [inline, static]

Convert from a string to a T Type T must support >> operator.

Convert from a string to a bool.

Convert from a string to a string.

Interpret "false", "F", "no", "n", "0" as false; Interpret "true", "T", "yes", "y", "1", "-1", or anything else as true

void cqosdb::Utility::trim ( string &  s  )  [static]

Remove leading whitespace.

void cqosdb::Utility::stringToLower ( char *  str,
int  len 
) [static]

Convert a string to lower case.


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

Generated on Tue Sep 23 19:59:06 2008 for CQoS Database Library by  doxygen 1.5.5