Example program to test JTOOLS::JAutoMap class.  
More...
#include <iostream>
#include <iomanip>
#include <string>
#include "JTools/JAutoMap.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| namespace   | JTOOLS | 
|   | Auxiliary classes and methods for multi-dimensional interpolations and histograms. 
  | 
|   | 
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JTOOLS::JAutoMap class. 
- Author
 - mdejong 
 
Definition in file JAutoMap.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char ** |           argv ) | 
        
      
 
Definition at line 55 of file JAutoMap.cc.
   56{
   58 
   60 
   61  try {
   62 
   63    JParser<> zap(
"Example program to test automatic generation of map based on data types.");
 
   64 
   66 
   67    zap(argc, argv);
   68  }
   69  catch(const exception &error) {
   70    FATAL(error.what() << endl);
 
   71  }
   72 
   73 
   75 
   76  typedef 
   81 
   82  {
   83    JAutoMap_t zmap;
   84    
   85    zmap.insert<JDataTypes_t>();
   86 
   87    cout << "First method" << endl;
   88    
   89    for (JAutoMap_t::const_iterator i = zmap.begin(); i != zmap.end(); ++i) {
   90      cout << setw(2) << i->first << ' ' << i->second << endl;
   91    }
   92  }
   93 
   94  {
   95    JAutoMap_t zmap;
   96    
   98    
   99    cout << "Second method" << endl;
  100 
  101    for (JAutoMap_t::const_iterator i = zmap.begin(); i != zmap.end(); ++i) {
  102      cout << setw(2) << i->first << ' ' << i->second << endl;
  103    }
  104  }
  105}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).