23     bool equals(
const __A__& 
object)
 const 
   25       return this->value == 
object.value;
 
   28     friend std::ostream& 
operator<<(std::ostream& out, 
const __A__& 
object)
 
   30       return out << 
object.value;
 
   44     bool equals(
const __B__& 
object)
 const 
   46       return this->value == 
object.value;
 
   49     bool equals(
const int value)
 const 
   51       return this->value == value;
 
   54     friend std::ostream& 
operator<<(std::ostream& out, 
const __B__& 
object)
 
   56       return out << 
object.value;
 
   70 #define PRINT(OUT,OP,A,B) \ 
   71   OUT << "(" << A << ") " << #OP " (" << B << ") => " << (A OP B) << std::endl;
 
   80 int main(
int argc, 
char **argv)
 
   89     JParser<> zap(
"Example program to test object comparisons.");
 
   95   catch(
const exception &error) {
 
   96     FATAL(error.what() << endl);
 
  102   PRINT(cout, ==, a1, a2);
 
  103   PRINT(cout, !=, a1, a2);
 
  108   PRINT(cout, ==, b1, b1);
 
  109   PRINT(cout, !=, b1, b2);
 
  110   PRINT(cout, ==, b1, 1);
 
  111   PRINT(cout, !=, b1, 1);
 
int main(int argc, char **argv)
 
#define PRINT(OUT, OP, A, B)
Print.
 
General purpose messaging.
 
#define ASSERT(A,...)
Assert macro.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Utility class to parse command line options.
 
bool equals(const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
Check equality.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Template definition of auxiliary base class for comparison of data structures.