Download NightView User`s Guide - Version 7.5

Transcript
Command-Line Interface
has run out of elements. In any event, no further computations will be performed
once this evaluates to true.
temp $variable = expression
Declare the $variable convenience variable with the initial value expression. This
convenience variable is never used directly by NightView, but it may be used indirectly in any of the expressions for the other keywords.
The values of the convenience variables above determine the display of the first element
(or lack thereof in the case of an empty container). The display of each subsequent element is determined by evaluating the full set of iterate-lines. An iterate-line is of the form:
$variable = expression
The $variable convenience variable should be one defined in an initialize-line. Their
meanings to Nightview already are specified by the appropriate keyword in the initializeline that declared them. That is, the value of the convenience variable declared with
index will be displayed as the subsequent index. The value of the convenience variable
declared with element will be displayed as the subsequent value. The value of the convenience variable declared with endflag will be used to determine if the end of the container has been reached.
Smart Printing Limitations
6
Function calls are not allowed in any of the expressions in a smart printer definition. However, intrinsic operations which happen to look like function calls are permitted (see
“Intrinsics for Smart Printing” on page 6-192).
For container smart printers, attempting to display high-numbered elements requires iterating through all previous elements. Naturally, if the expressions are complex, this can be
quite slow, so expect delays. The debugger can be interrupted if this is taking longer than
expected.
Predefined Smart Printers
6
NightView provides predefined smart printers for types from the C++ STL and for types
from the Qt toolkit. These smart printers are defined in the following files:
/usr/lib/NightView/lib/stl.print
/usr/lib/NightView/lib/qt.print
NightView loads these files automatically. However, it will load any other file whose
name is of the form /usr/lib/NightView/lib/anything.print. If the user has
other smart printer definitions that they want accessible universally on the system, they
can be installed in a new file in that same directory.
6-191