Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
Medical Imaging Interaction Toolkit
berryIParameterValueConverter.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #ifndef BERRYABSTRACTPARAMETERVALUECONVERTER_H_
15 #define BERRYABSTRACTPARAMETERVALUECONVERTER_H_
16 
17 #include <berryObject.h>
18 #include <berryMacros.h>
19 
21 
22 namespace berry {
23 
52 
53  virtual ~IParameterValueConverter();
54 
67  //virtual bool IsCompatible(const Object::ConstPointer value) const = 0;
68 
82  virtual Object::Pointer ConvertToObject(const QString& parameterValue) = 0;
83 
96  virtual QString ConvertToString(const Object::Pointer& parameterValue) = 0;
97 
98 };
99 
100 }
101 
102 Q_DECLARE_INTERFACE(berry::IParameterValueConverter, "org.blueberry.core.commands.IParameterValueConverter")
103 
104 #endif /* BERRYABSTRACTPARAMETERVALUECONVERTER_H_ */