uls.cpp
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 // This file is part of FZIs ic_workspace.
00005 //
00006 // This program is free software licensed under the LGPL
00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
00008 // You can find a copy of this license in LICENSE folder in the top
00009 // directory of the source code.
00010 //
00011 // © Copyright 2014 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
00014 
00015 //----------------------------------------------------------------------
00022 //----------------------------------------------------------------------
00023 
00024 #include <QtCore/QCoreApplication>
00025 #include <QtCore/QString>
00026 
00027 #include <icl_core/tString.h>
00028 #include <icl_core_config/Config.h>
00029 
00030 #include "UdpLoggingServer.h"
00031 
00032 int main(int argc, char *argv[])
00033 {
00034   icl_core::config::addParameter(
00035     icl_core::config::ConfigParameter("filename:", "f", "/Filename",
00036                                        "The filename of the log database."));
00037   icl_core::config::initialize(argc, argv);
00038   icl_core::String db_filename;
00039   if (!icl_core::config::get<icl_core::String>("/Filename", db_filename))
00040   {
00041     std::cerr << "No database file specified!" << std::endl << std::endl;
00042     icl_core::config::Getopt::instance().printHelp();
00043     return 1;
00044   }
00045 
00046   QCoreApplication app(argc, argv);
00047   UdpLoggingServer uls(QString::fromStdString(db_filename));
00048   return app.exec();
00049 }


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Fri Aug 28 2015 12:59:19