Changeset 3370 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.h


Ignore:
Timestamp:
Oct 31, 2007, 11:49:04 PM (18 years ago)
Author:
ansari
Message:

Adaptation pour redirection stdout/err a travers un fichier ds PIATmpxxx/, Reza 31/10/2007

File:
1 edited

Legend:

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

    r3366 r3370  
    3939
    4040enum DispWinEnum {Disp_Default, Disp_Next, Disp_Win, Disp_Same, Disp_Stack, Disp_Inset};
     41// Flag de redirection stdout/stderr 
     42enum RED_OUTERR_FLG { NORED_OE, CONSRED_OE, DOUBLERED_OE }; 
     43
    4144
    4245typedef map<long, PIWindow*, less<long> > WindMList;
     
    150153
    151154// Redirection ou Non de StdOut/StdErr
    152      void  RedirectStdOutErr(bool fg = true);
    153      inline bool HasRedirectedStdOutErr() { return(redirecout); }
     155     void  RedirectStdOutErr(RED_OUTERR_FLG redflg=CONSRED_OE);
     156     inline RED_OUTERR_FLG HasRedirectedStdOutErr() { return(redirecout); }
    154157// Gestion des signaux
    155158     void  CatchSignals(bool fgfpe=true, bool fgsegv=true);
     
    213216    PIContainer* consolecont;    // Container pour la PIConsole
    214217    PIConsole* mCons;
    215     bool redirecout;    // true if stdout/err redirected to mCons;
     218    RED_OUTERR_FLG redirecout;    // flag de redirection vers  mCons, ou NORED ou vers mCons+terminal;
    216219
    217220    WindMList mWList;
Note: See TracChangeset for help on using the changeset viewer.