X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=inline;f=pv%2Fdata%2Fdecode%2Fannotation.hpp;h=a107e0efeed7426584cbded2169ca639ffc47288;hb=ab89256886a313bef5172191d3f8864415913012;hp=f1e2ef35975bb30d27015c64d08f51a8b25ef103;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git
diff --git a/pv/data/decode/annotation.hpp b/pv/data/decode/annotation.hpp
index f1e2ef3..a107e0e 100644
--- a/pv/data/decode/annotation.hpp
+++ b/pv/data/decode/annotation.hpp
@@ -14,17 +14,19 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
-#ifndef PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_H
-#define PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_H
+#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 {
@@ -33,23 +35,26 @@ 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;
- const std::vector& annotations() const;
+ Class ann_class() const;
+ const vector& annotations() const;
private:
uint64_t start_sample_;
uint64_t end_sample_;
- int format_;
- std::vector annotations_;
+ Class ann_class_;
+ vector annotations_;
};
} // namespace decode
} // namespace data
} // namespace pv
-#endif // PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_H
+#endif // PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_HPP