Go to the documentation of this file.
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();
93 data_type* p = in.
next();
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);
The template JSinglePointer class can be used to hold a pointer to an object.
Object iteration through ControlHost.
Utility class to parse command line options.
Implemenation of object output through ControlHost.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define DEBUG(A)
Message macros.
KM3NeT DAQ data structures and auxiliaries.
int main(int argc, char *argv[])
virtual bool hasNext()
Check availability of next element.
virtual const pointer_type & next()
Get next element.