Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIParameterValueConverter.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
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 
17 
18 #ifndef BERRYABSTRACTPARAMETERVALUECONVERTER_H_
19 #define BERRYABSTRACTPARAMETERVALUECONVERTER_H_
20 
21 #include <berryObject.h>
22 #include <berryMacros.h>
23 
25 
26 namespace berry {
27 
56 
57  virtual ~IParameterValueConverter();
58 
71  //virtual bool IsCompatible(const Object::ConstPointer value) const = 0;
72 
86  virtual Object::Pointer ConvertToObject(const QString& parameterValue) = 0;
87 
100  virtual QString ConvertToString(const Object::Pointer& parameterValue) = 0;
101 
102 };
103 
104 }
105 
106 Q_DECLARE_INTERFACE(berry::IParameterValueConverter, "org.blueberry.core.commands.IParameterValueConverter")
107 
108 #endif /* BERRYABSTRACTPARAMETERVALUECONVERTER_H_ */