X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.cpp;h=16895851a2c4401432a3e028ef658f94118b363e;hb=fc3e73d0730e032c6c8d49dd80ff8a3620674ebc;hp=4a6890b5a4e519a5aac786d408d97953985a4836;hpb=619e8bd3c0c2ca5ae059ba2eabdbd3b3f5233d7e;p=pulseview.git diff --git a/pv/data/decode/annotation.cpp b/pv/data/decode/annotation.cpp index 4a6890b..1689585 100644 --- a/pv/data/decode/annotation.cpp +++ b/pv/data/decode/annotation.cpp @@ -22,6 +22,7 @@ extern "C" { #include } +#include #include #include "annotation.h" @@ -39,8 +40,7 @@ Annotation::Annotation(const srd_proto_data *const pdata) : (const srd_proto_data_annotation*)pdata->data; assert(pda); - _format = pda->ann_format; - _row = 0; + _format = pda->ann_class; const char *const *annotations = (char**)pda->ann_text; while(*annotations) { @@ -64,31 +64,11 @@ 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