DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦23f806a5e⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Pilote_2, seg_0515a4

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Com_Ihm;
with Choix_Trt;
with Trame_Ihm_68;

with Configurateur;
with Chargeur_Bdd;
with Gest_Buffer;

procedure Pilote_2 is

    type T_Action_En_Cours is (Debut, Phase_De_Config, Fonctionnement_Normal);
    Action_En_Cours : T_Action_En_Cours := Debut;

    procedure Aiguillage_Error is
        Trame : Trame_Ihm_68.Object;
    begin  
        Trame_Ihm_68.Create (O => Trame, Action => Trame_Ihm_68.Nack);
        Com_Ihm.Ecriture (Trame_Ihm_68.Image (Trame));
    end Aiguillage_Error;

    procedure Aiguillage (S : String) is
        use Trame_Ihm_68;
        Trame : Trame_Ihm_68.Object;
    begin
        Trame := Trame_Ihm_68.Value (S);
        case Action_En_Cours is
            when Debut =>
                if Get_Action (Trame) = Config then
                    Action_En_Cours := Phase_De_Config;
                else
                    Aiguillage_Error;
                end if;
            when Phase_De_Config =>
                case Get_Action (Trame) is
                    when Creation =>  
                        Chargeur_Bdd.Creation_Bdd (Trame);
                    when Suppression =>  
                        Chargeur_Bdd.Suppression_Bdd (Trame);
                    when Modification =>  
                        Chargeur_Bdd.Modification_Bdd (Trame);
                    when Fin_Config =>  
                        Configurateur.Programmation_Config;
                        Action_En_Cours := Fonctionnement_Normal;
                    when others =>
                        Aiguillage_Error;
                end case;
            when Fonctionnement_Normal =>
                case Get_Action (Trame) is
                    when Config =>
                        Action_En_Cours := Phase_De_Config;
                    when Rapport =>
                        Gest_Buffer.Rapport_Cl35;
                    when others =>
                        Aiguillage_Error;
                end case;
        end case;
    end Aiguillage;

begin

    Com_Ihm.Initialisation;

    loop

        declare
            S : constant String := Com_Ihm.Lecture;
        begin
            if S'Length = 0 then
                exit;
            else  
                Aiguillage (S);
            end if;
        end;
    end loop;

end Pilote_2;
pragma Main;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=23 rec1=00 rec2=01 rec3=016
        [0x01] rec0=00 rec1=00 rec2=04 rec3=004
        [0x02] rec0=15 rec1=00 rec2=03 rec3=030
        [0x03] rec0=17 rec1=00 rec2=02 rec3=000
    tail 0x2154b4066879a584e6080 0x42a00088462060003