add virtual getSize method
[ecparse.git] / Tag.h
1 /**
2  * © 2008 by David Roden <droden@gmail.com>
3  */
4
5 #pragma once
6
7 #include "TagType.h"
8
9 class Tag {
10
11 protected:
12         Tag(TagType type, int id);
13         virtual ~Tag();
14
15 public:
16         TagType getType();
17         int getId();
18         virtual int getSize() = 0;
19         virtual void* getValue() = 0;
20
21 private:
22         TagType type;
23         int id;
24
25 };
26