Changeset 2904 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Jan 16, 2006, 11:55:14 AM (20 years ago)
Author:
ansari
Message:

Appel readfits (nouveau FITS) pour menu OpenFits ds PIStdImagApp - Reza 16/01/2006

File:
1 edited

Legend:

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

    r2800 r2904  
    18081808      SetBusy();
    18091809      if (data)  {
    1810         string nomobj="";
    1811         ObjMgr()->ReadFits(pfc_fits->GetFileName(), nomobj);
    1812         ObjMgr()->DisplayObj(nomobj, "win");
     1810        string cmd = "readfits ";
     1811        cmd += pfc_fits->GetFileName();
     1812        try {
     1813          CmdInterpreter()->AddInputLine(cmd);
     1814          // CmdInterpreter()->ExecuteCommand(kw, args, toks);
     1815        } 
     1816        catch ( PThrowable & exc ) {
     1817          cerr << "\n PIStdImgApp::Process()/ Cmd->ExecuteCommand(readfits) Exception :"
     1818               << (string)typeid(exc).name() << " Msg= "
     1819               << exc.Msg() << endl;
     1820          cout << endl;
     1821        }
     1822        catch ( ... ) {
     1823          cerr << "\n PIStdImgApp::Process()/ Cmd->ExecuteCommand(readfits) Catched Exception ... " << endl;
     1824          cout << endl;
     1825        }
    18131826      }
    18141827      mFCMsg = 0;
Note: See TracChangeset for help on using the changeset viewer.