//========================================================================= //$Id$ // //File description // This is a collection of helper functions // //TO-DO: // 1. //========================================================================= #ifndef HELPER_H #define HELPER_H //--------------------------------------------------------------------- //Header files inclusion //--------------------------------------------------------------------- #include #include //--------------------------------------------------------------------- //Global data structures and variables //--------------------------------------------------------------------- //--------------------------------------------------------------------- //Function description: // Convert anything to string //Input: // //Output: // //--------------------------------------------------------------------- template std::string any2string(T i) { std::ostringstream buffer; buffer << i; return buffer.str(); } #endif