18.10.2014 Views

Object-oriented Software in Ada 95

Object-oriented Software in Ada 95

Object-oriented Software in Ada 95

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix C 389<br />

procedure Get(Item : out Enum);<br />

procedure Put(File : <strong>in</strong> File_Type;<br />

Item : <strong>in</strong> Enum;<br />

Width : <strong>in</strong> Field := Default_Width;<br />

Set : <strong>in</strong> Type_Set := Default_Sett<strong>in</strong>g);<br />

procedure Put(Item : <strong>in</strong> Enum;<br />

Width : <strong>in</strong> Field := Default_Width;<br />

Set : <strong>in</strong> Type_Set := Default_Sett<strong>in</strong>g);<br />

procedure Get(From : <strong>in</strong> Str<strong>in</strong>g;<br />

Item : out Enum;<br />

Last : out Positive);<br />

procedure Put(To : out Str<strong>in</strong>g;<br />

Item : <strong>in</strong> Enum;<br />

Set : <strong>in</strong> Type_Set := Default_Sett<strong>in</strong>g);<br />

end Enumeration_IO;<br />

--Exceptions<br />

Status_Error : exception renames IO_Exceptions.Status_Error;<br />

Mode_Error : exception renames IO_Exceptions.Mode_Error;<br />

Name_Error : exception renames IO_Exceptions.Name_Error;<br />

Use_Error : exception renames IO_Exceptions.Use_Error;<br />

Device_Error : exception renames IO_Exceptions.Device_Error;<br />

End_Error : exception renames IO_Exceptions.End_Error;<br />

Data_Error : exception renames IO_Exceptions.Data_Error;<br />

Layout_Error : exception renames IO_Exceptions.Layout_Error;<br />

private<br />

... --not specified by the language<br />

end <strong>Ada</strong>.Text_IO;<br />

C.6 The Package <strong>Ada</strong>.Sequential_io<br />

In the package <strong>Ada</strong>.Sequential_io the follow<strong>in</strong>g parameter arguments are used:<br />

Parameter name<br />

file<br />

form<br />

mode<br />

name<br />

Purpose<br />

file_type:<br />

The file descriptor which is read from or written to.<br />

Form of the created output file.<br />

The mode of the operation read, write or append.<br />

The name of the file as a Str<strong>in</strong>g.<br />

© M A Smith - May not be reproduced without permission

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!