]> Creatis software - clitk.git/blobdiff - common/clitkDicomRT_Contour.h
add conversion utility from vtk to itk
[clitk.git] / common / clitkDicomRT_Contour.h
index b59976969eaac0d6ce3808f25ef0bf88c2f60189..85ebe49b83d56d8034414e9e4c0131f77e1cbc47 100644 (file)
@@ -51,33 +51,6 @@ namespace clitk {
   };
   //--------------------------------------------------------------------
 
-  //--------------------------------------------------------------------
-  template<class ElementType>
-  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<class ElementType>
-  std::vector<ElementType> parse_string(std::string str,char delim) {
-    std::istringstream ss(str);
-    std::string token;
-    std::vector<ElementType> result;
-    while (getline(ss,token,delim))
-      {
-        result.push_back(parse_value<ElementType>(token));
-      }
-    return result;
-  }
-  //--------------------------------------------------------------------
 
 
 } // end namespace clitk