Example program to test JNET::JSubscription.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <sstream>
#include "JNet/JControlHost.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
Example program to test JNET::JSubscription.
- Author
- mdejong
Definition in file JSubscription.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 18 of file JSubscription.cc.
27 JParser<> zap(
"Example program to test JNET::JSubscription.");
33 catch(
const exception &error) {
34 FATAL(error.what() << endl);
44 const JTag tags[] = {
a, b, c };
45 const size_t N =
sizeof(tags)/
sizeof(tags[0]);
49 ASSERT(subscription->size() == N);
52 for (
size_t i = 0; i != N; ++i) {
56 ASSERT(subscription->size() == N);
59 for (
size_t i = 0; i != N; ++i) {
63 ASSERT(subscription->size() == N);
70 for (
size_t i = 0; i != N; ++i) {
74 ASSERT(subscription->size() == N);
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
std::set< JSubscription >::const_iterator const_iterator
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for all subscription.
Auxiliary class for any subscription.