7 #ifndef __FWATOMCONVERSION_ATOMVISITOR_HPP__ 8 #define __FWATOMCONVERSION_ATOMVISITOR_HPP__ 12 #include <fwTools/UUID.hpp> 14 #include <fwAtoms/Object.hpp> 16 #include "fwAtomConversion/config.hpp" 42 virtual SPTR(::
fwData::Object) operator() (
const std::string &uuid,
const std::string &classname)
const = 0;
49 { FWATOMCONVERSION_API
virtual SPTR(::
fwData::Object) operator() (
const std::string &uuid,
50 const std::string &classname)
const; };
56 { FWATOMCONVERSION_API
virtual SPTR(::
fwData::Object) operator() (
const std::string &uuid,
57 const std::string &classname)
const; };
63 { FWATOMCONVERSION_API
virtual SPTR(::
fwData::Object) operator() (
const std::string &uuid,
64 const std::string &classname)
const; };
68 typedef std::map< ::fwTools::UUID::UUIDType, SPTR(::fwData::Object) > DataCacheType;
71 FWATOMCONVERSION_API
AtomVisitor( const ::fwAtoms::Object::sptr &atomObj, DataCacheType & cache,
75 FWATOMCONVERSION_API
virtual ~AtomVisitor();
86 FWATOMCONVERSION_API
void visit();
94 void processMetaInfos( const ::fwAtoms::Object::MetaInfosType & metaInfos );
97 void processAttributes( const ::fwAtoms::Object::AttributesType & attributes );
100 ::fwAtoms::Object::sptr m_atomObj;
106 DataCacheType & m_cache;
114 #endif // __FWATOMCONVERSION_ATOMVISITOR_HPP__
This policy throws an exception if the loaded uuid is not available.
This namespace contains the necessary class for fwData <-> fwAtoms conversion.
Visitor UUID Management policies.
This policy changes data's uuid if it already exists.
This policy reuses the data associated with an existing uuid.
Base class for each data object.
Contains the representation of the data objects used in the framework.
This class is used to convert a fwAtoms to a fwData.