21 int main(
int argc,
char* argv[])
25 string message_logger;
33 JParser<> zap(
"Example program to test message scheduling.");
35 zap[
'M'] =
make_field(message_logger) =
"localhost";
43 catch(
const exception &error) {
44 FATAL(error.what() << endl);
62 for (
int i = 0; i != numberOfMessages; ++i) {
64 cout <<
"sleep [s] " << i * log_s << endl;
66 usleep(i * log_s * 1000000);
68 for (
int i = 0; i != numberOfMessages; ++i) {
General purpose message reporting.
int main(int argc, char *argv[])
Message reporting compatible with STL output stream operations.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Message logging based on ControlHost.
Interface for logging messages.
Message logger with time scheduler.
void setCredit(const int credit)
Set credit.
Message logging based on std::ostream.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).