fw4spl
fwAtomConversion::AtomToDataMappingVisitor Class Reference

This visitor visits data object to fill it with associated atom object attributes. This class is used by AtomVisitor to convert an fwData::Object. More...

#include <AtomToDataMappingVisitor.hpp>

+ Inheritance diagram for fwAtomConversion::AtomToDataMappingVisitor:
+ Collaboration diagram for fwAtomConversion::AtomToDataMappingVisitor:

Public Member Functions

FWATOMCONVERSION_API AtomToDataMappingVisitor (std::shared_ptr< ::fwData::Object >dataObj, std::shared_ptr< ::fwAtoms::Object >atomObj, AtomVisitor::DataCacheType &cache, const AtomVisitor::IReadPolicy &uuidPolicy)
 Constructor. Initializes visitor.
 
virtual FWATOMCONVERSION_API ~AtomToDataMappingVisitor ()
 Destructor. Does nothing.
 
FWATOMCONVERSION_API void visit (const camp::SimpleProperty &property)
 Visits data object simple property and fill it with associated atom attribute.
 
FWATOMCONVERSION_API void visit (const camp::EnumProperty &property)
 Visits data object enum property and fill it with associated atom attribute.
 
FWATOMCONVERSION_API void visit (const camp::UserProperty &property)
 Visits data object user property and fill it with associated atom attribute. Manages null fwAtoms::Base::sptr by inserting a null fwData::Object::sptr.
 
FWATOMCONVERSION_API void visit (const camp::ArrayProperty &property)
 Visits data object array property and fill it with associated atom attribute. Manages null fwAtoms::Base::sptr by inserting a null fwData::Object::sptr. More...
 
FWATOMCONVERSION_API void visit (const camp::MapProperty &property)
 Visits data object map property and fill it with associated atom attribute. Manages null fwAtoms::Base::sptr by inserting a null fwData::Object::sptr. More...
 
- Public Member Functions inherited from camp::ExtendedClassVisitor
virtual void visit (const Property &property)
 
virtual void visit (const SimpleProperty &property)
 
virtual void visit (const ArrayProperty &property)
 
virtual void visit (const EnumProperty &property)
 
virtual void visit (const UserProperty &property)
 
virtual void visit (const Function &function)
 

Detailed Description

This visitor visits data object to fill it with associated atom object attributes. This class is used by AtomVisitor to convert an fwData::Object.

Date
2013

Definition at line 33 of file AtomToDataMappingVisitor.hpp.

Member Function Documentation

void fwAtomConversion::AtomToDataMappingVisitor::visit ( const camp::ArrayProperty &  property)

Visits data object array property and fill it with associated atom attribute. Manages null fwAtoms::Base::sptr by inserting a null fwData::Object::sptr.

Only array that contains ::fwAtoms::Base::BOOLEAN, ::fwAtoms::Base::NUMERIC, ::fwAtoms::Base::STRING and ::fwAtoms::Base::OBJECT are managed.

Definition at line 307 of file AtomToDataMappingVisitor.cpp.

void fwAtomConversion::AtomToDataMappingVisitor::visit ( const camp::MapProperty property)
virtual

Visits data object map property and fill it with associated atom attribute. Manages null fwAtoms::Base::sptr by inserting a null fwData::Object::sptr.

Only map that contains ::fwAtoms::Base::BOOLEAN, ::fwAtoms::Base::NUMERIC, ::fwAtoms::Base::STRING and ::fwAtoms::Base::OBJECT are managed.

Reimplemented from camp::ExtendedClassVisitor.

Definition at line 408 of file AtomToDataMappingVisitor.cpp.

References camp::MapProperty::elementType().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: