hydrobricks
Loading...
Searching...
No Matches
Parameter.h
1#ifndef HYDROBRICKS_PARAMETER_H
2#define HYDROBRICKS_PARAMETER_H
3
4#include "Includes.h"
5
6class Parameter : public wxObject {
7 public:
8 explicit Parameter(const string& name, float val = NAN_F);
9
10 ~Parameter() override = default;
11
12 bool IsLinked() const {
13 return m_linked;
14 }
15
16 void SetAsLinked(bool value = true) {
17 m_linked = value;
18 }
19
20 string GetName() const {
21 return m_name;
22 }
23
24 void SetName(const string& name) {
25 m_name = name;
26 }
27
28 float GetValue() const {
29 return m_value;
30 }
31
32 float* GetValuePointer() {
33 return &m_value;
34 }
35
36 void SetValue(float val) {
37 m_value = val;
38 }
39
40 protected:
41 bool m_linked;
42 string m_name;
43 float m_value;
44
45 private:
46};
47
48#endif // HYDROBRICKS_PARAMETER_H
Definition Parameter.h:6