Salome HOME
Issue #529: 4.07. Import IGES, export to BREP, STEP, IGES - Tests for Import/Export
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Tools.cpp
1 /*
2  * ExchangePlugin_Tools.cpp
3  *
4  *  Created on: May 15, 2015
5  *      Author: spo
6  */
7
8 #include <ExchangePlugin_Tools.h>
9
10 #include <sstream>
11
12 std::list<std::string> ExchangePlugin_Tools::split(const std::string& theString, char theDelimiter)
13 {
14   std::list<std::string> theResult;
15   std::istringstream aStream(theString);
16   std::string aSection;
17   while (std::getline(aStream, aSection, theDelimiter))
18     theResult.push_back(aSection);
19   return theResult;
20 }