|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Table_Formatter, pragma Module_Name 4 3217, pragma Subsystem Input_Output, seg_012917
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Io; -- This package is used to produce neatly formatted tables with centered -- headers and even amounts of white space between the columns. The first -- N calls should be to header, which defines a header and a type of -- justification for the items that will go into each column. Then the M*N -- items of an M line table are sent into the package a row at a time. An -- item is defined by either a single call to Item, or a series of zero or -- more calls to Subitem terminated by a call to Last_Subitem. Multiple -- parts of an item are separated by the subitem separator. After all the -- items have been defined, the table is output with a call to Display. -- The package internally allocates enough memory to save a copy of the -- entire table. It is therefore a good idea to instantiate this -- procedure in a local frame so that all the memory it allocates will go -- away when the frame does. -- An instantiation of this package will generate at most one table. -- It is NOT possible to start over calling Header after Display. generic Number_Of_Columns : Positive; Subitem_Separator : String := " "; package Table_Formatter is type Adjust is (Left, Right, Centered); procedure Header (S : String; Format : Adjust := Left); procedure Item (S : String); procedure Subitem (S : String); procedure Last_Subitem; procedure Display (On_File : Io.File_Type); type Field_List is array (Integer range <>) of Integer; -- For N > 0 sort by field N in increasing order. -- For N < 0 sort by field abs (N) in decreasing order. -- Sorting is done on input value before right adjustment or centering. procedure Sort (On_Field : Integer := 1); procedure Sort (On_Fields : Field_List); pragma Subsystem (Input_Output); pragma Module_Name (4, 3217); end Table_Formatter;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=13 rec1=00 rec2=01 rec3=07e [0x01] rec0=1d rec1=00 rec2=02 rec3=000 tail 0x2150d950682b0839d2f0b 0x42a00088462065003