Bitstream Interpretation Library (BIL)  0.1
PacketVisitor.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 #ifndef BIL_PACKETVISITOR_HPP
8 #define BIL_PACKETVISITOR_HPP
9 
10 
11 namespace bil {
12 
13  class BuswidthPattern;
14  class DummyWord;
15  class Packet;
16  class SyncWord;
17  class Type1Packet;
18  class Type2Packet;
19 
20 
29  class PacketVisitor {
30  public:
31 
32  virtual ~PacketVisitor() {};
33 
34 
39  virtual void visit(const BuswidthPattern& buswidthPattern) = 0;
40 
45  virtual void visit(const DummyWord& dummyWord) = 0;
46 
51  virtual void visit(const Packet& packet) = 0;
52 
57  virtual void visit(const SyncWord& syncWord) = 0;
58 
63  virtual void visit(const Type1Packet& type1Packet) = 0;
64 
69  virtual void visit(const Type2Packet& type2Packet) = 0;
70 
71  };
72 
73 }
74 
75 #endif