Salome HOME
1. Tangent Arc - restart operation. Scenario: create Line, point, Start tangent arc...
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Tools.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:    ExchangePlugin_Tools.h
4 // Created: May 15, 2015
5 // Author:  Sergey POKHODENKO
6
7 #ifndef EXCHANGEPLUGIN_TOOLS_H_
8 #define EXCHANGEPLUGIN_TOOLS_H_
9
10 #include <ExchangePlugin.h>
11
12 #include <list>
13 #include <string>
14
15 /**
16  * \class ExchangePlugin_Tools
17  * \brief Internal tools for the ExchangePlugin.
18  */
19 class EXCHANGEPLUGIN_EXPORT ExchangePlugin_Tools {
20 public:
21   /// Splits theString using theDelimiter.
22   static std::list<std::string> split(const std::string& theString,
23                                       char theDelimiter);
24
25   /// Converts string representation of selection type to XAO dimension.
26   static std::string selectionType2xaoDimension(const std::string& theString);
27
28   /// Converts string representation of XAO dimension to selection type.
29   static std::string xaoDimension2selectionType(const std::string& theDimension);
30
31 };
32
33 #endif /* EXCHANGEPLUGIN_TOOLS_H_ */