fw4spl
Abstract.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
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 
8 #include "fwAtomsPatch/conditions/Abstract.hpp"
9 
10 namespace fwAtomsPatch
11 {
12 namespace conditions
13 {
14 
15 Abstract::Abstract(::fwAtoms::Base::sptr defaultValue)
16  : m_defaultValue(defaultValue)
17 {
18 }
19 
20 // ----------------------------------------------------------------------------
21 
22 ::fwAtoms::Base::sptr Abstract::getDefaultValue()
23 {
24  return m_defaultValue;
25 }
26 
27 // ----------------------------------------------------------------------------
28 
29 bool Abstract::test(::fwAtoms::Base::sptr old, ::fwAtoms::Base::sptr newValue)
30 {
31  return true;
32 }
33 
34 // ----------------------------------------------------------------------------
35 
36 bool Abstract::test(::fwAtoms::Base::sptr value)
37 {
38  return true;
39 }
40 
41 } //conditions
42 
43 } //fwAtomsPatch
44 
45 
Contains functions used to control patching process by defining conditions on objects.
Definition: Abstract.hpp:18
Contains base functionalities used to transform objects from a version to another.
Definition: Abstract.hpp:16