Index

Package: Statuses

Description

package Statuses is
Copyright (c) 2012 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

Types

Status

type Status is private;
A Status is the hash value of a status string.

Constants & Global variables

ST_NONE (Status)

ST_NONE      : constant Status;

ST_FAILED (Status)

ST_FAILED    : constant Status;
"none"

ST_SUCCESS (Status)

ST_SUCCESS   : constant Status;
"failed"

ST_EXCEPTION (Status)

ST_EXCEPTION : constant Status;
"success"

Subprograms & Entries

=

function "="
( l, r: Status ) return Boolean;

To_Status

function To_Status
( id: String ) return Status;
Returns the Status value for a status id string; case insensitive. (Ex: To_Status("SUCCESS") = To_Status("success") Note that because a Status is a hash value, Status collisions are possible.