Teledyne LeCroy Automation API for IBTrainer Software Ver.2.0 User Manual

Page 27

Advertising
background image

C++ Interface

Classes of the C++ Interface

CATC IBTrainer InfiniBand Exerciser API Reference

2-5

Figure 3 Hierarchy of the Packet Handler Classes

IGCPacketHandler

IGCPacketHandlerTcl

This is an abstract base class. It basically manages two functions, both
implemented as purely virtual methods that check and handle incoming
packets. The methods are CheckPacket() and HandlePacket(). For the
methods relating to this class refer to

“Methods of the

IGCPacketHandler Class” on page 2-103

.

As a user you are free to derive additional classes from the
IGCPacketHandler

class to write your own packet handlers. Using the

IGCPacketHandlerTcl c

lass you can also write an entire packet handler

in TCL.

The following class is derived from IGCPacketHandler:

• IGCPacketHandlerTcl class

This class allows you to provide the generator class with TCL scripts
to handle incoming packets. For the methods relating to this class
refer to

“Methods of the IGCPacketHandlerTcl Class” on page 2-106

.

IGCPacketHandler Class

Advertising