MeVisLab Toolbox Reference
mlParameterInfo.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//------------------------------------------------------------------------------
4
5#pragma once
6
8#include <mlBase.h>
10
11#include <ThirdPartyWarningsDisable.h>
12#include <QVariant>
13#include <ThirdPartyWarningsRestore.h>
14
15ML_START_NAMESPACE
16
17class MLParameterInfo_EXPORT ParameterInfo : public Base, public QVariantMap {
18public:
19
20 ParameterInfo() = default;
21
23 explicit ParameterInfo( const QVariantMap& other );
24 ParameterInfo& operator=( const QVariantMap& other );
25 using QVariantMap::QVariantMap;
26
28 const QVariantMap& toQVariantMap() const;
29
31};
32
33
37public:
40
41private:
43 virtual ParameterInfo _getParameterInfo() const = 0;
44
46};
47
48ML_END_NAMESPACE
#define MLParameterInfo_EXPORT
Mixin class to support generic getParameterInfo() object wrapping of supporting classes (e....
ParameterInfo getParameterInfo() const
Get parameter info as dictionary. Redirects to _getParameterInfo()
Class representing general ML objects that support import/export via strings (setPersistentState() an...
Definition: mlBase.h:62
ParameterInfo & operator=(const QVariantMap &other)
const QVariantMap & toQVariantMap() const
This class may not derive from QVariantMap anymore in the future.
ParameterInfo(const QVariantMap &other)
Allow initialization from a QVariantMap.
ParameterInfo()=default
#define ML_ABSTRACT_CLASS_HEADER(className)
Same like ML_ABSTRACT_CLASS_HEADER_EXPORTED with a non existing export symbol.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.