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


Ignore:
Timestamp:
Sep 9, 2002, 6:48:34 PM (23 years ago)
Author:
ansari
Message:

Ajout commande exitpiapp et possibilite de soumettre une commande a executer a PIStdImgApp (pour execution du script specifie au demarrage) - Reza 9/9/2002

File:
1 edited

Legend:

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

    r2165 r2188  
    4747/*    Classe SIA_RU__Periodic : mise a jour periodique de      */
    4848/*    la fenetre Stat/Ressource info                           */
     49/*    + execution de commande soumis de l'exterieur            */
    4950/* ........................................................... */
    5051
     
    7172void SIA_RU__Periodic::DoPeriodic()
    7273{
    73   if (_app) _app->UpdateStatResourceInfo();
     74  if (_app) {
     75    _app->ExecuteExtCommand();
     76    _app->UpdateStatResourceInfo();
     77  }
    7478}
    7579
     
    210214therm_cpu->SetThreshold(0.75, 0.90);
    211215
     216 fg_exc_cmd = false;
    212217UpdateStatResourceInfo();
    213218resupd_periodic = new SIA_RU__Periodic(this);
     
    775780
    776781/* --Methode-- */
     782int PIStdImgApp::ExecuteExtCommand()
     783{
     784if (!fg_exc_cmd) return(0);
     785else {
     786  fg_exc_cmd = false;
     787  return CmdInterpreter()->Interpret(exc_command);
     788  }
     789}
     790
     791/* --Methode-- */
    777792void PIStdImgApp::AddText(string const & txt, double xp, double yp, string const& sop)
    778793{
Note: See TracChangeset for help on using the changeset viewer.