Changeset 1319 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Nov 10, 2000, 2:30:10 PM (25 years ago)
Author:
ercodmgr
Message:

Amelioration cxxexecutor - Reza , 10/11/2000

Location:
trunk/SophyaPI/PIext
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/cxxexecutor.cc

    r1297 r1319  
    2727mModuleImportDefaultList.push_back("Samba");
    2828mModuleImportDefaultList.push_back("SkyMap");
    29 mModuleImportDefaultList.push_back("PMixer");
     29mModuleImportDefaultList.push_back("SkyT");
     30mModuleImportDefaultList.push_back("FitsIOServer");
     31mModuleImportDefaultList.push_back("IFFTW");
     32mModuleImportDefaultList.push_back("LinAlg");
    3033
    3134// Gestion des fichiers par default dans TmpDir
     
    364367os<<endl;
    365368
     369os<<"//---- function for Adding and displaying Objects  " << endl;
     370os<<"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;
     376os<<"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
    366383os<<"//---- Objects and variables saving"<<endl
    367   <<"#define KeepObj(obj) ___nomobj = #obj; omg.AddObj(obj,___nomobj);"<<endl
     384  <<"#define KeepObj(obj) Keep_Object(obj, #obj);"<<endl
    368385  <<"#define KeepVar(var) ___nomobj = #var; omg.GetVarList().Get(___nomobj) = var ;"<<endl
    369386  <<endl;
     387
     388os<<"//---- Displaying objects and command execution"<<endl;
     389os<<"#define DisplayObj(obj, att) Display_Object(obj, att, #obj); \n" << endl;
     390os<<"#define ExecuteCommand(cmd) srvo.ExecuteCommand(cmd); \n" << endl;
    370391
    371392return;
     
    767788    if(     mModuleImportList[i]=="Samba")  mIncImportList.push_back("samba.h");
    768789    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");
    770794}
    771795
  • trunk/SophyaPI/PIext/cxxexecwin.cc

    r1297 r1319  
    161161    case 600:    // Bouton Execute C++
    162162      dap->SetBusy();
    163       mBut[8]->SetUnSensitive();
     163      SetUnSensitive();
     164      dap->GetConsole()->AddStr(
     165         "CxxExecWind::Process() - Executing C++ Code ... \n", PIVA_Magenta);
    164166      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();
    166170      dap->SetReady();
    167171      break;
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r1276 r1319  
    113113m[5]->AppendCheckItem("Catch SigSEGV", 10604);
    114114m[5]->AppendCheckItem("ObjMgr Verb", 10605);
    115 m[5]->AppendCheckItem("CxxExecOption", 10606);
     115m[5]->AppendItem("CxxExecOption", 10606);
    116116
    117117m[6] = new PIMenu(Menubar(),"Modules");
  • trunk/SophyaPI/PIext/servnobjm.cc

    r1276 r1319  
    12521252}
    12531253
     1254/* --Methode-- */
     1255int Services2NObjMgr::ExecuteCommand(string line)
     1256{
     1257  if (mImgapp == NULL) return(99);
     1258  return(mImgapp->CmdInterpreter()->Interpret(line));
     1259}
     1260
    12541261// Fonction static
    12551262/* --Methode-- */
  • trunk/SophyaPI/PIext/servnobjm.h

    r1276 r1319  
    108108  void          CloseDLL(); 
    109109
     110// Execution de chaine de commande par l'interpreteur
     111  int           ExecuteCommand(string line);
     112
    110113// Utilitaires divers
    111114  static void   DecodeLoopParameters(string& loop, int& i1, int& i2, int& di);
Note: See TracChangeset for help on using the changeset viewer.