#ifndef morpheo_fromstring #define morpheo_fromstring /* * $Id$ * * [ Description ] * */ // #include // #include // #include #include // #include namespace morpheo { template inline T fromString (const std::string& x) { return static_cast(x.c_str()); } template<> inline uint32_t fromString (const std::string& x) { return static_cast(atoi(x.c_str())); } template<> inline bool fromString (const std::string& x) { return atoi(x.c_str())!=0; } }; // end namespace morpheo #endif