#include <iostream>
#include <string>
#include <cassert>
#include <JRuncontrol/JDAQClient.hh>
#include <JLogger/JControlHostLogger.hh>
#include <JLogger/JMessageLogger.hh>
#include <JDAQ/JDAQTags.hh>
#include <CLBInterface/data_input_interface.hh>
#include <FrameFactory/frame_farm.hh>
#include <DFInterface/DFInterface.hh>
#include "debug_abrt.hh"
#include "log.hh"
#include <boost/program_options.hpp>
#include <boost/foreach.hpp>
#include <boost/scoped_ptr.hpp>
#include "configure.hh"
#include "version.hpp"
 
Go to the source code of this file.
 | 
|    | KM3NETDAQ | 
|   | KM3NeT DAQ data structures and auxiliaries. 
  | 
|   | 
◆ initLogger()
◆ setLogLevel()
      
        
          | void setLogLevel  | 
          ( | 
          int  | 
          level | ) | 
           | 
        
      
 
 
◆ monitor()
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 309 of file DataQueue.cc.
  311   __debug_abort_on_wrong_size_<CLBCommonHeader>(40);
 
  312   __debug_abort_on_wrong_size_<DAQCommonHeader>(56);
 
  313   __debug_abort_on_wrong_size_<UTCTime>(8);
 
  315   std::string server(
"localhost");
 
  316   std::string logger(
"localhost");
 
  317   std::string client_name(
"DataQueue");
 
  320   po::options_description desc(
"Options");
 
  322       (
"help,h", 
"Print this help and exit.")
 
  323       (
"version,v", 
"Print the version and exit.")
 
  324       (
"optical,o", 
"Set the optical mode.")
 
  325       (
"acoustic,a", 
"Set the acoustic mode.")
 
  327           po::value<std::string>(&server)->default_value(server),
 
  328           "Set the address of the SM server.")
 
  330           po::value<std::string>(&logger)->default_value(logger),
 
  331           "Set the address of the logger server.")
 
  333           po::value<std::string>(&client_name)->default_value(client_name),
 
  334           "Set the address of the client name.")
 
  337           "Set the debug level.");
 
  339   bool acou = 
false, opto = 
false;
 
  343     po::variables_map vm;
 
  345         po::command_line_parser(argc, argv).options(desc).run(),
 
  348     if (vm.count(
"help"))
 
  350       std::cout << desc << std::endl;
 
  354     if (vm.count(
"version"))
 
  362     opto = vm.count(
"optical");
 
  364     acou = vm.count(
"acoustic");
 
  366     if (! (acou || opto))
 
  368       throw std::runtime_error(
"FATAL: no mode specified. Use -o, -a or both. See the help.");
 
  371   catch (
const po::error& e)
 
  373     std::cerr << 
"DataQueue: Error: " << e.what() << 
'\n' 
  374               << desc << std::endl;
 
  377   catch (
const std::runtime_error& e)
 
  379     std::cerr << 
"DataQueue: Error: " << e.what() << 
'\n' 
  380               << desc << std::endl;
 
  400   dqueue.setClockInterval(30*1000*1000);