Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIPersistable.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef mitkIPersistable_h
17 #define mitkIPersistable_h
18 #include <string>
19 
20 namespace mitk
21 {
26  {
27  public:
28  virtual bool Save(const std::string &fileName = "") = 0;
29  virtual bool Load(const std::string &fileName = "") = 0;
30  virtual void SetId(const std::string &id) = 0;
31  virtual std::string GetId() const = 0;
32  };
33 }
34 
35 #endif
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKPERSISTENCE_EXPORT