#include <libsigrokdecode/libsigrokdecode.h>
}
-#include "annotation.h"
+#include <vector>
-using namespace std;
+#include "annotation.h"
namespace pv {
namespace data {
assert(pda);
_format = pda->ann_format;
+ _row = 0;
const char *const *annotations = (char**)pda->ann_text;
while(*annotations) {
- _annotations.push_back(QString(*annotations));
+ _annotations.push_back(QString::fromUtf8(*annotations));
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