#include <pv/view/logicsignal.h>
using boost::shared_ptr;
+using std::set;
using std::map;
using std::string;
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,
#define PULSEVIEW_PV_DATA_DECODE_DECODER_H
#include <map>
+#include <set>
#include <boost/shared_ptr.hpp>
}
namespace data {
+
+class Logic;
+
namespace decode {
class Decoder
srd_decoder_inst* create_decoder_inst(
srd_session *session, int unit_size) const;
+ std::set< boost::shared_ptr<pv::data::Logic> > get_data();
+
private:
const srd_decoder *const _decoder;