]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/decoder.cpp
Removed undefined Annotation::set_row and set_pd_index
[pulseview.git] / pv / data / decode / decoder.cpp
index 8cde226da847327395bcb306e2cc28c4b0d6b0b0..89d19b3ad7c3ec80dd3c6d2c4f7c73d0f2d5038d 100644 (file)
@@ -26,6 +26,7 @@
 #include <pv/view/logicsignal.h>
 
 using boost::shared_ptr;
+using std::set;
 using std::map;
 using std::string;
 
@@ -97,6 +98,21 @@ bool Decoder::have_required_probes() const
        return true;
 }
 
+set< shared_ptr<pv::data::Logic> > Decoder::get_data()
+{
+       set< shared_ptr<pv::data::Logic> > data;
+       for(map<const srd_probe*, shared_ptr<view::LogicSignal> >::
+               const_iterator i = _probes.begin();
+               i != _probes.end(); i++)
+       {
+               shared_ptr<view::LogicSignal> signal((*i).second);
+               assert(signal);
+               data.insert(signal->logic_data());
+       }
+
+       return data;
+}
+
 srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session, int unit_size) const
 {
        GHashTable *const opt_hash = g_hash_table_new_full(g_str_hash,