fw4spl
Integer.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-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 __FWDATA_INTEGER_HPP__
8 #define __FWDATA_INTEGER_HPP__
9 
10 #include "fwData/config.hpp"
11 #include "fwData/factory/new.hpp"
12 #include "fwData/GenericField.hpp"
13 #include "fwData/Object.hpp"
14 
15 fwCampAutoDeclareDataMacro((fwData)(Integer), FWDATA_API);
16 
17 namespace fwData
18 {
19 
24 class FWDATA_CLASS_API Integer : public GenericField< int >
25 {
26 public:
28  GenericFieldFactory< Integer >);
29  fwCampMakeFriendDataMacro((fwData)(Integer));
30 
35  FWDATA_API Integer( ::fwData::Object::Key key ) noexcept;
36 
40  FWDATA_API virtual ~Integer() noexcept;
41 
43  FWDATA_API void shallowCopy( const Object::csptr& _source ) override;
44 
46  FWDATA_API void cachedDeepCopy(const Object::csptr& _source, DeepCopyCacheType& cache) override;
47 };
48 
49 } // namespace fwData
50 
51 #endif // __FWDATA_INTEGER_HPP__
52 
This class contains an integer value. Integer object is essentially used as a field in other objects...
Definition: Integer.hpp:24
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for each data object.
Contains the representation of the data objects used in the framework.