Page MenuHomePhabricator

Introduce IIdentifiable
Closed, ResolvedPublic


Introduce an Interface that offers that can be implemented to offer the identification capabilities.

Something like:

class IIdentifiable
    using UIDType = std::string;
    UIDType getUID() const = 0;

Related Objects

Event Timeline

floca created this task.Nov 17 2017, 9:39 AM

if the ID is unique, this should maybe named getUID . And I wonder if we should make the IDType a proper class, did you discuss this?

floca updated the task description. (Show Details)Nov 17 2017, 11:51 AM

Specific class: Nope. Valid point worth a discussion. I would propse if we don't clarify it todo we make a subtask out of it

kislinsk closed this task as Resolved.Dec 10 2017, 12:54 AM

mitk::IIdentifiable interface was changed to mitk::Identifiable base class. It takes responsibility of encapsulating the UID. It is movable but not copyable. mitk::UIDManipulator can be used by data readers to manipulate the UID after identifiable object creation time.