--- trunk/src/utils/StringUtils.hpp 2005/04/15 22:04:00 507 +++ trunk/src/utils/StringUtils.hpp 2005/11/16 23:10:02 749 @@ -127,8 +127,20 @@ namespace oopse { } return result; } + + + template + bool isType(const std::string& str) { + T result; + std::istringstream iss(str); + bool ret = true; + if (!(iss >> result)) { + ret = false; + } + return ret; + } - std::string OOPSE_itoa(int value, unsigned int base); + std::string OOPSE_itoa(int value, unsigned int base = 10); /**@todo need implementation */ std::string getPrefix(const std::string& str);