Bitstream Interpretation Library (BIL)  0.1
Public Member Functions
bil::Packet Class Reference

Abstract base class for packets in a bitstream. More...

#include <bitstream/Packet.hpp>

Inheritance diagram for bil::Packet:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual Packetclone () 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.

Detailed Description

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.


Constructor & Destructor Documentation

Packet::~Packet ( )
virtual

Destructs a Packet instance.

Definition at line 11 of file Packet.cpp.


Member Function Documentation

virtual Packet* bil::Packet::clone ( ) const
pure virtual

Virtual constructor for doing polymorphic copies.

Returns:
Pointer to the copied instance.

Implemented in bil::Type2Packet, bil::DummyWord, bil::Type1Packet, bil::BuswidthPattern, and bil::SyncWord.

virtual void bil::Packet::accept ( PacketVisitor visitor) const
pure virtual

Accepts a visitor for dynamic type dependent stuff.

Parameters:
visitorVisitor, which matching method will be called.

Implemented in bil::Type2Packet, bil::DummyWord, bil::Type1Packet, bil::BuswidthPattern, and bil::SyncWord.


The documentation for this class was generated from the following files: