]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/row.hpp
Internal decoder class handling refactoring
[pulseview.git] / pv / data / decode / row.hpp
index 8486c5075fe0bd39d09736c750ace8bf5e2109f8..25e6fcc492863f90ac97b2ae23a9a73d3b51a39c 100644 (file)
@@ -31,28 +31,30 @@ namespace pv {
 namespace data {
 namespace decode {
 
+class Decoder;
+
 class Row
 {
 public:
        Row();
 
-       Row(int index, const srd_decoder *decoder,
-               const srd_decoder_annotation_row *row = nullptr);
+       Row(int index, const Decoder* decoder,
+               const srd_decoder_annotation_rowrow = nullptr);
 
-       const srd_decoder* decoder() const;
-       const srd_decoder_annotation_row* row() const;
+       const Decoder* decoder() const;
+       const srd_decoder_annotation_row* srd_row() const;
 
        const QString title() const;
        const QString class_name() const;
        int index() const;
 
-       bool operator<(const Row &other) const;
-       bool operator==(const Row &other) const;
+       bool operator<(const Rowother) const;
+       bool operator==(const Rowother) const;
 
 private:
        int index_;
-       const srd_decoder *decoder_;
-       const srd_decoder_annotation_row *row_;
+       const Decoder* decoder_;
+       const srd_decoder_annotation_rowrow_;
 };
 
 }  // namespace decode