18int main(
int argc,
char **argv)
28 JParser<> zap(
"Example program to test color printing.");
30 zap[
'F'] =
make_field(facet) = get_keys(color_facets);
35 catch(
const exception &error) {
36 FATAL(error.what() << endl);
39 cout.imbue(locale(cout.getloc(), color_facets[facet]->clone()));
41 cout << RED <<
"red" << RESET << endl;
42 cout << GREEN <<
"green" << RESET << endl;
43 cout << BLUE <<
"blue" << RESET << endl;
44 cout << WHITE <<
"white" << RESET << endl;
45 cout << CYAN <<
"cyan" << RESET << endl;
46 cout << PURPLE <<
"purple" << RESET << endl;
47 cout << YELLOW <<
"yellow" << RESET << endl;
48 cout << BOLD <<
"bold" << RESET << endl;
int main(int argc, char **argv)
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).