fw4spl
DefaultActivity.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2016-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWACTIVITIES_VALIDATOR_DEFAULTACTIVITY_HPP__
8 #define __FWACTIVITIES_VALIDATOR_DEFAULTACTIVITY_HPP__
9 
10 #include "fwActivities/config.hpp"
11 #include "fwActivities/IActivityValidator.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 namespace fwActivities
16 {
17 namespace validator
18 {
19 
25 class FWACTIVITIES_CLASS_API DefaultActivity : public ::fwActivities::IActivityValidator
26 {
27 public:
29  (()),
30  ::fwActivities::validator::factory::New< DefaultActivity > )
31 
32 
33  FWACTIVITIES_API DefaultActivity(::fwActivities::IValidator::Key key);
34 
36  FWACTIVITIES_API virtual ~DefaultActivity();
37 
39  FWACTIVITIES_API virtual IValidator::ValidationType validate(
40  const CSPTR(::fwMedData::ActivitySeries)& activitySeries ) const override;
41 };
42 
43 } // namespace validator
44 } // namespace fwActivities
45 
46 #endif // __FWACTIVITIES_VALIDATOR_DEFAULTACTIVITY_HPP__
47 
#define CSPTR(_cls_)
std::pair< bool, std::string > ValidationType
Defines validation result of an activity. First element tells if the activity is validated or not by ...
Definition: IValidator.hpp:39
Namespace containing medical data.
Base class for all fwActivities activity validator&#39;s classes.
Defines a validator which checks that activity requirements are valid.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for all fwActivities validator&#39;s classes.
Definition: IValidator.hpp:29
Namespace containing activities data and builder.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.