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

Abstract visitor base class for bitstream packets. More...

#include <bitstream/PacketVisitor.hpp>

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

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

virtual bil::PacketVisitor::~PacketVisitor ( )
inlinevirtual

Definition at line 32 of file PacketVisitor.hpp.


Member Function Documentation

virtual void bil::PacketVisitor::visit ( const BuswidthPattern buswidthPattern)
pure virtual

Method for visiting a BuswidthPattern instance.

Parameters:
buswidthPatternBuswidthPattern instance to be visited.

Implemented in bil::V5BitstreamSyntaxChecker, bil::V5BitstreamXMLWriter, and bil::V5PacketVisitor.

virtual void bil::PacketVisitor::visit ( const DummyWord dummyWord)
pure virtual

Method for visiting a DummyWord instance.

Parameters:
dummyWordDummyWord instance to be visited.

Implemented in bil::V5BitstreamSyntaxChecker, bil::V5PacketProcessor, bil::V5BitstreamXMLWriter, and bil::V5PacketVisitor.

virtual void bil::PacketVisitor::visit ( const Packet packet)
pure virtual

Method for visiting a Packet instance.

Parameters:
packetPacket instance to be visited.

Implemented in bil::V5PacketVisitor.

virtual void bil::PacketVisitor::visit ( const SyncWord syncWord)
pure virtual

Method for visiting a SyncWord instance.

Parameters:
syncWordSyncWord instance to be visited.

Implemented in bil::V5BitstreamSyntaxChecker, bil::V5BitstreamXMLWriter, and bil::V5PacketVisitor.

virtual void bil::PacketVisitor::visit ( const Type1Packet type1Packet)
pure virtual

Method for visiting a Type1Packet instance.

Parameters:
type1PacketType1Packet instance to be visited.

Implemented in bil::V5BitstreamSyntaxChecker, bil::V5BitstreamXMLWriter, bil::V5BitstreamDeviceDetector, bil::V5PacketProcessor, and bil::V5PacketVisitor.

virtual void bil::PacketVisitor::visit ( const Type2Packet type2Packet)
pure virtual

Method for visiting a Type2Packet instance.

Parameters:
type2PacketType2Packet instance to be visited.

Implemented in bil::V5BitstreamSyntaxChecker, bil::V5BitstreamXMLWriter, bil::V5BitstreamDeviceDetector, bil::V5PacketVisitor, and bil::V5PacketProcessor.


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