Example program to test JLANG::JRedirectString class.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JLang/JRedirectString.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JLANG::JRedirectString class. 
- Author
 - mdejong 
 
Definition in file JRedirectString.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 18 of file JRedirectString.cc.
   27     JParser<> zap(
"Example program to test redirection of I/O streams.");
 
   34   catch(
const exception &error) {
 
   35     FATAL(error.what() << endl);
 
   44     JRedirectString redirect(cin, message);
 
   49   DEBUG(
"Message  " << message << endl);
 
   50   DEBUG(
"Redirect " << buffer  << endl);
 
Utility class to parse command line options. 
 
#define ASSERT(A,...)
Assert macro. 
 
#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. 
 
#define DEBUG(A)
Message macros.