Changeset 583 in Sophya for trunk/SophyaProg


Ignore:
Timestamp:
Nov 16, 1999, 6:00:47 PM (26 years ago)
Author:
ansari
Message:

Div. prog test - Reza 16/11/99

Location:
trunk/SophyaProg/Tests
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/sphg0.cc

    r526 r583  
    11#include <iostream.h>
    22#include "sambainit.h"
     3#include "tod.h"
    34#include "spheregorski.h"
    45
  • trunk/SophyaProg/Tests/tnt.cc

    r573 r583  
    2929nt1.Print(94, 5);
    3030
     31string fn = "nt.ppf";
     32{
    3133printf("Ecriture NTuple ds nt.ppf ... \n");
    32 nt1.Write("nt.ppf");
     34ObjFileIO<NTuple> fio(&nt1);
     35fio.Write(fn);
     36}
    3337
     38{
    3439printf("Lecture NTuple (nt2) ds nt.ppf ... \n");
    3540
    36 NTuple nt2("nt.ppf");
    37 nt2.Show(cout);
    38 nt2.Print(0, 5);
    39 nt2.Print(18, 5);
    40 nt2.Print(94, 5);
     41ObjFileIO<NTuple> fio(fn);
     42NTuple* nt2 = (NTuple*)fio.DataObj();
     43nt2->Show(cout);
     44nt2->Print(0, 5);
     45nt2->Print(18, 5);
     46nt2->Print(94, 5);
     47}
    4148
     49/*
    4250printf("ReLecture NTuple (nt1) ds nt.ppf ... \n");
    4351
     
    5563nt3.Print(18, 5);
    5664nt3.Print(94, 5);
     65*/
    5766
    5867exit(0);
  • trunk/SophyaProg/Tests/tobjio.cc

    r539 r583  
    44#include <iostream.h>
    55#include <string>
    6 #include "nobjmgr.h"
    76
    87// Pour le test
  • trunk/SophyaProg/Tests/tstndblk.cc

    r552 r583  
    2222cout<<endl<<"Createur par defaut Va"<<endl;
    2323NDataBlock<int_4> V1; V1.Print(1,99);
    24 TRY {
     24try {
    2525  cout<<endl<<"...Createur par copie V2e(V1)"<<endl;
    2626  NDataBlock<int_4> V2e(V1);
    27 } CATCHALL {
    28   cout<<"...Exception catched"<<endl;
    29 } ENDTRY
     27} catch(PException exc) {
     28  cout<<"...Exception catched : " << exc.Msg() << endl;
     29}
    3030
    3131//-----------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.