#include <iostream>
#include <string>
#include <cassert>
#include "version.hpp"
#include <JRuncontrol/JDAQClient.hh>
#include <JLogger/JControlHostLogger.hh>
#include <JLogger/JMessageLogger.hh>
#include <JDAQ/JDAQTags.hh>
#include <boost/asio.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/program_options.hpp>
#include "configure.hpp"
 
Go to the source code of this file.
 | 
|   | KM3NETDAQ | 
|   | KM3NeT DAQ data structures and auxiliaries. 
  | 
|   | 
 | 
| int  | main (int argc, char *argv[]) | 
|   | 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 144 of file monrouter.cpp.
  146   std::string server(
"localhost");
 
  147   std::string logger(
"localhost");
 
  148   std::string client_name(
"MonRouter");
 
  152   po::options_description desc(
"Options");
 
  154       (
"help,h", 
"Print this help and exit.")
 
  155       (
"version,v", 
"Print the version and exit.")
 
  158         , po::value<std::string>(&server)->default_value(server)
 
  159         , 
"Set the address of the SM server." 
  163         , po::value<std::string>(&logger)->default_value(logger)
 
  164         , 
"Set the address of the logger server." 
  168         , po::value<std::string>(&client_name)->default_value(client_name)
 
  169         , 
"Set the address of the client name." 
  173         , po::value<int>(&port)->required()
 
  174         , 
"Set the UDP port to read data from" 
  178         , po::value<int>(&debug)->default_value(debug)
 
  179         , 
"Set the debug level." 
  183     po::variables_map vm;
 
  185         po::command_line_parser(argc, argv).
options(desc).run(),
 
  189     if (vm.count(
"help")) {
 
  190       std::cout << desc << std::endl;
 
  194     if (vm.count(
"version")) {
 
  200   } 
catch (
const po::error& e) {
 
  201     std::cerr << 
"MonRouter: Error: " << e.what() << 
'\n' 
  202               << desc << std::endl;
 
  204   } 
catch (
const std::runtime_error& e) {
 
  205     std::cerr << 
"MonRouter: Error: " << e.what() << 
'\n' 
  206               << desc << std::endl;
 
Message logging based on ControlHost. 
 
then print u2 $script< option > print u2 Possible options
 
void store(const JString &file_name, const JDetector &detector)
Store detector to output file.