#include <convert.h>
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 &) | |
| Convert & | operator= (const Convert &) |
This is a static class that constains useful methods for various conversions.
| Convert::Convert | ( | ) | [private] |
| Convert::~Convert | ( | ) | [private] |
| Convert::Convert | ( | 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
| [in] | n | The integer for the conversion |
| static int Convert::StringToInt | ( | const std::string & | str | ) | [static] |
Converts string to integer.
Static method for conversion of a string to an integer
| [in] | str | The string for the conversion |
| static std::string Convert::UnsignedToString | ( | unsigned | n | ) | [static] |
Converts unsigned integer to string.
Static method for conversion of an unsigned integer to a string
| [in] | n | The unsigned integer for the conversion |
| 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
| [in] | str | The string for the conversion |
| static std::string Convert::BoolToString | ( | bool | b | ) | [static] |
Converts bool to string.
Static method for conversion of a boolean value to a string
| [in] | b | The boolean value for the conversion |
| 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
| [in] | str | The string for the conversion |
1.5.6