Example program to test print auxiliaries.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include <map>
#include "Jeep/JPrint.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 print auxiliaries. 
- Author
 - mdejong 
 
Definition in file examples/Jeep/JPrint.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char * |           argv[] ) | 
        
      
 
Definition at line 17 of file examples/Jeep/JPrint.cc.
   18{
   21 
   23 
   24  try {
   25 
   27 
   29 
   30    zap(argc, argv);
   31  }
   32  catch(const exception &error) {
   33    FATAL(error.what() << endl);
 
   34  }
   35 
   36  {
   38 
   39    for (int i = 0; i != 10; ++i) {
   40      buffer.push_back(i);
   41    }
   42 
   43    
   44    cout << 
"JEEPZ   " << 
JEEPZ() << buffer << endl;
 
   45  }
   46 
   47  {
   49 
   50    for (int i = 0; i != 10; ++i) {
   51      buffer[i] = i*i;
   52    }
   53 
   54    
   55    cout << 
"JEEPZ   " << 
JEEPZ() << buffer << endl;
 
   56  }
   57 
   58  {
   59    string buffer = 
MAKE_STRING(
"hello world " << 1 << 
' ' << 123.456);
 
   60 
   61    cout << buffer << endl;
   62  }
   63 
   64  {
   65    const char* 
const buffer = 
MAKE_CSTRING(
"hello world " << 1 << 
' ' << 123.456);
 
   66 
   67    cout << buffer << endl;
   68  }
   69}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
#define MAKE_CSTRING(A)
Make C-string.
 
#define MAKE_STRING(A)
Make string.
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary data structure for streaming of STL containers.