Example program to test JLANG::JComparable class.  
More...
#include <iostream>
#include <iomanip>
#include "JLang/JComparable.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| #define  | PRINT(OUT,  OP,  A,  B)     OUT << "(" << A << ") " << #OP " (" << B << ") => " << (A OP B) << std::endl; | 
|   | Print.  More...
  | 
|   | 
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JLANG::JComparable class. 
- Author
 - mdejong 
 
Definition in file JComparable.cc.
 
◆ PRINT
      
        
          | #define PRINT | 
          ( | 
            | 
          OUT,  | 
        
        
           | 
           | 
            | 
          OP,  | 
        
        
           | 
           | 
            | 
          A,  | 
        
        
           | 
           | 
            | 
          B  | 
        
        
           | 
          ) | 
           |      OUT << "(" << A << ") " << #OP " (" << B << ") => " << (A OP B) << std::endl; | 
        
      
 
Print. 
- Parameters
 - 
  
    | OUT | output stream  | 
    | OP | operator  | 
    | A | first object  | 
    | B | second object  | 
  
   
Definition at line 75 of file JComparable.cc.
 
 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 85 of file JComparable.cc.
   94     JParser<> zap(
"Example program to test comparisons of objects.");
 
  100   catch(
const exception &error) {
 
  101     FATAL(error.what() << endl);
 
  108   PRINT(cout, ==, a1, a2);
 
  109   PRINT(cout, !=, a1, a2);
 
  110   PRINT(cout, <,  a1, a2);
 
  111   PRINT(cout, <=, a1, a2);
 
  112   PRINT(cout, >,  a1, a2);
 
  113   PRINT(cout, >=, a1, a2);
 
  118   PRINT(cout, ==, b1, b1);
 
  119   PRINT(cout, !=, b1, b2);
 
  120   PRINT(cout, <,  b1, b2);
 
  121   PRINT(cout, <=, b1, b2);
 
  122   PRINT(cout, >,  b1, b2);
 
  123   PRINT(cout, >=, b1, b2);
 
  125   PRINT(cout, ==, b1, 1);
 
  126   PRINT(cout, !=, b1, 1);
 
  127   PRINT(cout, <,  b1, 1);
 
  128   PRINT(cout, <=, b1, 1);
 
  129   PRINT(cout, >,  b1, 1);
 
  130   PRINT(cout, >=, b1, 1);
 
#define PRINT(OUT, OP, A, B)
Print.
 
#define ASSERT(A,...)
Assert macro.
 
#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).