Example for testing inter-process communication.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include "JSystem/JProcess.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char *argv[]) | 
|   | 
Example for testing inter-process communication. 
- Author
 - mdejong 
 
Definition in file JProcess.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 18 of file JProcess.cc.
   29     JParser<> zap(
"Example for testing inter-process communication.");
 
   37   catch(
const exception &error) {
 
   38     FATAL(error.what() << endl);
 
   48       istream 
in(
process.getInputStreamBuffer());
 
   50       for (
string buffer; 
getline(
in, buffer); ) {
 
   51         cout << buffer << endl;
 
   56       ostream out(
process.getOutputStreamBuffer());
 
   57       istream 
in (
process.getInputStreamBuffer());
 
   59       for (
string buffer; 
getline(cin, buffer) && buffer != 
""; ) {
 
   61         out  << buffer << endl;
 
   66           reverse(buffer.begin(), buffer.end());
 
   69         cout << buffer << endl;
 
   73   catch(
const JException& error) {
 
   74     cerr << error.what() << endl;
 
Utility class to parse command line options. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in