Salome HOME
Merge branch 'master' into BR_PYTHON_PLUGIN
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Validators.h
index 21d72765b0bce158c26a991448a79145a6151844..f390f57586309cfdf9353bd2d041688ec3956479 100644 (file)
 
 class ExchangePlugin_ImportFormatValidator : public ModelAPI_AttributeValidator
 {
+  /*
+   * Parses input arguments "BREP:BREPImport", "STEP:STEPImport"
+   * into list of file formats "BREP","STEP"
+   * and list of corresponding plugins: "BREPImport", "STEPImport"
+   */
+  static bool parseFormats(const std::list<std::string>& theArguments,
+                             std::list<std::string>& outFormats);
+  static bool parsePlugins(const std::list<std::string>& theArguments,
+                           std::list<std::string>& outPlugins);
  public:
-  virtual bool isValid(
-    const AttributePtr& theAttribute, const std::list<std::string>& theArguments) const;
+  virtual bool isValid(const AttributePtr& theAttribute,
+                       const std::list<std::string>& theArguments) const;
+
+
 
 };