Changeset 583 in Sophya for trunk/SophyaProg
- Timestamp:
- Nov 16, 1999, 6:00:47 PM (26 years ago)
- Location:
- trunk/SophyaProg/Tests
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/sphg0.cc
r526 r583 1 1 #include <iostream.h> 2 2 #include "sambainit.h" 3 #include "tod.h" 3 4 #include "spheregorski.h" 4 5 -
trunk/SophyaProg/Tests/tnt.cc
r573 r583 29 29 nt1.Print(94, 5); 30 30 31 string fn = "nt.ppf"; 32 { 31 33 printf("Ecriture NTuple ds nt.ppf ... \n"); 32 nt1.Write("nt.ppf"); 34 ObjFileIO<NTuple> fio(&nt1); 35 fio.Write(fn); 36 } 33 37 38 { 34 39 printf("Lecture NTuple (nt2) ds nt.ppf ... \n"); 35 40 36 NTuple nt2("nt.ppf"); 37 nt2.Show(cout); 38 nt2.Print(0, 5); 39 nt2.Print(18, 5); 40 nt2.Print(94, 5); 41 ObjFileIO<NTuple> fio(fn); 42 NTuple* nt2 = (NTuple*)fio.DataObj(); 43 nt2->Show(cout); 44 nt2->Print(0, 5); 45 nt2->Print(18, 5); 46 nt2->Print(94, 5); 47 } 41 48 49 /* 42 50 printf("ReLecture NTuple (nt1) ds nt.ppf ... \n"); 43 51 … … 55 63 nt3.Print(18, 5); 56 64 nt3.Print(94, 5); 65 */ 57 66 58 67 exit(0); -
trunk/SophyaProg/Tests/tobjio.cc
r539 r583 4 4 #include <iostream.h> 5 5 #include <string> 6 #include "nobjmgr.h"7 6 8 7 // Pour le test -
trunk/SophyaProg/Tests/tstndblk.cc
r552 r583 22 22 cout<<endl<<"Createur par defaut Va"<<endl; 23 23 NDataBlock<int_4> V1; V1.Print(1,99); 24 TRY{24 try { 25 25 cout<<endl<<"...Createur par copie V2e(V1)"<<endl; 26 26 NDataBlock<int_4> V2e(V1); 27 } CATCHALL{28 cout<<"...Exception catched "<<endl;29 } ENDTRY27 } catch(PException exc) { 28 cout<<"...Exception catched : " << exc.Msg() << endl; 29 } 30 30 31 31 //-----------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.