1 // File: SketchPlugin_Validators.h
2 // Created: 01 Aug 2014
3 // Author: Vitaly SMETANNIKOV
5 #ifndef EXCHANGEPLUGIN_VALIDATORS_H
6 #define EXCHANGEPLUGIN_VALIDATORS_H
8 #include "ExchangePlugin.h"
9 #include <ModelAPI_AttributeValidator.h>
11 class ExchangePlugin_ImportFormatValidator : public ModelAPI_AttributeValidator
14 * Parses input arguments "BREP:BREPImport", "STEP:STEPImport"
15 * into list of file formats "BREP","STEP"
16 * and list of corresponding plugins: "BREPImport", "STEPImport"
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);
23 virtual bool isValid(const AttributePtr& theAttribute,
24 const std::list<std::string>& theArguments) const;