
LeCroy Corporation UWBTrainer Exerciser - Generation Script Language Reference Manual
26
8.4.2 Frame Template Multiple Inheritance
You can create a frame/struct template that inherits field layouts defined in several templates.
The created template has all the fields defined in the inherited templates plus its own fields. All
fields must have unique names.
Multiple inheritance can simplify the construction of complex templates.
Note: The parser adds the fields defined in the created template after it adds fields from the
inherited templates. The parser adds the fields defined in the inherited templates in order from the
left-most ancestor to the right-most ancestor.
Examples
Frame Base
{
F1 : 16
F2 : 8
F3 : 32
}
Frame Templ_0
{
FieldT0_8 : 8
FieldT0_16 : 16
}
Frame Templ_1
{
FieldT1_24 : 24
FieldT1_32 : 32
}
Frame Combined : Base, Templ_0, Templ_1
{
}
The Combined template above has the fields:
• F1 : 16 # Base
• F2 : 8 # Base
• F3 : 32 # Base
• FieldT0_8 : 8 # Templ_0
• FieldT0_16 : 16 # Templ_0
• FieldT1_24 : 24 # Templ_1
• FieldT1_32 : 32 # Templ_1
• Data : * # Combined
Comentarios a estos manuales