7 #include "fwAtomConversion/mapper/AttachmentSeries.hpp" 9 #include "fwAtomConversion/convert.hpp" 10 #include "fwAtomConversion/exception/ConversionNotManaged.hpp" 11 #include "fwAtomConversion/mapper/registry/macros.hpp" 13 #include <fwAtoms/String.hpp> 15 #include <fwMedData/AttachmentSeries.hpp> 17 #include <fwTools/UUID.hpp> 31 DataVisitor::AtomCacheType& cache )
33 const camp::Class& metaclass = ::camp::classByName( object->getClassname() );
35 metaclass.visit(visitor);
36 ::fwAtoms::Object::sptr atom = visitor.getAtomObject();
38 ::fwMedData::AttachmentSeries::sptr attachment = ::fwMedData::AttachmentSeries::dynamicCast(
object);
41 ::boost::filesystem::path attachFile = attachment->getAttachmentPath();
50 AtomVisitor::DataCacheType& cache,
51 const AtomVisitor::IReadPolicy& uuidPolicy
56 ::fwData::Object::sptr data = visitor.getDataObject();
57 ::fwMedData::AttachmentSeries::sptr attachment = ::fwMedData::AttachmentSeries::dynamicCast(data);
This namespace contains the necessary class for fwData <-> fwAtoms conversion.
static FWATOMS_API String::sptr New(std::string value)
Construct a new Object represented a string.
virtual FWATOMCONVERSION_API std::shared_ptr< ::fwAtoms::Object > convert(std::shared_ptr< ::fwData::Object > object, DataVisitor::AtomCacheType &cache)
Convert a fwData::Object to a fwAtoms::Object.
Visitor used to convert a fwData to a fwAtoms. fwData camp property names are used like key to store ...
Specific mapper used to convert a fwMedData::AttachmentSeries.
This class is used to convert a fwAtoms to a fwData.