Salome HOME
Issue #1730: do not hide sketch objects if sketch editing is active
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Tools.h
index b855207048479f667fe0a5ccbae0ad2eddb0c1ed..c481d8ddc2588b6eab4d687f0a49ef5d37334c4f 100644 (file)
@@ -1,9 +1,8 @@
-/*
- * ExchangePlugin_Tools.h
- *
- *  Created on: May 15, 2015
- *      Author: spo
- */
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:    ExchangePlugin_Tools.h
+// Created: May 15, 2015
+// Author:  Sergey POKHODENKO
 
 #ifndef EXCHANGEPLUGIN_TOOLS_H_
 #define EXCHANGEPLUGIN_TOOLS_H_
@@ -13,9 +12,9 @@
 #include <list>
 #include <string>
 
-/**\class ExchangePlugin_Tools
- * \ingroup Plugins
- * \brief Internal tools for the plugin.
+/**
+ * \class ExchangePlugin_Tools
+ * \brief Internal tools for the ExchangePlugin.
  */
 class EXCHANGEPLUGIN_EXPORT ExchangePlugin_Tools {
 public:
@@ -23,6 +22,12 @@ public:
   static std::list<std::string> split(const std::string& theString,
                                       char theDelimiter);
 
+  /// Converts string representation of selection type to XAO dimension.
+  static std::string selectionType2xaoDimension(const std::string& theString);
+
+  /// Converts string representation of XAO dimension to selection type.
+  static std::string xaoDimension2selectionType(const std::string& theDimension);
+
 };
 
 #endif /* EXCHANGEPLUGIN_TOOLS_H_ */