7 #include "fwActivities/validator/DefaultActivity.hpp" 8 #include "fwActivities/validator/registry/macros.hpp" 10 #include <fwData/Composite.hpp> 11 #include <fwData/Vector.hpp> 13 #include <fwMedData/ActivitySeries.hpp> 21 fwActivitiesValidatorRegisterMacro(
std::pair< bool, std::string > ValidationType
Defines validation result of an activity. First element tells if the activity is validated or not by ...
FWACTIVITIES_API ValidationType checkRequirements(const std::shared_ptr< const ::fwMedData::ActivitySeries > &activity) const
Checks if all the required data are present in the activity series.
virtual FWACTIVITIES_API ~DefaultActivity()
Destructor. Do nothing.
FWACTIVITIES_API ValidationType checkParameters(const std::shared_ptr< const ::fwMedData::ActivitySeries > &activity) const
Checks if all the activity's AppConfig parameters are valid.
Defines a validator which checks that activity requirements are valid.
FWACTIVITIES_API DefaultActivity(::fwActivities::IValidator::Key key)
Constructor. Do nothing.
virtual FWACTIVITIES_API IValidator::ValidationType validate(const std::shared_ptr< const ::fwMedData::ActivitySeries > &activitySeries) const override
Checks if all the required data are present and if the appConfig parameters are found.
Namespace containing activities data and builder.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.