fw4spl
RelatedStudy.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #pragma once
8 
9 #include "fwActivities/config.hpp"
10 #include "fwActivities/IValidator.hpp"
11 
12 #include <fwCore/base.hpp>
13 
14 #include <fwRuntime/ConfigurationElement.hpp>
15 
16 namespace fwActivities
17 {
18 namespace validator
19 {
20 
24 class FWACTIVITIES_CLASS_API RelatedStudy : public ::fwActivities::IValidator
25 {
26 public:
28  (()),
29  ::fwActivities::validator::factory::New< RelatedStudy > );
30 
32  FWACTIVITIES_API RelatedStudy(::fwActivities::IValidator::Key key);
33 
35  FWACTIVITIES_API virtual ~RelatedStudy();
36 
40  FWACTIVITIES_API virtual IValidator::ValidationType validate(
41  const ::fwActivities::registry::ActivityInfo& activityInfo,
42  const CSPTR(::fwData::Vector)& currentSelection ) const override;
43 };
44 
45 } // namespace validator
46 } // namespace fwActivities
#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
This class defines a vector of objects.
#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.
Defines a validator which checks that given series refer to the same study.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.