ModuleBase_WidgetValidated.cpp
ModuleBase_WidgetExprEditor.cpp
ModuleBase_ParamSpinBox.cpp
+ ModuleBase_SelectionValidator.cpp
)
SET(PROJECT_LIBRARIES
--- /dev/null
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File: ModuleBase_SelectionValidator.cpp
+// Created: 8 Jul 2014
+// Author: Vitaly SMETANNIKOV
+
+#include <ModuleBase_SelectionValidator.h>
+
+ModuleBase_SelectionValidator::~ModuleBase_SelectionValidator()
+{
+}
+
+bool ModuleBase_SelectionValidator::isValid(const ModuleBase_ISelection* theSelection,
+ const std::list<std::string>& theArguments) const
+{
+ return isValid(theSelection);
+}
class ModuleBase_SelectionValidator : public ModelAPI_Validator
{
public:
+ virtual ~ModuleBase_SelectionValidator();
/// Returns True if selection is valid
/// \param theSelection selection instance
virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
/// \param theSelection selection instance
/// \param theArguments list of arguments
virtual bool isValid(const ModuleBase_ISelection* theSelection,
- const std::list<std::string>& theArguments) const
- {
- return isValid(theSelection);
- }
+ const std::list<std::string>& theArguments) const;
+
};
#endif