X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.txx;h=b5a34712a9988438db9ec4afbf06c35d21092f76;hb=97e94d6d86e558d1d377486bf2db1549c06f4fd1;hp=d7c91405dda8f45ff76138c341784f4d05b16b4c;hpb=7fb3f08a03ea03edb40f5e73d59381c5a92935fb;p=clitk.git diff --git a/common/clitkCommon.txx b/common/clitkCommon.txx index d7c9140..b5a3471 100644 --- a/common/clitkCommon.txx +++ b/common/clitkCommon.txx @@ -17,17 +17,11 @@ ======================================================================-====*/ #ifndef CLITKCOMMON_TXX #define CLITKCOMMON_TXX -/** - ------------------------------------------------- - * @file clitkCommon.txx - * @author David Sarrut - * @date 18 May 2006 - * - -------------------------------------------------*/ //------------------------------------------------------- // Utility functions for text file parsing (author: joel schaerer) +//-------------------------------------------------------------------- template ElementType parse_value(std::string str) { @@ -37,7 +31,10 @@ ElementType parse_value(std::string str) assert(!parser.fail()); return value; } +//-------------------------------------------------------------------- + +//-------------------------------------------------------------------- template std::vector parse_string(std::string str,char delim) { @@ -49,7 +46,10 @@ std::vector parse_string(std::string str,char delim) } return result; } +//-------------------------------------------------------------------- + +//-------------------------------------------------------------------- template std::vector > parse_file(const char* filename,char delim) { @@ -62,6 +62,8 @@ std::vector > parse_file(const char* filename,char deli } return result; } +//-------------------------------------------------------------------- + //-------------------------------------------------------------------- // Convert float, double ... to string