X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fdata%2Fdecode%2Fdecoder.hpp;h=4ec193b1df24dc73d61936e8e5d71bfb278b6316;hb=d3feec232211b3acec6a323ca3b8008ed8b2faa0;hp=1b323f0b74dc0b7b8de2d1b87605b6f0d39ca851;hpb=6f925ba9d6faf1077b73c5a5808259576081716a;p=pulseview.git diff --git a/pv/data/decode/decoder.hpp b/pv/data/decode/decoder.hpp index 1b323f0..4ec193b 100644 --- a/pv/data/decode/decoder.hpp +++ b/pv/data/decode/decoder.hpp @@ -23,6 +23,7 @@ #include #include #include +#include #include @@ -30,6 +31,7 @@ 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 +42,7 @@ namespace pv { namespace data { +struct DecodeChannel; class Logic; class SignalBase; @@ -57,10 +60,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 +69,14 @@ 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) const; private: const srd_decoder *const decoder_; bool shown_; - map > channels_; + vector channels_; map options_; };