Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom into Dev_1.1.0
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Validators.h
index 1e93f95accb8c8d164b6882b3bedbcbeb4e42961..f8db19fc21857ae0e17ecea369e868b4340d7b93 100644 (file)
 #include "ExchangePlugin.h"
 #include <ModelAPI_AttributeValidator.h>
 
+/**\class ExchangePlugin_ImportFormatValidator
+ * \ingroup Validators
+ * \brief Validator for the imported formats checking
+ *
+ * The configuration file of import/export features contains the information
+ * about which formats are supported and the extension of the associated files.
+ * This validator filters out files that are out of this description.
+ */
 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:
+public:
+  /**
+   * Returns true is the file-name attribute correctly corresponds to the set of
+   * allowed formats.
+   */
   virtual bool isValid(const AttributePtr& theAttribute,
                        const std::list<std::string>& theArguments) const;