Subnet management attribute classes – Teledyne LeCroy Automation API for IBTrainer Software Ver.2.0 User Manual
Page 31

C++ Interface
Classes of the C++ Interface
CATC IBTrainer InfiniBand Exerciser API Reference
2-9
• IGCDCommMgtAttribute class
This class contains classes for the attributes of the Communication
Management.
Subnet Management Attribute Classes
For each of the Subnet Management Attributes NodeDescription,
NodeInfo
, SwitchInfo, GUIDInfo, PortInfo and LinearForwardingTable
there is one class within the generator that holds the relevant
properties. They are IGCNodeDescription, IGCNodeInfo, IGCSwitchInfo,
IGCGUIDInfo, IGCPortInfo
and IGCLinearForwardingTable. All these classes
are derived from the IGCObject class which implements the
Set()
and
Get()
functions for the properties
(see
“Miscellaneous Classes” on
page 2-13
).
Some of the properties for the structs are read/write, some are read
only. If you have a NodeInfo struct that you want to copy into the
generator NodeInfo struct you can either use the assignment operator or
the call CopyProps() of IGCObject. The assignment operator copies only
the read/writeable properties. CopyProps() has a parameter to specify
the copy behavior.
Figure 5 Data Classes
IGCNodeInfo
IGCPortInfo
IGCGUIDInfo
IGCNodeDescription
This class holds the properties for the InfiniBand NodeInfo struct. Each
generator class has one NodeInfo class object. For the properties refer to
“IGCNodeInfo Properties” on page 4-6
.
This class holds the properties for the InfiniBand PortInfo struct. Each
generator class has one PortInfo class object. For the properties refer to
“IGCPortInfo Properties” on page 4-8
.
This class holds the properties for the InfiniBand GUIDInfo struct. Each
generator class has one GUIDInfo class object. For the properties refer to
IGCNodeInfo Class
IGCPortInfo Class
IGCGUIDInfo Class