X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.hpp;h=a107e0efeed7426584cbded2169ca639ffc47288;hp=2be8e88d989e4cddacaa18d9b86156ca875c4e95;hb=f228f00ed2c11ce4c9c36e0b758132a075e251da;hpb=6f925ba9d6faf1077b73c5a5808259576081716a diff --git a/pv/data/decode/annotation.hpp b/pv/data/decode/annotation.hpp index 2be8e88d..a107e0ef 100644 --- a/pv/data/decode/annotation.hpp +++ b/pv/data/decode/annotation.hpp @@ -20,7 +20,8 @@ #ifndef PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_HPP #define PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_HPP -#include +#include +#include #include @@ -34,18 +35,21 @@ namespace decode { class Annotation { +public: + typedef uint32_t Class; + public: Annotation(const srd_proto_data *const pdata); uint64_t start_sample() const; uint64_t end_sample() const; - int format() const; + Class ann_class() const; const vector& annotations() const; private: uint64_t start_sample_; uint64_t end_sample_; - int format_; + Class ann_class_; vector annotations_; };