7 #ifndef __FWDATA_STRUCTURETRAITSDICTIONARY_HPP__ 8 #define __FWDATA_STRUCTURETRAITSDICTIONARY_HPP__ 10 #include "fwData/factory/new.hpp" 11 #include "fwData/Object.hpp" 12 #include "fwData/StructureTraits.hpp" 14 fwCampAutoDeclareDataMacro((
fwData)(StructureTraitsDictionary), FWDATA_API);
28 ::fwData::factory::New< StructureTraitsDictionary >);
31 typedef std::vector<std::string> StructureTypeNameContainer;
50 FWDATA_API
void addStructure(StructureTraits::sptr structureTraits);
56 FWDATA_API StructureTraits::sptr getStructure(std::string type);
59 FWDATA_API StructureTypeNameContainer getStructureTypeNames()
const;
62 FWDATA_API
void shallowCopy(
const Object::csptr& _source )
override;
65 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
69 typedef std::map< std::string, ::fwData::StructureTraits::sptr > StructureTraitsMapType;
72 StructureTraitsMapType m_structureTraitsMap;
78 #endif // __FWDATA_STRUCTURETRAITSDICTIONARY_HPP__ Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
This class defines a dictionary of structure traits.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for each data object.
Contains the representation of the data objects used in the framework.