fw4spl
fwAtomConversion::mapper::Graph Class Reference

Specific mapper used to convert a fwData::Graph. More...

#include <Graph.hpp>

+ Inheritance diagram for fwAtomConversion::mapper::Graph:
+ Collaboration diagram for fwAtomConversion::mapper::Graph:

Public Member Functions

virtual FWATOMCONVERSION_API std::shared_ptr< ::fwAtoms::Objectconvert (std::shared_ptr< ::fwData::Object > object, DataVisitor::AtomCacheType &cache)
 Convert a fwData::Object to a fwAtoms::Object. More...
 
virtual FWATOMCONVERSION_API std::shared_ptr< ::fwData::Objectconvert (std::shared_ptr< ::fwAtoms::Object > atom, AtomVisitor::DataCacheType &cache, const AtomVisitor::IReadPolicy &uuidPolicy)
 Convert a fwAtoms::Object to a fwData::Object (which represent a fwData::Graph). More...
 

Detailed Description

Specific mapper used to convert a fwData::Graph.

Date
2012-2013

The attribute ::fwData::Graph::m_connections ( of type ::fwData::Graph::ConnectionContainer ) is represented in fwAtoms world like a fwAtoms::Sequence that contains fwAtoms::Object with three attributes "edge", "source" and "destination".

Definition at line 39 of file fwAtomConversion/include/fwAtomConversion/mapper/Graph.hpp.

Member Function Documentation

virtual FWATOMCONVERSION_API std::shared_ptr< ::fwAtoms::Object > fwAtomConversion::mapper::Graph::convert ( std::shared_ptr< ::fwData::Object object,
DataVisitor::AtomCacheType &  cache 
)
virtual

Convert a fwData::Object to a fwAtoms::Object.

Parameters
objectdata to convert. It must be a fwData::Graph.
cachecache to register the data already converted, used when a data is referenced multiple times.

Implements fwAtomConversion::mapper::Base.

virtual FWATOMCONVERSION_API std::shared_ptr< ::fwData::Object > fwAtomConversion::mapper::Graph::convert ( std::shared_ptr< ::fwAtoms::Object atom,
AtomVisitor::DataCacheType &  cache,
const AtomVisitor::IReadPolicy uuidPolicy 
)
virtual

Convert a fwAtoms::Object to a fwData::Object (which represent a fwData::Graph).

Parameters
atomatom to convert
cachecache to register the atoms already converted, used when an atom is referenced multiple times.
uuidPolicyAtomVisitor policy

Implements fwAtomConversion::mapper::Base.


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