X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.cpp;h=4a6890b5a4e519a5aac786d408d97953985a4836;hb=619e8bd3c0c2ca5ae059ba2eabdbd3b3f5233d7e;hp=b0517ae69ef9c6a13eefc4bad41efeea08b7d9a0;hpb=819f4c25391a9c74d3d2f528d462142d5c4aad4d;p=pulseview.git diff --git a/pv/data/decode/annotation.cpp b/pv/data/decode/annotation.cpp index b0517ae6..4a6890b5 100644 --- a/pv/data/decode/annotation.cpp +++ b/pv/data/decode/annotation.cpp @@ -40,6 +40,7 @@ Annotation::Annotation(const srd_proto_data *const pdata) : assert(pda); _format = pda->ann_format; + _row = 0; const char *const *annotations = (char**)pda->ann_text; while(*annotations) { @@ -63,11 +64,31 @@ int Annotation::format() const return _format; } +int Annotation::row() const +{ + return _row; +} + +int Annotation::pd_index() const +{ + return _pd_index; +} + const std::vector& Annotation::annotations() const { return _annotations; } +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