Bitstream Interpretation Library (BIL)
0.1
|
Abstract base class for packets in a bitstream. More...
#include <bitstream/Packet.hpp>
Public Member Functions | |
virtual Packet * | clone () const =0 |
Virtual constructor for doing polymorphic copies. | |
virtual | ~Packet () |
Destructs a Packet instance. | |
virtual void | accept (PacketVisitor &visitor) const =0 |
Accepts a visitor for dynamic type dependent stuff. |
Abstract base class for packets in a bitstream.
This class is the abstract base class for all packet types occurring in a bitstream. For a simple runtime packet type retrieval this class has a visitor accepting method which has to be overwritten by descendants to be visited.
Definition at line 24 of file Packet.hpp.
|
virtual |
Destructs a Packet instance.
Definition at line 11 of file Packet.cpp.
|
pure virtual |
Virtual constructor for doing polymorphic copies.
Implemented in bil::Type2Packet, bil::DummyWord, bil::Type1Packet, bil::BuswidthPattern, and bil::SyncWord.
|
pure virtual |
Accepts a visitor for dynamic type dependent stuff.
visitor | Visitor, which matching method will be called. |
Implemented in bil::Type2Packet, bil::DummyWord, bil::Type1Packet, bil::BuswidthPattern, and bil::SyncWord.