]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decodesignal.hpp
Implement annotation export for all rows
[pulseview.git] / pv / data / decodesignal.hpp
index 9bbdd2c4e2c9d68e21d69782f5d2e78ecc0e7000..f00a9f1cabaefc35de74ea66ede5544f15d99a56 100644 (file)
@@ -134,8 +134,8 @@ public:
        vector<decode::Row> visible_rows() const;
 
        /**
-        * Extracts annotations between the given sample range into a vector.
-        * Note: The annotations are unsorted and only annotations that fully
+        * Extracts annotations from a single row into a vector.
+        * Note: The annotations may be unsorted and only annotations that fully
         * fit into the sample range are considered.
         */
        void get_annotation_subset(
@@ -143,6 +143,15 @@ public:
                const decode::Row &row, uint32_t segment_id, uint64_t start_sample,
                uint64_t end_sample) const;
 
+       /**
+        * Extracts annotations from all rows into a vector.
+        * Note: The annotations may be unsorted and only annotations that fully
+        * fit into the sample range are considered.
+        */
+       void get_annotation_subset(
+               vector<pv::data::decode::Annotation> &dest,
+               uint32_t segment_id, uint64_t start_sample, uint64_t end_sample) const;
+
        virtual void save_settings(QSettings &settings) const;
 
        virtual void restore_settings(QSettings &settings);