fw4spl
fwAtomConversion/include/fwAtomConversion/mapper/Graph.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_MAPPER_GRAPH_HPP__
8 #define __FWATOMCONVERSION_MAPPER_GRAPH_HPP__
9 
10 
11 #include "fwAtomConversion/AtomVisitor.hpp"
12 #include "fwAtomConversion/config.hpp"
13 #include "fwAtomConversion/mapper/Base.hpp"
14 
15 namespace fwAtoms
16 {
17 class Object;
18 }
19 
20 namespace fwData
21 {
22 class Object;
23 }
24 
25 namespace fwAtomConversion
26 {
27 namespace mapper
28 {
29 
39 class FWATOMCONVERSION_CLASS_API Graph : public Base
40 {
41 public:
42 
48  FWATOMCONVERSION_API virtual SPTR(::fwAtoms::Object) convert ( SPTR(::fwData::Object) object,
49  DataVisitor::AtomCacheType & cache );
50 
57  FWATOMCONVERSION_API virtual SPTR(::fwData::Object) convert ( SPTR(::fwAtoms::Object) atom,
58  AtomVisitor::DataCacheType & cache,
59  const AtomVisitor::IReadPolicy &uuidPolicy
60  );
61 
62 };
63 
64 }
65 }
66 
67 #endif /* __FWATOMCONVERSION_MAPPER_GRAPH_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.
Visitor UUID Management policies.
Definition: AtomVisitor.hpp:40
Class represented a fwData::Object.
FWATOMCONVERSION_API std::shared_ptr< ::fwAtoms::Object > convert(const std::shared_ptr< ::fwData::Object > &data)
Helper to convert a fwData::Object to a fwAtoms::Object.
Base class for each data object.
Contains the representation of the data objects used in the framework.
Base class of custom mapper between fwData and fwAtoms.