Functions | |
std::string | ltostr (long i) |
std::string | dtostr (double d) |
double | atod (const char *s) |
unsigned long | atoul (const char *s) |
double OPP_Global::atod | ( | const char * | s | ) |
unsigned long OPP_Global::atoul | ( | const char * | s | ) |
Converts string to unsigned long
Referenced by RoutingTable6::configureInterfaceFromXML().
00048 { 00049 char *e; 00050 unsigned long d = ::strtoul(s,&e,10); 00051 if (*e) 00052 throw cRuntimeError("invalid cast: '%s' cannot be interpreted as an unsigned long", s); 00053 return d; 00054 }
std::string OPP_Global::dtostr | ( | double | d | ) |
std::string OPP_Global::ltostr | ( | long | i | ) |