X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.hpp;h=8b91c4f47e066605e307ed0301fbd1871d59436d;hp=7e62cea1f6d07cf6c78d9b26ee961599ed15fc19;hb=5a914348e8c95f92fd7c1c5988d563c5fb472aa2;hpb=efdec55aec1a137460fa362a381ed1904182bfed diff --git a/pv/data/decode/annotation.hpp b/pv/data/decode/annotation.hpp index 7e62cea..8b91c4f 100644 --- a/pv/data/decode/annotation.hpp +++ b/pv/data/decode/annotation.hpp @@ -20,31 +20,43 @@ #ifndef PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_HPP #define PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_HPP -#include +#include +#include #include +using std::vector; + struct srd_proto_data; namespace pv { namespace data { namespace decode { +class Row; + class Annotation { public: - Annotation(const srd_proto_data *const pdata); + typedef uint32_t Class; + +public: + Annotation(const srd_proto_data *const pdata, const Row *row); uint64_t start_sample() const; uint64_t end_sample() const; - int format() const; - const std::vector& annotations() const; + Class ann_class() const; + const vector& annotations() const; + const Row* row() const; + + bool operator<(const Annotation &other) const; private: uint64_t start_sample_; uint64_t end_sample_; - int format_; - std::vector annotations_; + Class ann_class_; + vector annotations_; + const Row *row_; }; } // namespace decode