Example program to test JLANG::JPrintHelper class.  
More...
#include <iostream>
#include <iomanip>
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
#include "JLang/JPrintHelper.hh"
#include "JLang/JStreamAvailable.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JLANG::JPrintHelper class. 
- Author
 - mdejong 
 
Definition in file JPrintHelper.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char ** |           argv ) | 
        
      
 
Definition at line 49 of file JPrintHelper.cc.
   50{
   52 
   54 
   55  try {
   56 
   57    JParser<> zap(
"Example program to test print helper.");
 
   58 
   60 
   61    zap(argc, argv);
   62  }
   63  catch(const exception &error) {
   64    FATAL(error.what() << endl);
 
   65  }
   66 
   67 
   69  __B__ b;
   70  __C__ c;
   71  
   72 
   73  cout << JStreamAvailable<__A__>::has_ostream << endl;
   74  cout << JStreamAvailable<__B__>::has_ostream << endl;
   75  cout << JStreamAvailable<__C__>::has_ostream << endl;
   76  cout << JStreamAvailable<__D__>::has_ostream << endl;
   77  
   79  cout << b << endl;
   80  cout << c << endl;
   81  
   82}  
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Utility class to parse command line options.