-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBinaryDisplay.h
50 lines (41 loc) · 1.49 KB
/
BinaryDisplay.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef BINARYDISPLAY_H
#define BINARYDISPLAY_H
#include <stdio.h>
#include "Object.h"
class BinaryDisplay : public Object
{
public:
BinaryDisplay(int x, int y, int width, int height, int loaded_id = -1);
~BinaryDisplay() override = default;
void update_state() override;
Object *get_input0() { return input0; };
Object *get_input1() { return input1; };
Object *get_input2() { return input2; };
Object *get_input3() { return input3; };
Object *get_input4() { return input4; };
Object *get_input5() { return input5; };
Object *get_input6() { return input6; };
Object *get_input7() { return input7; };
void set_input0(Object *object_) { input0 = object_; };
void set_input1(Object *object_) { input1 = object_; };
void set_input2(Object *object_) { input2 = object_; };
void set_input3(Object *object_) { input3 = object_; };
void set_input4(Object *object_) { input4 = object_; };
void set_input5(Object *object_) { input5 = object_; };
void set_input6(Object *object_) { input6 = object_; };
void set_input7(Object *object_) { input7 = object_; };
void remove_input_object(int id) override;
int get_sum_value() { return sum_value; };
std::string get_object_name() override { return "bdsp"; };
private:
int sum_value = 0;
Object *input0 = nullptr;
Object *input1 = nullptr;
Object *input2 = nullptr;
Object *input3 = nullptr;
Object *input4 = nullptr;
Object *input5 = nullptr;
Object *input6 = nullptr;
Object *input7 = nullptr;
};
#endif