X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.hpp;h=a107e0efeed7426584cbded2169ca639ffc47288;hb=e06cf18db72c518d11f90e9f96dfc3aeed85314f;hp=2be8e88d989e4cddacaa18d9b86156ca875c4e95;hpb=6f925ba9d6faf1077b73c5a5808259576081716a;p=pulseview.git diff --git a/pv/data/decode/annotation.hpp b/pv/data/decode/annotation.hpp index 2be8e88..a107e0e 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_; };