#include <libsigrokdecode/libsigrokdecode.h>
-#include "annotation.hpp"
+#include <pv/data/decode/annotation.hpp>
using std::vector;
namespace data {
namespace decode {
+class Row;
+
class RowData
{
public:
- RowData() = default;
+ RowData(Row* row);
public:
uint64_t get_max_sample() const;
+ uint64_t get_annotation_count() const;
+
/**
- * Extracts sorted annotations between two period into a vector.
+ * Extracts annotations between the given sample range into a vector.
+ * Note: The annotations are unsorted and only annotations that fully
+ * fit into the sample range are considered.
*/
void get_annotation_subset(
vector<pv::data::decode::Annotation> &dest,
private:
vector<Annotation> annotations_;
+ const Row* row_;
};
} // namespace decode