From: Uwe Hermann Date: Sat, 1 Feb 2014 01:31:00 +0000 (+0100) Subject: pv::data::decode::Annotation: Add pd_index() and set_pd_index(). X-Git-Tag: pulseview-0.2.0~97 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=619e8bd3c0c2ca5ae059ba2eabdbd3b3f5233d7e;p=pulseview.git pv::data::decode::Annotation: Add pd_index() and set_pd_index(). --- diff --git a/pv/data/decode/annotation.cpp b/pv/data/decode/annotation.cpp index 573fefaf..4a6890b5 100644 --- a/pv/data/decode/annotation.cpp +++ b/pv/data/decode/annotation.cpp @@ -69,6 +69,11 @@ int Annotation::row() const return _row; } +int Annotation::pd_index() const +{ + return _pd_index; +} + const std::vector& Annotation::annotations() const { return _annotations; @@ -79,6 +84,11 @@ void Annotation::set_row(int row) _row = row; } +void Annotation::set_pd_index(int pd_index) +{ + _pd_index = pd_index; +} + } // namespace decode } // namespace data } // namespace pv diff --git a/pv/data/decode/annotation.h b/pv/data/decode/annotation.h index 9cacafae..64e6db57 100644 --- a/pv/data/decode/annotation.h +++ b/pv/data/decode/annotation.h @@ -40,15 +40,18 @@ public: uint64_t end_sample() const; int format() const; int row() const; + int pd_index() const; const std::vector& annotations() const; void set_row(int row); + void set_pd_index(int pd_index); private: uint64_t _start_sample; uint64_t _end_sample; int _format; int _row; + int _pd_index; std::vector _annotations; };