X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Frowdata.hpp;h=0589ec894eb444fad4f2d0d759c98a1eabc13fc7;hb=f4ab4b5c657e5613caba82feaa81a8a400e4f331;hp=07cc41bf3eb1f8febf04c06595d8da2f142eb7da;hpb=1becee23bdd2b44145b753edd05bf01f7fb0707e;p=pulseview.git diff --git a/pv/data/decode/rowdata.hpp b/pv/data/decode/rowdata.hpp index 07cc41b..0589ec8 100644 --- a/pv/data/decode/rowdata.hpp +++ b/pv/data/decode/rowdata.hpp @@ -32,6 +32,8 @@ namespace pv { namespace data { namespace decode { +class Row; + class RowData { public: @@ -41,13 +43,15 @@ public: uint64_t get_max_sample() 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 &dest, uint64_t start_sample, uint64_t end_sample) const; - void emplace_annotation(srd_proto_data *pdata); + void emplace_annotation(srd_proto_data *pdata, const Row *row); private: vector annotations_;