My Project
Public Member Functions
StringTools Class Reference

Collection of string tools. More...

#include <StringTools.hh>

List of all members.

Public Member Functions

 StringTools ()
 ~StringTools ()
vector< string > SplitString (string s)
Double StringToDouble (string s)
Float StringToFloat (string s)
Int4 StringToInt4 (string s)
UInt4 StringToUInt4 (string s)
string DoubleToString (Double d)
string FloatToString (Float f)
string Int4ToString (Int4 i)
string UInt4ToString (UInt4 i)
string VecUInt4ToString (vector< UInt4 > v)
string VecInt4ToString (vector< Int4 > v)
string VecStringToString (vector< string > v)
string VecDoubleToString (vector< Double > v)

Detailed Description

Collection of string tools.

This class is the collection of string tools. A string is splited into string element with a delimiter string by using "SplitString( string )".


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

string StringTools::DoubleToString ( Double  d)

This method converts a given value into a string.

string StringTools::FloatToString ( Float  f)

This method converts a given value into a string.

string StringTools::Int4ToString ( Int4  i)

This method converts a given integer into a string.

vector< string > StringTools::SplitString ( string  s)

The given string is splited into the string elements with delimiters of "space", "comma" and "tab". The results is returned in the vector of string type.

Double StringTools::StringToDouble ( string  s)

This method converts a given string into the value of double.

Float StringTools::StringToFloat ( string  s)

This method converts a given string into the value of float.

Int4 StringTools::StringToInt4 ( string  s)

This method converts a given string into the integer.

UInt4 StringTools::StringToUInt4 ( string  s)

This method converts a given string into the integer.

string StringTools::UInt4ToString ( UInt4  i)

Converts an unsigned integer into a string.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends