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));
 
   77       in.MyId(
"JGetMessage");
 
   86     for (
const string stop(
"stop"); buffer.size() != 
stop.size() || string(buffer.data(), 
stop.size()) != 
stop; ) {
 
   90       buffer.resize(prefix.getSize());
 
   92       in.GetFullData(buffer.data(), buffer.size());
 
   98       cout << left << setw(8) << prefix.getTag() << 
' ' << right << setw(8) << prefix.getSize();
 
  100       if (TagList.find(prefix) != TagList.end()) {
 
  101         cout << 
' ' << string(buffer.data(), buffer.size());
 
  107   catch(
const JControlHostException& error) {
 
  108     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)...
 
then usage $script[port]< option > nPossible stop
 
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