--- trunk/src/utils/StringUtils.hpp 2005/11/16 21:37:45 748 +++ trunk/src/utils/StringUtils.hpp 2005/11/16 23:10:02 749 @@ -127,6 +127,18 @@ 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 = 10);