7 #ifndef __FWDATA_OBJECTLOCK_HPP__ 8 #define __FWDATA_OBJECTLOCK_HPP__ 11 #include "fwData/Image.hpp" 12 #include "fwData/Array.hpp" 13 #include "fwData/Mesh.hpp" 14 #include "fwData/Reconstruction.hpp" 15 #include "fwData/config.hpp" 36 FWDATA_API ObjectLock( ::fwData::Object::sptr obj );
38 FWDATA_API ~ObjectLock();
40 FWDATA_API ObjectLock & operator=(
const ObjectLock & );
44 typedef std::vector< ::fwMemory::BufferObject::Lock > LocksType;
45 typedef std::vector< ::fwData::Object::sptr > ObjectsType;
47 void lock( ::fwData::Array::sptr array, LocksType & locks );
48 void lock( ::fwData::Image::sptr image, LocksType & locks );
49 void lock( ::fwData::Mesh::sptr mesh, LocksType & locks );
50 void lock( ::fwData::Reconstruction::sptr rec, LocksType & locks );
53 ObjectsType m_objects;
58 #endif // __FWDATA_OBJECTLOCK_HPP__ Contains the representation of the data objects used in the framework.
A simple helper to lock specific object, manages : Image, Mesh and Array.