Convert Class Reference

A static class for conversions. More...

#include <convert.h>

List of all members.

Static Public Member Functions

static std::string IntToString (int n)
 Converts integer to string.
static int StringToInt (const std::string &str)
 Converts string to integer.
static std::string UnsignedToString (unsigned n)
 Converts unsigned integer to string.
static unsigned StringToUnsigned (const std::string &str)
 Converts string to unsigned integer.
static std::string BoolToString (bool b)
 Converts bool to string.
static bool StringToBool (const std::string &str)
 Converts string to boolean value.

Private Member Functions

 Convert ()
 ~Convert ()
 Convert (const Convert &)
Convertoperator= (const Convert &)


Detailed Description

A static class for conversions.

This is a static class that constains useful methods for various conversions.


Constructor & Destructor Documentation

Convert::Convert (  )  [private]

Convert::~Convert (  )  [private]

Convert::Convert ( const Convert  )  [private]


Member Function Documentation

Convert& Convert::operator= ( const Convert  )  [private]

static std::string Convert::IntToString ( int  n  )  [static]

Converts integer to string.

Static method for conversion of an integer to a string

Parameters:
[in] n The integer for the conversion
Returns:
The string representation of the integer

static int Convert::StringToInt ( const std::string &  str  )  [static]

Converts string to integer.

Static method for conversion of a string to an integer

Parameters:
[in] str The string for the conversion
Returns:
The integer value of the string

static std::string Convert::UnsignedToString ( unsigned  n  )  [static]

Converts unsigned integer to string.

Static method for conversion of an unsigned integer to a string

Parameters:
[in] n The unsigned integer for the conversion
Returns:
The string representation of the unsigned integer

static unsigned Convert::StringToUnsigned ( const std::string &  str  )  [static]

Converts string to unsigned integer.

Static method for conversion of a string to the unsigned integer

Parameters:
[in] str The string for the conversion
Returns:
The unsigned integer value of the string

static std::string Convert::BoolToString ( bool  b  )  [static]

Converts bool to string.

Static method for conversion of a boolean value to a string

Parameters:
[in] b The boolean value for the conversion
Returns:
The string representation of the boolean value

static bool Convert::StringToBool ( const std::string &  str  )  [static]

Converts string to boolean value.

Static method for conversion of a string to a boolean value

Parameters:
[in] str The string for the conversion
Returns:
The boolean value of the string


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

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6