Bitstream Interpretation Library (BIL)
0.1
|
Abstract visitor base class for bitstream packets. More...
#include <bitstream/PacketVisitor.hpp>
Public Member Functions | |
virtual | ~PacketVisitor () |
virtual void | visit (const BuswidthPattern &buswidthPattern)=0 |
Method for visiting a BuswidthPattern instance. | |
virtual void | visit (const DummyWord &dummyWord)=0 |
Method for visiting a DummyWord instance. | |
virtual void | visit (const Packet &packet)=0 |
Method for visiting a Packet instance. | |
virtual void | visit (const SyncWord &syncWord)=0 |
Method for visiting a SyncWord instance. | |
virtual void | visit (const Type1Packet &type1Packet)=0 |
Method for visiting a Type1Packet instance. | |
virtual void | visit (const Type2Packet &type2Packet)=0 |
Method for visiting a Type2Packet instance. |
Abstract visitor base class for bitstream packets.
By deriving from PacketVisitor and passing these instances into Packet::accept() method, the visitor's visit() method matching the packet's dynamic type will be called. So it's possible to inquiry the dynamic type of a given packet.
Definition at line 29 of file PacketVisitor.hpp.
|
inlinevirtual |
Definition at line 32 of file PacketVisitor.hpp.
|
pure virtual |
Method for visiting a BuswidthPattern instance.
buswidthPattern | BuswidthPattern instance to be visited. |
Implemented in bil::V5BitstreamSyntaxChecker, bil::V5BitstreamXMLWriter, and bil::V5PacketVisitor.
|
pure virtual |
Method for visiting a DummyWord instance.
dummyWord | DummyWord instance to be visited. |
Implemented in bil::V5BitstreamSyntaxChecker, bil::V5PacketProcessor, bil::V5BitstreamXMLWriter, and bil::V5PacketVisitor.
|
pure virtual |
Method for visiting a Packet instance.
packet | Packet instance to be visited. |
Implemented in bil::V5PacketVisitor.
|
pure virtual |
Method for visiting a SyncWord instance.
syncWord | SyncWord instance to be visited. |
Implemented in bil::V5BitstreamSyntaxChecker, bil::V5BitstreamXMLWriter, and bil::V5PacketVisitor.
|
pure virtual |
Method for visiting a Type1Packet instance.
type1Packet | Type1Packet instance to be visited. |
Implemented in bil::V5BitstreamSyntaxChecker, bil::V5BitstreamXMLWriter, bil::V5BitstreamDeviceDetector, bil::V5PacketProcessor, and bil::V5PacketVisitor.
|
pure virtual |
Method for visiting a Type2Packet instance.
type2Packet | Type2Packet instance to be visited. |
Implemented in bil::V5BitstreamSyntaxChecker, bil::V5BitstreamXMLWriter, bil::V5BitstreamDeviceDetector, bil::V5PacketVisitor, and bil::V5PacketProcessor.