Changeset 3572 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

File:
1 edited

Legend:

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

    r3431 r3572  
    102102m[0]->AppendItem("Open-Fits", 10120);
    103103m[0]->AppendItem("Open-PPF", 10130);
    104 #ifndef SANS_EVOLPLANCK
    105104m[0]->AppendItem("Open-ASCII", 10140);
    106 #endif
    107105// m[0]->AppendItem("Options", 10101);
    108106m[0]->AppendItem("Help", 10100);
     
    316314glst_piai = new PIAppInitiator(this);
    317315
    318 char buff[128];
    319316mCons->AddStr("  ............  starting piapp .............\n", PIVA_Blue );
    320 #ifdef SANS_EVOLPLANCK
    321 sprintf(buff, "Version: piapp=%g  PI=%g  PEIDA=%g \n", (double)PIAPP_VERSIONNUMBER,
    322               (double)PI_VERSIONNUMBER, (float)PeidaVersion());
    323 mCons->AddStr(buff, PIVA_Blue );
    324 #else
    325317string svers;
    326318SophyaInitiator::GetVersion(svers);
    327319mCons->AddStr(svers.c_str(), PIVA_Blue );
    328 #endif
    329320mCons->AddStr("  ..........................................\n", PIVA_Blue );
    330321// PrintPeidaVersion();
     
    539530if  ((GetState()) && (msg != mFCMsg)) { PIBeep(); return; }
    540531
    541 #ifdef SANS_EVOLPLANCK
    542   TRY {
    543 #else
    544   try {
    545 #endif
     532try {
    546533
    547534//   Messages active-window
     
    628615  mCons->AddChar('\n', PIVA_Def, true);
    629616  SetBusy();
    630 #ifdef SANS_EVOLPLANCK
    631   TRY {
    632     mCmd->Interpret(s);
    633     }  CATCH(merr) {
    634     fflush(stdout);
    635     cout << endl;
    636     cerr << endl;
    637     string es = PeidaExc(merr);
    638     cerr << "PIStdImgApp::Process()/ Cmd->Do() Exception :" << es << " (" << merr << ")" << endl ;
    639     }
    640 #else
    641617  try {
    642618    //    mCmd->Interpret(s);
     
    655631  }
    656632
    657 #endif
    658633  SetReady();
    659634  }
     
    662637            (int)tmsg,(int)msg,(int)smm);
    663638
    664 #ifdef SANS_EVOLPLANCK
    665 }  CATCH(merr) {
    666   fflush(stdout);
    667   cout << endl;
    668   cerr << endl;
    669   string es = PeidaExc(merr);
    670   cerr << "PIStdImgApp::Process()/  Exception :" << es << " (" << merr << ")" << endl ;
    671   SetReady();
    672   }
    673 #else
    674639  }
    675640  catch ( PThrowable & exc ) {
     
    690655  }
    691656
    692 #endif
    693657
    694658return;
     
    17811745void PIStdImgApp::CatchSignals(bool fgfpe, bool fgsegv)
    17821746{   
    1783 #ifdef SANS_EVOLPLANCK
    1784 PeidaConfigureSignalhandling(fgfpe, fgsegv, true, true); 
    1785 #else
    17861747// On active aussi SIGUSR1 pour stopthr
    17871748SophyaConfigureSignalhandling(fgfpe, fgsegv, true, true); 
    1788 #endif
    17891749m[5]->SetStateMsg(10603, fgfpe);
    17901750m[5]->SetStateMsg(10604, fgsegv);
     
    19531913      break;
    19541914       
    1955 #ifndef SANS_EVOLPLANCK
    19561915    case 10140 :
    19571916      pfc_ascii->AcceptNewFile(false);
     
    19881947      SetReady();
    19891948      break;
    1990 #endif
    19911949
    19921950    case 10105:
     
    23962354string info = "piapp : Interactive analysis program\n";
    23972355char buff[128];
    2398 #ifdef SANS_EVOLPLANCK
    2399 sprintf(buff, "Version: piapp=%g  PI=%g  PEIDA=%g \n", (double)PIAPP_VERSIONNUMBER,
    2400               (double)PI_VERSIONNUMBER, (float)PeidaVersion());
    2401 info += buff;
    2402 #else
     2356
    24032357string svers;
    24042358SophyaInitiator::GetVersion(svers);
     
    24072361        (double)PIAPP_VERSIONNUMBER);
    24082362info += buff;
    2409 #endif
    2410 info += "(C) LAL-IN2P3/CNRS  1996-2006\n";
    2411 info += "(C) SPP-DAPNIA/CEA 1996-2006\n";
    2412 #ifndef SANS_EVOLPLANCK
    2413  info += "Check http://www.sophya.org for more information";
    2414 #endif
     2363
     2364info += "(C) LAL-IN2P3/CNRS  1996-2009\n";
     2365info += "(C) SPP-DAPNIA/CEA 1996-2009\n";
     2366info += "Check http://www.sophya.org for more information";
     2367
    24152368infow_txt->SetText(info);
    24162369}
Note: See TracChangeset for help on using the changeset viewer.