Example program to test JLANG::JMultiEquals class.  
More...
#include <iostream>
#include <iomanip>
#include "JLang/JEquals.hh"
#include "JLang/JMultiEquals.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| #define  | PRINT(OUT,  OP,  A,  B) | 
|   | Print.  
  | 
|   | 
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JLANG::JMultiEquals class. 
- Author
 - mdejong 
 
Definition in file JMultiEquals.cc.
 
◆ PRINT
      
        
          | #define PRINT | 
          ( | 
           |           OUT,  | 
        
        
           | 
           | 
           |           OP,  | 
        
        
           | 
           | 
           |           A,  | 
        
        
           | 
           | 
           |           B ) | 
        
      
 
Value:  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 113 of file JMultiEquals.cc.
  113#define PRINT(OUT,OP,A,B) \
  114  OUT << "(" << A << ") " << #OP " (" << B << ") => " << (A OP B) << std::endl;
 
 
 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char ** |           argv ) | 
        
      
 
Definition at line 123 of file JMultiEquals.cc.
  124{
  127 
  129 
  130  try {
  131 
  132    JParser<> zap(
"Example program to test object comparisons.");
 
  133 
  135 
  136    zap(argc, argv);
  137  }
  138  catch(const exception &error) {
  139    FATAL(error.what() << endl);
 
  140  }
  141 
  143  __C__ c2(1,1);
  144  __C__ c3(0,1);
  145  __C__ c4(1,0);
  146 
  153 
  157 
  158  __D__ d1(1,1);
  159  __D__ d2(1,1);
  160  __D__ d3(0,1);
  161  __D__ d4(1,0);
  162 
  163  PRINT(cout, ==, d1, d2);
 
  164  PRINT(cout, !=, d1, d2);
 
  165  PRINT(cout, ==, d1, d3);
 
  166  PRINT(cout, !=, d1, d3);
 
  167  PRINT(cout, ==, d1, d4);
 
  168  PRINT(cout, !=, d1, d4);
 
  169 
  173  
  174  return 0;
  175}
TCanvas * c1
Global variables to handle mouse events.
 
#define ASSERT(A,...)
Assert macro.
 
#define PRINT(OUT, OP, A, B)
Print.
 
#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).