X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fdecoder.hpp;h=02f3f04bfb11385d17bab9abb0a888396ff50bde;hb=3b5282a20ec134853318b70441b32bf4a91e20c2;hp=1b655662bcb707dfe5fd83dbc847164e81bc04a2;hpb=9f97b3576f527239594ea0accb82a4087147c746;p=pulseview.git diff --git a/pv/data/decode/decoder.hpp b/pv/data/decode/decoder.hpp index 1b65566..02f3f04 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,10 +58,8 @@ 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; @@ -68,17 +67,17 @@ public: bool have_required_channels() const; - srd_decoder_inst* create_decoder_inst(srd_session *session) 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