Classes of the c++ interface, C++ interface – Teledyne LeCroy Automation API for IBTrainer Software Ver.2.0 User Manual

Page 23

Advertising
background image

CATC IBTrainer InfiniBand Exerciser API Reference

2-1

Classes of the C++ Interface

The main programming interface to the IB

Trainer

is based on the C++

programming language. Included with the software is also a TCL
representation of the C++ interface - a shell to provide you with the
capabilities of a script language. Thus All C++ calls have a TCL
equivalent.

You therefore have a choice of using either the C++ interface or the
TCL shell to program and configure the IB

Trainer

InfiniBand

Generator. Both interfaces can be used to integrate the IB

Trainer

into

test software and test environments.

C++ Interface

The key class within the C++ interface is the class IGCGenerator that
contains the main methods for connecting to an InfiniBand generator.
InfiniBand packets are created using the class IGCPacket and its derived
classes. All classes and their methods are described below.

All classes can be printed using the C++ stream operator (<<) or the
method Print(). Depending on the class, the output is either a textual
representation of the class or a description of the class status (as with
the IGCError class, see

“Error Class” on page 2-13

). Expressed another

way, it allows you to find out what the data content of a class is.

Advertising