fw4spl
|
This namespace contains the necessary class for fwData <-> fwAtoms conversion. More...
Namespaces | |
exception | |
This namespace contains the exception raised by fwData <-> fwAtoms conversion. | |
mapper | |
This namespace contains the specific mappers used to convert few data. | |
Classes | |
class | AtomToDataMappingVisitor |
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... | |
class | AtomVisitor |
This class is used to convert a fwAtoms to a fwData. More... | |
struct | DataConversionValueVisitor |
class | DataVisitor |
Visitor used to convert a fwData to a fwAtoms. fwData camp property names are used like key to store attributes in fwAtoms::Object. More... | |
class | NumericArrayPropertyVisitor |
class | NumericMapPropertyVisitor |
class | NumericSimplePropertyVisitor |
Functions | |
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. More... | |
FWATOMCONVERSION_API std::shared_ptr< ::fwAtoms::Object > | convert (const std::shared_ptr< ::fwData::Object > &dataObj, DataVisitor::AtomCacheType &cache) |
Converts a fwData::Object to a fwAtoms::Object. More... | |
FWATOMCONVERSION_API std::shared_ptr< ::fwData::Object > | convert (const std::shared_ptr< ::fwAtoms::Object > &atom, const AtomVisitor::IReadPolicy &uuidPolicy=AtomVisitor::ChangePolicy()) |
Helper to convert a fwAtoms::Object to a fwData::Object. More... | |
FWATOMCONVERSION_API std::shared_ptr< ::fwData::Object > | convert (const std::shared_ptr< ::fwAtoms::Object > &atomObj, AtomVisitor::DataCacheType &cache, const AtomVisitor::IReadPolicy &uuidPolicy) |
Converts a fwAtoms::Object to a fwData::Object. More... | |
::fwAtoms::Object::sptr | convert (const ::fwData::Object::sptr &data) |
::fwAtoms::Object::sptr | convert (const ::fwData::Object::sptr &dataObj, DataVisitor::AtomCacheType &cache) |
::fwData::Object::sptr | convert (const ::fwAtoms::Object::sptr &atom, const AtomVisitor::IReadPolicy &uuidPolicy) |
::fwData::Object::sptr | convert (const ::fwAtoms::Object::sptr &atomObj, AtomVisitor::DataCacheType &cache, const AtomVisitor::IReadPolicy &uuidPolicy) |
FWATOMCONVERSION_API std::shared_ptr< ::fwAtoms::Object > fwAtomConversion::convert | ( | const std::shared_ptr< ::fwData::Object > & | data | ) |
Helper to convert a fwData::Object to a fwAtoms::Object.
data | data object to convert |
::camp::ClassNotFound | if data class is not found in camp world during visit |
fwAtomConversion::exception::ConversionNotManaged | if data has attribute type not managed by algorithm |
FWATOMCONVERSION_API std::shared_ptr< ::fwAtoms::Object > fwAtomConversion::convert | ( | const std::shared_ptr< ::fwData::Object > & | dataObj, |
DataVisitor::AtomCacheType & | cache | ||
) |
Converts a fwData::Object to a fwAtoms::Object.
dataObj | data to convert |
cache | cache to register already converted data, used when a data is referenced multiple times. |
::camp::ClassNotFound | if data class is not found in camp world during visit |
FWATOMCONVERSION_API std::shared_ptr< ::fwData::Object > fwAtomConversion::convert | ( | const std::shared_ptr< ::fwAtoms::Object > & | atom, |
const AtomVisitor::IReadPolicy & | uuidPolicy = AtomVisitor::ChangePolicy() |
||
) |
Helper to convert a fwAtoms::Object to a fwData::Object.
atom | atom to convert |
uuidPolicy | AtomVisitor policy |
::camp::ClassNotFound | if data class is not found in camp world during visit |
fwAtomConversion::exception::DataFactoryNotFound | if the data class is not found in fwData::factory |
fwAtomConversion::exception::DuplicatedDataUUID | if the data uuid already exists in the system. |
fwAtomConversion::exception::ConversionNotManaged | if atom is not data compliant |
FWATOMCONVERSION_API std::shared_ptr< ::fwData::Object > fwAtomConversion::convert | ( | const std::shared_ptr< ::fwAtoms::Object > & | atomObj, |
AtomVisitor::DataCacheType & | cache, | ||
const AtomVisitor::IReadPolicy & | uuidPolicy | ||
) |
Converts a fwAtoms::Object to a fwData::Object.
atomObj | atom to convert |
cache | cache to register the atoms already converted, used when an atom is referenced multiple times |
uuidPolicy | AtomVisitor policy |
fwAtomConversion::exception::DataFactoryNotFound | if the data class is not found in fwData::factory |
fwAtomConversion::exception::DuplicatedDataUUID | if the data uuid already exists in the system. |