12 #ifndef mitkIPersistable_h
13 #define mitkIPersistable_h
37 virtual bool Save(
const std::string &fileName =
"") = 0;
45 virtual bool Load(
const std::string &fileName =
"") = 0;
52 virtual void SetId(
const std::string &
id) = 0;
59 virtual std::string
GetId()
const = 0;
#define MITKPERSISTENCE_EXPORT
Abstract interface for objects that can persist their state to and from files.
virtual void SetId(const std::string &id)=0
Set the unique identifier for this persistable object.
virtual bool Save(const std::string &fileName="")=0
Save the object's state to a file.
virtual bool Load(const std::string &fileName="")=0
Load the object's state from a file.
virtual std::string GetId() const =0
Get the unique identifier of this persistable object.
Find image slices visible on a given plane.