00001 # ifndef __pipemodules_h 00002 # define __pipemodules_h 00003 00004 #include <streams.h> 00005 00006 // A couple of functions that can be lifted to "snoop" on pipes 00007 00008 template <class T> 00009 T snoop1(const T,const char *mess) 00010 { 00011 cout << mess << T << endl; 00012 return T; 00013 } 00014 00015 template <class T> 00016 T snoop2(const char *mess) 00017 { 00018 cout << mess << endl; 00019 return T; 00020 } 00021 00022 # endif //__pipemodules_h