Ada Programming/Attributes/'Input

Description

edit

Reads and returns one value from the Stream argument.

For every subtype S of a specific type T:

S'Input denotes a function with the following specification:

function S'Input (Stream : not null access Ada.Streams.Root_Stream_Type'Class) return T

S'Input reads and returns one value from Stream, using any bounds or discriminants written by a corresponding S'Output to determine how much to read.

Example

edit
SInput (Stream:access Ada.Streams.Root_Stream_TypeClass) return T