-
Notifications
You must be signed in to change notification settings - Fork 0
/
parameterhandle.h
36 lines (29 loc) · 936 Bytes
/
parameterhandle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef PARAMETERHANDLE_H
#define PARAMETERHANDLE_H
// application header
#include "tweaq.h"
#include "tweaqapi.h"
class ParameterHandle
{
public:
explicit ParameterHandle();
explicit ParameterHandle(const ParameterHandle& other);
ParameterHandle& operator= (const ParameterHandle& other);
~ParameterHandle();
// gets
bool hasLabels() const;
bool hasDefaultValue() const;
bool hasDescription() const;
bool hasAnyFields() const;
int nFields() const;
int nLabels() const;
QString description() const;
QString defaultValue() const;
QString label(const int index) const;
QStringList labels() const;
Parameter& reference();
private:
Parameter p;
void copy(const ParameterHandle& other);
};
#endif // PARAMETERHANDLE_H