diff options
Diffstat (limited to 'include/decoder.h')
-rw-r--r-- | include/decoder.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/decoder.h b/include/decoder.h index 4ae723c..a9b4217 100644 --- a/include/decoder.h +++ b/include/decoder.h @@ -109,17 +109,22 @@ class decoding_result { public: decoding_state state; bit_string data; + int field1; + int field2; + int field3; - decoding_result(decoding_state state) : state(state), data() + decoding_result() : state(decoding_state::OK), data(), field1(0), field2(0), field3(0) {} - decoding_result(decoding_state state, bit_string data) : state(state), data(data) - {} + void fail() + { + state = decoding_state::FAIL; + } }; class decoder { public: - virtual decoding_result decode(sample_iterator *it) = 0; + virtual decoding_result decode(sample_iterator &it) = 0; }; } // namespace radio_controller |