]> sigrok.org Git - pulseview.git/commitdiff
pv::data::decode::Annotation: Add pd_index() and set_pd_index().
authorUwe Hermann <redacted>
Sat, 1 Feb 2014 01:31:00 +0000 (02:31 +0100)
committerUwe Hermann <redacted>
Sat, 1 Feb 2014 14:08:44 +0000 (15:08 +0100)
pv/data/decode/annotation.cpp
pv/data/decode/annotation.h

index 573fefaffa8c0829bc1440e362203d15dc5065b5..4a6890b5a4e519a5aac786d408d97953985a4836 100644 (file)
@@ -69,6 +69,11 @@ int Annotation::row() const
        return _row;
 }
 
+int Annotation::pd_index() const
+{
+       return _pd_index;
+}
+
 const std::vector<QString>& 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
index 9cacafaeaac0c1ea9a92478f1a01b9e2233c78e2..64e6db57a0b5462e47d94afa955c8891deff069b 100644 (file)
@@ -40,15 +40,18 @@ public:
        uint64_t end_sample() const;
        int format() const;
        int row() const;
+       int pd_index() const;
        const std::vector<QString>& 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<QString> _annotations; 
 };