Keep track of the "annotation row" this annotation is supposed to be
displayed on.
assert(pda);
_format = pda->ann_format;
+ _row = 0;
const char *const *annotations = (char**)pda->ann_text;
while(*annotations) {
return _format;
}
+int Annotation::row() const
+{
+ return _row;
+}
+
const std::vector<QString>& Annotation::annotations() const
{
return _annotations;
}
+void Annotation::set_row(int row)
+{
+ _row = row;
+}
+
} // namespace decode
} // namespace data
} // namespace pv
uint64_t start_sample() const;
uint64_t end_sample() const;
int format() const;
+ int row() const;
const std::vector<QString>& annotations() const;
+ void set_row(int row);
+
private:
uint64_t _start_sample;
uint64_t _end_sample;
int _format;
+ int _row;
std::vector<QString> _annotations;
};