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