MeVisLab Toolbox Reference
mlObjMgrDataType.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef ML_OBJ_MGR_DATA_TYPE_H
14 #define ML_OBJ_MGR_DATA_TYPE_H
15 
16 
18 
19 #include "MLObjMgrSystem.h"
20 
21 #include <mlRuntimeSubClass.h>
22 
23 ML_START_NAMESPACE
24 
27  class MLOBJMGR_EXPORT omDataType
28  {
31 
32  public:
33 
35  virtual ~omDataType() {}
36 
37  void setContainer(void *container) {
38  _container = container;
39  }
40 
42  virtual std::string getStringValue() const = 0;
43 
46  virtual void setStringValue(const std::string &value) = 0;
47 
48  protected:
49 
50  void *_container;
51 
53  omDataType() : _container(nullptr) {}
54  };
55 
56 ML_END_NAMESPACE
57 
58 #endif // __mlObjMgrDataType_H
Base class for data.
void setContainer(void *container)
virtual ~omDataType()
Macro for declaring methods for the runtime system.
virtual std::string getStringValue() const =0
Get value of data type as string.
virtual void setStringValue(const std::string &value)=0
Set data type value from string.
omDataType()
Hidden constructor.
#define ML_ABSTRACT_ROOT_CLASS_HEADER(className)