Salome HOME
#2027 Sketcher Trim Feature: 1. preview/selected attributes in trim; 2. avoid includi...
[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 #include <ModelAPI_AttributeTables.h>
12
13 #include <list>
14 #include <string>
15
16 /**
17  * \class ExchangePlugin_Tools
18  * \brief Internal tools for the ExchangePlugin.
19  */
20 class EXCHANGEPLUGIN_EXPORT ExchangePlugin_Tools {
21 public:
22   /// Splits theString using theDelimiter.
23   static std::list<std::string> split(const std::string& theString,
24                                       char theDelimiter);
25
26   /// Converts string representation of selection type to XAO dimension.
27   static std::string selectionType2xaoDimension(const std::string& theString);
28
29   /// Converts string representation of XAO dimension to selection type.
30   static std::string xaoDimension2selectionType(const std::string& theDimension);
31
32   /// Converts representation of values type to XAO type.
33   static std::string valuesType2xaoType(const ModelAPI_AttributeTables::ValueType& theType);
34   /// Converts representation of values type to XAO type.
35   static ModelAPI_AttributeTables::ValueType xaoType2valuesType(std::string theType);
36 };
37
38 #endif /* EXCHANGEPLUGIN_TOOLS_H_ */