]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/rowdata.hpp
DecodeTrace: Highlight row expand markers when a class is hidden
[pulseview.git] / pv / data / decode / rowdata.hpp
index 07cc41bf3eb1f8febf04c06595d8da2f142eb7da..0012acd4523ecfc7339a5a30809ab78de2ddef57 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <libsigrokdecode/libsigrokdecode.h>
 
-#include "annotation.hpp"
+#include <pv/data/decode/annotation.hpp>
 
 using std::vector;
 
@@ -32,16 +32,22 @@ namespace pv {
 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,
@@ -51,6 +57,7 @@ public:
 
 private:
        vector<Annotation> annotations_;
+       const Row* row_;
 };
 
 }  // namespace decode