--- trunk/src/utils/StringUtils.hpp 2005/05/27 04:41:34 544 +++ trunk/src/utils/StringUtils.hpp 2006/01/09 19:11:52 838 @@ -127,6 +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; + } + + bool isInteger(const std::string& str); std::string OOPSE_itoa(int value, unsigned int base = 10);