Changeset 2672 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Apr 18, 2005, 5:39:39 PM (20 years ago)
Author:
ansari
Message:

Ajout de la commande breakexe - pour arreter l'execution de commande par l'interpreteur ds PIACmd et ajout impression pour SaveFits ds nobjmgr.cc - Reza 18/4/2005

Location:
trunk/SophyaPI/PIext
Files:
2 edited

Legend:

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

    r2669 r2672  
    12801280obja = GetObjAdapter(nom);
    12811281if (obja == NULL)  return;
     1282cout << "  SaveFits: Object" << nom << " to FITS file " << flnm << endl;
    12821283obja->SaveFits(flnm);
    12831284return;
  • trunk/SophyaPI/PIext/piacmd.cc

    r2615 r2672  
    155155helpwin_initdone = false;
    156156
    157 string kw = "exitpiapp";
    158157string grp = "PIACmd";
    159158string gdesc = "piapp interpreter (class PIACmd) additional builtin commands";
    160159AddHelpGroup(grp, gdesc);
    161160
     161string kw = "exitpiapp";
    162162string usage = "To end the piapp session ";
    163163RegisterCommand(kw, usage, NULL, grp);
    164164kw = "helpwindow";
    165165usage = "To display the Help window ";
     166RegisterCommand(kw, usage, NULL, grp);
     167kw = "breakexe";
     168usage = "To break (stop) interpreter (PIACmd/Commander) execution";
    166169RegisterCommand(kw, usage, NULL, grp);
    167170
     
    203206void PIACmd::AddInputLine(string const & line)
    204207{
     208  if (line == "breakexe")  {
     209    StopExecution();
     210    return;
     211  }
    205212  mutx_inps.lock();
    206213  inputlines.push(line);   // Ajout d'un element en fin de queue
Note: See TracChangeset for help on using the changeset viewer.