Changeset 447 in Sophya for trunk/SophyaPI/PIext/servnobjm.cc
- Timestamp:
- Sep 30, 1999, 7:26:52 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/servnobjm.cc
r440 r447 703 703 mOmg->DisplayObj(nomvec, dopt); 704 704 return; 705 } 706 707 /* --Methode-- */ 708 void Services2NObjMgr::NtFromASCIIFile(string& nom,string& filename,double def_val) 709 // Pour remplir un ntuple "nom" existant a partir du fichier 710 // ASCII table "filename". Si il y a plus de variables dans le 711 // ntuple que dans le fichier "filename", 712 // les sur-numeraires sont mises a "def_val" par defaut. 713 { 714 NamedObjMgr omg; 715 AnyDataObj* mobj = omg.GetObj(nom); 716 if(mobj == NULL) 717 {cout<<"NtFromASCIIFile() Error, object "<<nom<<" not existing"<<endl; 718 return;} 719 if(typeid(*mobj) != typeid(NTuple)) 720 {cout<<"NtFromASCIIFile() Error, object "<<nom<<" not an NTuple"<<endl; 721 return;} 722 if (!mImgapp) return; 723 724 NTuple* nt = (NTuple*) mobj; 725 cout<<"CMV -> Reza tu dois mofidier FillFromASCIIFile"<<endl; 726 cout<<"CMV -> Reza pour permettre une valeur par defaut"<<endl; 727 cout<<"CMV -> Reza n oublie AUSSI pas l arg par def dans servnobj.h"<<endl; 728 cout<<"CMV -> Reza > nt->FillFromASCIIFile(filename,def_val);"<<endl; 729 nt->FillFromASCIIFile(filename); 730 return; 705 731 } 706 732
Note:
See TracChangeset
for help on using the changeset viewer.