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.

376 Appendix B<br />

Task<strong>in</strong>g_Error<br />

Raised when an error occurs <strong>in</strong> a task.<br />

B.7.2I/O exceptions<br />

Exception<br />

Data_Error<br />

End_Error<br />

Mode_Error<br />

Name_Error<br />

Status_Error<br />

Use_Error<br />

B.8 <strong>Ada</strong> <strong>95</strong>, the structure<br />

Explanation<br />

Raised when a get on a numeric object f<strong>in</strong>ds the <strong>in</strong>put is<br />

not a valid value of this numeric type.<br />

Raised when an attempt is made to read past the end of<br />

the file.<br />

Raised when an <strong>in</strong>appropriate operation is attempted on<br />

a file.<br />

Raised if the name used <strong>in</strong> an open call does not match<br />

a file <strong>in</strong> the external environment.<br />

Raised when an operation is attempted on a file that has<br />

not been opened or created.<br />

Raised if the attempted operation is not possible on the<br />

external file.<br />

The <strong>Ada</strong> <strong>95</strong> programm<strong>in</strong>g language is split <strong>in</strong>to two dist<strong>in</strong>ct sections: a core language that must be implemented<br />

and a series of annexes that may or may not be implemented. The annexes extend the language <strong>in</strong>to problem<br />

specific areas. The annexes to the language are:<br />

Annex Name Contents of annex:<br />

C System programm<strong>in</strong>g The provision of features that will allow the<br />

<strong>in</strong>terfac<strong>in</strong>g of an <strong>Ada</strong> program to external<br />

environments. For example, the <strong>in</strong>terfac<strong>in</strong>g of<br />

<strong>Ada</strong> code to a peripheral device or to components<br />

of the operat<strong>in</strong>g system <strong>in</strong>terface.<br />

D Real time systems The provision of features that will allow the<br />

control of real-time processes.<br />

E Distributed systems The provision of features that will allow a system<br />

to extend beyond a s<strong>in</strong>gle address space <strong>in</strong> a<br />

s<strong>in</strong>gle mach<strong>in</strong>e.<br />

F Information systems The provision of features that will allow an <strong>Ada</strong><br />

program to communicate with programs or<br />

systems written <strong>in</strong> C or COBOL.<br />

G Numerics The provision of features that will allow the<br />

construction of numerically <strong>in</strong>tense applications<br />

H Safety and security Restrictions to the language to m<strong>in</strong>imize<br />

<strong>in</strong>securities and areas <strong>in</strong> which compromises to<br />

validation and verification would be made.<br />

Note:<br />

The annexes rarely extend the syntax of the language; rather they provide extra packages to enable the<br />

particular area to be performed.<br />

B.9 Sources of <strong>in</strong>formation<br />

B.8.1Copies of the <strong>Ada</strong> <strong>95</strong> compiler<br />

The ma<strong>in</strong> <strong>in</strong>ternet site for copies of the GNAT <strong>Ada</strong> <strong>95</strong> compiler is cs.nyu.edu. The latest version of the<br />

compiler for a multitude of mach<strong>in</strong>es is held <strong>in</strong> the directory pub/gnat.<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!