#include <QObject>
#include <QString>
+#include <pv/data/decode/row.h>
+#include <pv/data/decode/rowdata.h>
+
struct srd_decoder;
+struct srd_decoder_annotation_row;
struct srd_probe;
struct srd_proto_data;
namespace view {
class LogicSignal;
-
-namespace decode {
-class Annotation;
-}
-
}
namespace data {
namespace decode {
+class Annotation;
class Decoder;
}
int64_t samples_decoded() const;
- const std::vector< boost::shared_ptr<pv::view::decode::Annotation> >
- annotations() const;
+ std::vector<decode::Row> get_visible_rows() const;
+
+ /**
+ * Extracts sorted annotations between two period into a vector.
+ */
+ void get_annotation_subset(
+ std::vector<pv::data::decode::Annotation> &dest,
+ const decode::Row &row, uint64_t start_sample,
+ uint64_t end_sample) const;
QString error_message();
- void clear_snapshots();
+ void clear();
+
+ uint64_t get_max_sample_count() const;
void begin_decode();
mutable boost::mutex _mutex;
int64_t _samples_decoded;
- std::vector< boost::shared_ptr<pv::view::decode::Annotation> >
- _annotations;
+
+ std::map<const decode::Row, decode::RowData> _rows;
+
+ std::map<std::pair<const srd_decoder*, int>, decode::Row> _class_rows;
+
QString _error_message;
boost::thread _decode_thread;