diff options
author | Daniel Jones <admin@danieljon.es> | 2020-06-30 14:35:57 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-06-30 14:35:57 +0930 |
commit | 61a3297b662b1bd8621016c8b5b492dd37bf5675 (patch) | |
tree | b71c302a2a5cf60669ebe987e79f4bc24cf2300a /BinaryDisplay.h | |
parent | cad4558e56c8ec39809dd2b1235c6cc09148442b (diff) | |
download | foxlogicgates-61a3297b662b1bd8621016c8b5b492dd37bf5675.tar.gz foxlogicgates-61a3297b662b1bd8621016c8b5b492dd37bf5675.zip |
Functionality: begin implementing binary display
Diffstat (limited to 'BinaryDisplay.h')
-rw-r--r-- | BinaryDisplay.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/BinaryDisplay.h b/BinaryDisplay.h new file mode 100644 index 0000000..a92204c --- /dev/null +++ b/BinaryDisplay.h @@ -0,0 +1,37 @@ +#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); + ~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; }; + + int get_sum_value() { return sum_value; }; + + 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 |