Salome HOME
Merge branch 'master' of newgeom:newgeom.git into BR_PYTHON_PLUGIN
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Validators.h
1 // File:        SketchPlugin_Validators.h
2 // Created:     01 Aug 2014
3 // Author:      Vitaly SMETANNIKOV
4
5 #ifndef EXCHANGEPLUGIN_VALIDATORS_H
6 #define EXCHANGEPLUGIN_VALIDATORS_H
7
8 #include "ExchangePlugin.h"
9 #include <ModelAPI_AttributeValidator.h>
10
11 class ExchangePlugin_ImportFormatValidator : public ModelAPI_AttributeValidator
12 {
13   /*
14    * Parses input arguments "BREP:BREPImport", "STEP:STEPImport"
15    * into list of file formats "BREP","STEP"
16    * and list of corresponding plugins: "BREPImport", "STEPImport"
17    */
18   static bool parseFormats(const std::list<std::string>& theArguments,
19                              std::list<std::string>& outFormats);
20   static bool parsePlugins(const std::list<std::string>& theArguments,
21                            std::list<std::string>& outPlugins);
22  public:
23   virtual bool isValid(const AttributePtr& theAttribute,
24                        const std::list<std::string>& theArguments) const;
25
26
27
28 };
29
30 #endif