3 -- Grant of Unlimited Rights
5 -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
6 -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
7 -- unlimited rights in the software and documentation contained herein.
8 -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
9 -- this public release, the Government intends to confer upon all
10 -- recipients unlimited rights equal to those held by the Government.
11 -- These rights include rights to use, duplicate, release or disclose the
12 -- released technical data and computer software in whole or in part, in
13 -- any manner and for any purpose whatsoever, and to have or permit others
18 -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
19 -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
20 -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
21 -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
22 -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
23 -- PARTICULAR PURPOSE OF SAID MATERIAL.
33 -- The following files comprise this test:
40 -- 06 Dec 94 SAIC ACVC 2.0
41 -- 26 Apr 96 SAIC ACVC 2.1: Modified prologue; Added pragma
46 package CA110040
is -- Package Computer_System.
47 pragma Elaborate_Body
(CA110040
);
50 type ID_Type
is range 1 .. 4;
51 type System_Account_Capacity
is new ID_Type
;
53 type Account
is tagged
59 Maximum_System_Accounts
: constant System_Account_Capacity
:=
60 System_Account_Capacity
'Last;
62 System_Administrator
: constant ID_Type
:=
63 ID_Type
(System_Account_Capacity
'First);
65 Administrator_Account
: constant Account
:=
66 (User_ID
=> System_Administrator
);
69 Total_Accounts
: System_Account_Capacity
:= 1;
72 Illegal_Account
: exception;
73 Account_Limit_Exceeded
: exception;
76 function Next_Available_ID
return ID_Type
;
78 end CA110040
; -- Package Computer_System.
80 --=================================================================--
82 package body CA110040
is -- Package body Computer_System.
84 function Next_Available_ID
return ID_Type
is
86 Total_Accounts
:= Total_Accounts
+ 1;
87 return (ID_Type
(Total_Accounts
));
88 end Next_Available_ID
;
90 end CA110040
; -- Package body Computer_System.