X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fdecoder.hpp;h=55742c6070e5a020c00042b2c8894e744b13986e;hb=f98070844c2d468fdbb6beb5b65e4ccbbcd3f10b;hp=1b323f0b74dc0b7b8de2d1b87605b6f0d39ca851;hpb=6f925ba9d6faf1077b73c5a5808259576081716a;p=pulseview.git diff --git a/pv/data/decode/decoder.hpp b/pv/data/decode/decoder.hpp index 1b323f0b..55742c60 100644 --- a/pv/data/decode/decoder.hpp +++ b/pv/data/decode/decoder.hpp @@ -23,13 +23,13 @@ #include #include #include +#include #include using std::map; -using std::set; -using std::shared_ptr; using std::string; +using std::vector; struct srd_decoder; struct srd_decoder_inst; @@ -40,6 +40,7 @@ namespace pv { namespace data { +struct DecodeChannel; class Logic; class SignalBase; @@ -57,29 +58,28 @@ public: bool shown() const; void show(bool show = true); - const map >& channels() const; - void set_channels(map > channels); + const vector& channels() const; + void set_channels(vector channels); const map& options() const; void set_option(const char *id, GVariant *value); - bool have_required_channels() const; + void apply_all_options(); - srd_decoder_inst* create_decoder_inst( - srd_session *session) const; + bool have_required_channels() const; - set< shared_ptr > get_data(); + srd_decoder_inst* create_decoder_inst(srd_session *session); + void invalidate_decoder_inst(); private: const srd_decoder *const decoder_; bool shown_; - map > channels_; + vector channels_; map options_; + srd_decoder_inst *decoder_inst_; }; } // namespace decode