13 static const double A_MIN = -999.0;
14 static const double A_MAX = +999.0;
34 friend inline bool operator==(
const __A__& first,
const __A__& second)
36 return first.a == second.a;
46 friend inline std::ostream&
operator<<(std::ostream& out,
const __A__&
object)
48 return out <<
object.a;
51 static __A__ min() {
return __A__(A_MIN); }
52 static __A__ max() {
return __A__(A_MAX); }
66 inline void print(std::ostream& out,
const char* name)
71 out << setw(12) << left << name << ' ' << JLimits<T>::min() <<
' ' <<
JLimits<T>::max() << endl;
74 #define PRINT(OUT, CLASS) print<CLASS>(OUT, #CLASS)
84 int main(
int argc,
char**argv)
92 JParser<> zap(
"Example program to test zero values of non-primitive data types.");
98 catch(
const exception &error) {
99 FATAL(error.what() << endl);
108 PRINT(cout,
long double);
int main(int argc, char **argv)
#define PRINT(OUT, CLASS)
Definition of minimum and maximum values for any class.
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.
std::ostream & print(std::ostream &out, const JTestSummary &summary, const char delimiter=' ', const bool useColors=true)
Print test summary.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool operator==(Packet const &p, ID const &id)
Auxiliary class for minimum and maximum values for any class.