Generator class, Packet classes – Teledyne LeCroy Automation API for IBTrainer Software Ver.2.0 User Manual

Page 24

Advertising
background image

Classes of the C++ Interface

C++ Interface

2-2

CATC IBTrainer InfiniBand Exerciser API Reference

Generator Class

The generator class IGCGenerator is the ‘main’ class needed to connect
the software to a specific generator. There can be only one generator
class for each physical IB

Trainer

4x Exerciser for InfiniBand. However,

you can handle several generator class objects simultaneously where
each of these objects is connected to a different generator. A generator
object can also be created with an offline

connection.

The IGCGenerator class is derived from the class IGCObject which
implements the Set() and Get() functions for the properties (see

“Miscellaneous Classes” on page 2-13

).

This is the main class for interfacing the software to the IB

Trainer

.

For each generator that is connected, you need to have one instance of
this class. The generator class also contains a dispatcher that manages
the flow of received packets to registered packet handlers. For the
methods relating to this class refer to

“Methods of the IGCGenerator

Class” on page 2-16

.

Packet Classes

There are several packet classes (derived from the general packet class
IGCPacket

) that reflect the different basic types of packets that can be

transported via an InfiniBand link. These are the raw packet, the raw
packet with the IPv6 header, the InfiniBand packet and the MAD
packet. The latter is derived from the InfiniBand packet. For the
methods relating to this class refer to

“Methods of the IGCPacket Class”

on page 2-60

.

The IGCPacket class itself is derived from the IGCObject class (see

“Miscellaneous Classes” on page 2-13

).

The following figure shows the derivation hierarchy of the Packet
classes. You can derive additional classes from these should the need
arise.

IGCGenerator Class

IGCPacket Overview

Advertising