1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ExchangePlugin_Tools.cpp
4 // Created: May 15, 2015
5 // Author: Sergey POKHODENKO
7 #include <ExchangePlugin_Tools.h>
11 std::list<std::string> ExchangePlugin_Tools::split(const std::string& theString, char theDelimiter)
13 std::list<std::string> theResult;
14 std::istringstream aStream(theString);
16 while (std::getline(aStream, aSection, theDelimiter))
17 theResult.push_back(aSection);
21 std::string ExchangePlugin_Tools::selectionType2xaoDimension(const std::string& theType)
23 if (theType == "Vertices" || theType == "vertex")
25 else if (theType == "Edges" || theType == "edge")
27 else if (theType == "Faces" || theType == "face")
29 else if (theType == "Solids" || theType == "solid")
35 std::string ExchangePlugin_Tools::xaoDimension2selectionType(const std::string& theDimension)
37 if (theDimension == "vertex")
39 else if (theDimension == "edge")
41 else if (theDimension == "face")
43 else if (theDimension == "solid")