24 int main(
int argc,
const char *argv[])
36 JParser<> zap(
"Auxiliary program to receive messages from ControlHost server.");
49 catch(
const exception &error) {
50 FATAL(error.what() << endl);
54 if (tagList.empty() && TagList.empty()) {
55 FATAL(
"No tags specified.");
60 JControlHost::Throw(
true);
64 JControlHost
in(hostname);
67 JSubscriptionList buffer;
70 buffer.add(JSubscriptionAny(*i));
74 buffer.add(JSubscriptionAll(*i));
85 for (
const string stop(
"stop"); buffer.size() !=
stop.size() || string(buffer.data(),
stop.size()) !=
stop; ) {
89 buffer.resize(prefix.getSize());
91 in.GetFullData(buffer.data(), buffer.size());
97 cout << left << setw(8) << prefix.getTag() <<
' ' << right << setw(8) << prefix.getSize();
99 if (TagList.find(prefix) != TagList.end()) {
100 cout <<
' ' << string(buffer.data(), buffer.size());
106 catch(
const JControlHostException& error) {
107 ERROR(error << endl);
Utility class to parse command line options.
int main(int argc, char *argv[])
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
static JDateAndTime getDateAndTime
Function object to get ASCII formatted date and time.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
Utility class to parse command line options.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
then print u2 $script< option > print u2 Possible stop