uls.cpp
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
22 //----------------------------------------------------------------------
23 
24 #include <QtCore/QCoreApplication>
25 #include <QtCore/QString>
26 
27 #include <icl_core/tString.h>
28 #include <icl_core_config/Config.h>
29 
30 #include "UdpLoggingServer.h"
31 
32 int main(int argc, char *argv[])
33 {
35  icl_core::config::ConfigParameter("filename:", "f", "/Filename",
36  "The filename of the log database."));
37  icl_core::config::initialize(argc, argv);
38  icl_core::String db_filename;
39  if (!icl_core::config::get<icl_core::String>("/Filename", db_filename))
40  {
41  std::cerr << "No database file specified!" << std::endl << std::endl;
43  return 1;
44  }
45 
46  QCoreApplication app(argc, argv);
47  UdpLoggingServer uls(QString::fromStdString(db_filename));
48  return app.exec();
49 }
bool initialize(int &argc, char *argv[], bool remove_read_arguments)
Definition: Config.cpp:50
int main(int argc, char *argv[])
Definition: uls.cpp:32
Base header file for the configuration framework.
ThreadStream & endl(ThreadStream &stream)
Definition: ThreadStream.h:249
void addParameter(const ConfigParameter &parameter)
Definition: Config.h:541
std::string String
Definition: BaseTypes.h:43
Contains mocos::tString.
static Getopt & instance()


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58