From 29b8f1153c0055f8bdc26eac171d0200e35f9ec2 Mon Sep 17 00:00:00 2001 From: evomarc Date: Wed, 29 Nov 2000 17:20:16 +0000 Subject: [PATCH] An include file was missing!!! I've inserted it in teh file actually - but if we go on with gnuplot, it will need to be taken out again, and used in all other monitors we will write using gnuplot (e.g. eoGnuplotWithErrorbarsMonitor, eoGnuplotHistogramMonitor, ...). --- eo/src/utils/eoGnuplot1DMonitor.h | 58 +++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/eo/src/utils/eoGnuplot1DMonitor.h b/eo/src/utils/eoGnuplot1DMonitor.h index 3128bfdd..e086c78b 100644 --- a/eo/src/utils/eoGnuplot1DMonitor.h +++ b/eo/src/utils/eoGnuplot1DMonitor.h @@ -42,7 +42,59 @@ This class plots through gnuplot the eoStat given as argument //----------------------------------------------------------------------------- #include -#include "pipecom.h" +// #include "pipecom.h" +// +// this is pipecom.h + +/* ---------------------------------------------------------------------- + * Where........: CMAP - Polytechnique + * File.........: pipecom.h + * Author.......: Bertrand Lamy (EEAAX) + * Created......: Thu Mar 9 17:21:15 1995 + * Description..: Pipe communication with a process + * + * Ident........: $Id: eoGnuplot1DMonitor.h,v 1.2 2000-11-29 17:20:16 evomarc Exp $ + * ---------------------------------------------------------------------- + */ + +#ifndef PIPECOM_H +#define PIPECOM_H + + +#ifdef __cplusplus +extern "C" { +#endif + +#include + + +typedef struct PipeCommunication { + FILE *fWrit; + FILE *fRead; + int pid; +} PCom; + + + +PCom *PipeComOpen( char *prog ); +PCom *PipeComOpenArgv( char *prog, char *argv[] ); + +int PipeComSend( PCom *to, char *line ); +int PipeComSendn( PCom *to, char *data, int n ); + +int PipeComReceive( PCom *from, char *data, int max ); + +int PipeComClose( PCom *to ); + +int PipeComWaitFor( PCom *from, char *what ); + +#ifdef __cplusplus +} /* ferme extern "C" */ +#endif + +#endif /* PIPECOM_H */ + + /** eoGnuplot1DMonitor plots stats through gnuplot */ @@ -161,7 +213,7 @@ void eoGnuplot1DMonitor::FirstPlot() * Created......: Mon Mar 13 13:50:11 1995 * Description..: Communication par pipe bidirectionnel avec un autre process * - * Ident........: $Id: eoGnuplot1DMonitor.h,v 1.1 2000-11-28 06:58:06 evomarc Exp $ + * Ident........: $Id: eoGnuplot1DMonitor.h,v 1.2 2000-11-29 17:20:16 evomarc Exp $ * ---------------------------------------------------------------------- */ @@ -171,7 +223,7 @@ void eoGnuplot1DMonitor::FirstPlot() #include #include -#include "pipecom.h" +// #include "pipecom.h" int Check( PCom *com )