|
fw4spl
|
Management of UUID on objects. More...
#include <UUID.hpp>
Collaboration diagram for fwTools::UUID:Public Types | |
| typedef std::string | UUIDType |
Public Member Functions | |
| virtual FWTOOLS_API | ~UUID () |
| Destructor : does nothing. | |
Static Public Member Functions | |
| static FWTOOLS_API bool | exist (const UUIDType &uuid) |
| Return true iff the given uuid is used. More... | |
| static FWTOOLS_API const UUIDType & | get (::fwTools::Object::sptr object) |
| Return an uuid to the given object : if no one previously set then generate a new one. More... | |
| static FWTOOLS_API::fwTools::Object::sptr | get (const UUIDType &uuid) |
| Return a smart ptr on the object related to a given UUID : return null shared if not supervised. More... | |
| static FWTOOLS_API UUIDType | generateUUID () |
| Return a new extended UUID;. More... | |
| static FWTOOLS_API bool | set (::fwTools::Object::sptr object, const UUID::UUIDType &uuid) |
| Attempt to set an UUID. If uuid already exists, do nothing. More... | |
Protected Types | |
| typedef std::map< UUIDType,::fwTools::Object::wptr > | UUIDContainer |
| Store association std::weak_ptr <–> uuid as a string. | |
Protected Member Functions | |
| FWTOOLS_API | UUID () |
| Default constructor : does nothing. | |
Protected Attributes | |
| ::fwCore::mt::ReadWriteMutex | m_uuidMutex |
| Mutex used to lock uuid object access. | |
Static Protected Attributes | |
| static FWTOOLS_API UUIDContainer | s_uuidMap |
|
static |
|
static |
Return a new extended UUID;.
Definition at line 114 of file UUID.cpp.
Referenced by fwMDSemanticPatch::V09ALA::V10::fwData::Image::apply(), fwMDSemanticPatch::V1::V2::fwData::Patient::apply(), fwMDSemanticPatch::V1::V2::fwData::Study::apply(), fwMDSemanticPatch::V1::V2::fwData::Acquisition::apply(), fwMDSemanticPatch::V1::V2::fwData::Composite::apply(), fwMDSemanticPatch::V1::V2::fwData::Composite::Composite(), fwGui::view::IActivityView::createMainActivity(), fwAtomsPatch::helper::generateID(), get(), fwNetworkIO::http::ClientQt::getFile(), ioVTK::SImageSeriesReader::info(), fwVtkIO::SeriesDBReader::read(), ioITK::SInrSeriesDBReader::updating(), ioData::SAttachmentSeriesReader::updating(), activities::SActivitySequencer::updating(), and uiMedDataQt::editor::SActivityWizard::updating().
Here is the caller graph for this function:
|
static |
Return an uuid to the given object : if no one previously set then generate a new one.
Definition at line 50 of file UUID.cpp.
References generateUUID(), and SLM_ASSERT.
Referenced by fwAtomConversion::DataVisitor::DataVisitor(), ioVTK::SModelSeriesWriter::updating(), and fwVtkIO::ModelSeriesObjWriter::write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |