25 int main(
int argc,
char* argv[])
37 JParser<> zap(
"Example program to distribute data through control host.");
45 catch(
const exception &error) {
46 FATAL(error.what() << endl);
52 if (destinations.empty()) {
53 FATAL(
"Destination is empty" << endl);
63 DEBUG(
"Connection " << *i <<
' ' << flush);
69 i = destinations.erase(i);
73 catch(
const exception& error) {
79 if (i == destinations.end()) {
81 i = destinations.begin();
95 DEBUG(
"I got data " << endl);
101 catch(
const exception& error) {
102 ERROR(error.what() << endl);
103 out = output.erase(out);
106 if (out == output.end()) {
107 out = output.begin();
111 catch(
const exception& error) {
112 ERROR(error.what() << endl);
int main(int argc, char *argv[])
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
virtual const pointer_type & next() override
Get next element.
virtual bool hasNext() override
Check availability of next element.
The template JSinglePointer class can be used to hold a pointer to an object.
Object iteration through ControlHost.
Implemenation of object output through ControlHost.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
std::vector< event_type > data_type
KM3NeT DAQ data structures and auxiliaries.
Data structure for measured coincidence rates of all pairs of PMTs in optical module.