X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_Contour.h;h=85ebe49b83d56d8034414e9e4c0131f77e1cbc47;hb=f6eb604895c396999872e92dd944c57e8189da94;hp=b59976969eaac0d6ce3808f25ef0bf88c2f60189;hpb=163fa80ef3873595f3e3cf75fb03e53536d1a6ee;p=clitk.git diff --git a/common/clitkDicomRT_Contour.h b/common/clitkDicomRT_Contour.h index b599769..85ebe49 100644 --- a/common/clitkDicomRT_Contour.h +++ b/common/clitkDicomRT_Contour.h @@ -51,33 +51,6 @@ namespace clitk { }; //-------------------------------------------------------------------- - //-------------------------------------------------------------------- - template - ElementType parse_value(std::string str) - { - std::istringstream parser(str); - ElementType value; - parser >> value; - if (parser.fail()) { - DD(str); - DD(value); - } - assert(!parser.fail()); - return value; - } - - template - std::vector parse_string(std::string str,char delim) { - std::istringstream ss(str); - std::string token; - std::vector result; - while (getline(ss,token,delim)) - { - result.push_back(parse_value(token)); - } - return result; - } - //-------------------------------------------------------------------- } // end namespace clitk