fw4spl
convert.hpp
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 #ifndef __FWATOMCONVERSION_CONVERT_HPP__
8 #define __FWATOMCONVERSION_CONVERT_HPP__
9 
10 #include "fwAtomConversion/config.hpp"
11 #include "fwAtomConversion/DataVisitor.hpp"
12 #include "fwAtomConversion/AtomVisitor.hpp"
13 
14 namespace fwAtoms
15 {
16 class Object;
17 }
18 namespace fwData
19 {
20 class Object;
21 }
22 
23 namespace fwAtomConversion
24 {
25 
44 FWATOMCONVERSION_API SPTR(::fwAtoms::Object) convert( const SPTR(::fwData::Object) &data );
45 
53 FWATOMCONVERSION_API SPTR(::fwAtoms::Object) convert( const SPTR(::fwData::Object) &dataObj,
54  DataVisitor::AtomCacheType & cache );
55 
70 FWATOMCONVERSION_API SPTR(::fwData::Object) convert(
71  const SPTR(::fwAtoms::Object) &atom,
72  const AtomVisitor::IReadPolicy &uuidPolicy = AtomVisitor::ChangePolicy()
73  );
74 
86 FWATOMCONVERSION_API SPTR(::fwData::Object) convert( const SPTR(::fwAtoms::Object) &atomObj,
87  AtomVisitor::DataCacheType & cache,
88  const AtomVisitor::IReadPolicy &uuidPolicy );
89 
90 } // end namespace fwAtomConversion
91 
92 #endif // __FWATOMCONVERSION_CONVERT_HPP__
#define SPTR(_cls_)
fwAtoms contains basic objects to represent any other kind of object
This namespace contains the necessary class for fwData <-> fwAtoms conversion.
Class represented a fwData::Object.
Contains the representation of the data objects used in the framework.