Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

pge::utils Namespace Reference


Functions

std::string intToString (int i)
int stringToInt (const std::string &s)
float stringToFloat (const std::string &s)


Function Documentation

std::string intToString int  i  )  [static]
 

Definition at line 17 of file Utils.h.

00017                                                     {
00018                         std::stringstream str;
00019                         std::string s;
00020 
00021                         str << i;
00022                         str >> s;
00023                         return s;
00024                 }

float stringToFloat const std::string &  s  )  [static]
 

Definition at line 44 of file Utils.h.

00044                                                                {
00045                         std::istringstream stream;
00046                         float f = 0.0f;
00047 
00048 
00049                         stream.str(s);
00050                         stream >> std::dec >> f;
00051                         return f;
00052                 }

int stringToInt const std::string &  s  )  [static]
 

Definition at line 30 of file Utils.h.

00030                                                            {
00031                         std::istringstream stream;
00032                         int d = 0;
00033 
00034 
00035                         stream.str(s);
00036                         stream >> d;
00037                         return d;
00038                 }


Generated on Mon Oct 16 12:10:02 2006 for Phobosengine by doxygen 1.3.4