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.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char ** |           argv ) | 
        
      
 
Definition at line 18 of file JRedirectString.cc.
   19{
   21 
   22  string      message;
   24 
   25  try {
   26 
   27    JParser<> zap(
"Example program to test redirection of I/O streams.");
 
   28 
   31 
   32    zap(argc, argv);
   33  }
   34  catch(const exception &error) {
   35    FATAL(error.what() << endl);
 
   36  }
   37 
   38 
   40 
   41  string buffer;
   42 
   43  {
   45    
   47  }
   48  
   49  DEBUG(
"Message  " << message << endl);
 
   50  DEBUG(
"Redirect " << buffer  << endl);
 
   51 
   53}
#define DEBUG(A)
Message macros.
 
#define ASSERT(A,...)
Assert macro.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
This class can be used to temporarily redirect an input stream to an input string.
 
Utility class to parse command line options.
 
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).