1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_ResultValidators.h
4 // Created: 23 July 2014
5 // Author: Vitaly SMETANNIKOV
7 #ifndef ModelAPI_ResultValidators_H
8 #define ModelAPI_ResultValidators_H
10 #include "ModelAPI_Validator.h"
11 #include "ModelAPI_Object.h"
13 /**\class ModelAPI_ResultValidator
15 * \brief The base class for selection filter for results of features.
17 * The referenced arguments of feature is normally results displayed in the viewer or by the
18 * selection attribute. This filter allows to filter out the results not usable as this argument.
20 class ModelAPI_ResultValidator : public ModelAPI_Validator
23 /// The abstract method for implementation in the specific validator.
24 /// \param theObject the checked object as an argument
25 /// \returns true if object is OK for this filter
26 virtual bool isValid(const ObjectPtr theObject) const = 0;