Changeset 1319 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Nov 10, 2000, 2:30:10 PM (25 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/cxxexecutor.cc
r1297 r1319 27 27 mModuleImportDefaultList.push_back("Samba"); 28 28 mModuleImportDefaultList.push_back("SkyMap"); 29 mModuleImportDefaultList.push_back("PMixer"); 29 mModuleImportDefaultList.push_back("SkyT"); 30 mModuleImportDefaultList.push_back("FitsIOServer"); 31 mModuleImportDefaultList.push_back("IFFTW"); 32 mModuleImportDefaultList.push_back("LinAlg"); 30 33 31 34 // Gestion des fichiers par default dans TmpDir … … 364 367 os<<endl; 365 368 369 os<<"//---- function for Adding and displaying Objects " << endl; 370 os<<"void Keep_Object(AnyDataObj & obj, string const & nom) \n{ \n" 371 <<" string name = nom; \n NamedObjMgr om; \n" 372 <<" if (om.GetObj(name)) \n" 373 <<" cerr << \"KeepObj()/Warning Already kept object \" << endl; \n" 374 <<" else om.AddObj(obj, name); \n" 375 <<"} \n" << endl; 376 os<<"void Display_Object(AnyDataObj & obj, string const & opt, string const & nom) \n { \n" 377 <<" string name = nom; \n NamedObjMgr om; \n" 378 <<" if (!om.GetObj(name)) \n" 379 <<" om.AddObj(obj, name); \n" 380 <<" om.DisplayObj(name, opt); \n" 381 <<"} \n" << endl; 382 366 383 os<<"//---- Objects and variables saving"<<endl 367 <<"#define KeepObj(obj) ___nomobj = #obj; omg.AddObj(obj,___nomobj);"<<endl384 <<"#define KeepObj(obj) Keep_Object(obj, #obj);"<<endl 368 385 <<"#define KeepVar(var) ___nomobj = #var; omg.GetVarList().Get(___nomobj) = var ;"<<endl 369 386 <<endl; 387 388 os<<"//---- Displaying objects and command execution"<<endl; 389 os<<"#define DisplayObj(obj, att) Display_Object(obj, att, #obj); \n" << endl; 390 os<<"#define ExecuteCommand(cmd) srvo.ExecuteCommand(cmd); \n" << endl; 370 391 371 392 return; … … 767 788 if( mModuleImportList[i]=="Samba") mIncImportList.push_back("samba.h"); 768 789 else if(mModuleImportList[i]=="SkyMap") mIncImportList.push_back("skymap.h"); 769 else if(mModuleImportList[i]=="PMixer") mIncImportList.push_back("pmixer.h"); 790 else if(mModuleImportList[i]=="SkyT") mIncImportList.push_back("skyt.h"); 791 else if(mModuleImportList[i]=="FitsIOServer") mIncImportList.push_back("fitsautoreader.h"); 792 else if(mModuleImportList[i]=="IFFTW") mIncImportList.push_back("fftwserver.h"); 793 else if(mModuleImportList[i]=="LinAlg") mIncImportList.push_back("intflapack.h"); 770 794 } 771 795 -
trunk/SophyaPI/PIext/cxxexecwin.cc
r1297 r1319 161 161 case 600: // Bouton Execute C++ 162 162 dap->SetBusy(); 163 mBut[8]->SetUnSensitive(); 163 SetUnSensitive(); 164 dap->GetConsole()->AddStr( 165 "CxxExecWind::Process() - Executing C++ Code ... \n", PIVA_Magenta); 164 166 cxxex->ExecuteCXX(mText[1]->GetText(),mText[0]->GetText()); 165 mBut[8]->SetSensitive(); 167 dap->GetConsole()->AddStr( 168 "CxxExecWind ... End of Executing C++ Code \n", PIVA_Magenta); 169 SetSensitive(); 166 170 dap->SetReady(); 167 171 break; -
trunk/SophyaPI/PIext/pistdimgapp.cc
r1276 r1319 113 113 m[5]->AppendCheckItem("Catch SigSEGV", 10604); 114 114 m[5]->AppendCheckItem("ObjMgr Verb", 10605); 115 m[5]->Append CheckItem("CxxExecOption", 10606);115 m[5]->AppendItem("CxxExecOption", 10606); 116 116 117 117 m[6] = new PIMenu(Menubar(),"Modules"); -
trunk/SophyaPI/PIext/servnobjm.cc
r1276 r1319 1252 1252 } 1253 1253 1254 /* --Methode-- */ 1255 int Services2NObjMgr::ExecuteCommand(string line) 1256 { 1257 if (mImgapp == NULL) return(99); 1258 return(mImgapp->CmdInterpreter()->Interpret(line)); 1259 } 1260 1254 1261 // Fonction static 1255 1262 /* --Methode-- */ -
trunk/SophyaPI/PIext/servnobjm.h
r1276 r1319 108 108 void CloseDLL(); 109 109 110 // Execution de chaine de commande par l'interpreteur 111 int ExecuteCommand(string line); 112 110 113 // Utilitaires divers 111 114 static void DecodeLoopParameters(string& loop, int& i1, int& i2, int& di);
Note:
See TracChangeset
for help on using the changeset viewer.