X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fdata%2Fdecode%2Fannotation.cpp;h=573fefaffa8c0829bc1440e362203d15dc5065b5;hb=7e674e4331e768b9b29a20fed8419e0b6686357e;hp=e17dcb5177cd73ab818d31e08a8c84d60133df15;hpb=27e8df221014d1a8c7769866773e8dbb0486eea8;p=pulseview.git diff --git a/pv/data/decode/annotation.cpp b/pv/data/decode/annotation.cpp index e17dcb5..573fefa 100644 --- a/pv/data/decode/annotation.cpp +++ b/pv/data/decode/annotation.cpp @@ -22,9 +22,9 @@ extern "C" { #include } -#include "annotation.h" +#include -using namespace std; +#include "annotation.h" namespace pv { namespace data { @@ -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,21 @@ int Annotation::format() const return _format; } +int Annotation::row() const +{ + return _row; +} + const std::vector& Annotation::annotations() const { return _annotations; } +void Annotation::set_row(int row) +{ + _row = row; +} + } // namespace decode } // namespace data } // namespace pv