From: <ro...@us...> - 2015-10-28 19:11:15
|
Revision: 5103 http://sourceforge.net/p/nscldaq/code/5103 Author: ron-fox Date: 2015-10-28 19:11:13 +0000 (Wed, 28 Oct 2015) Log Message: ----------- Compilete the dumpend program. Modified Paths: -------------- branches/nscldaq-11.0-variablemanager/utilities/dumpend/Makefile.am branches/nscldaq-11.0-variablemanager/utilities/dumpend/main.cpp Modified: branches/nscldaq-11.0-variablemanager/utilities/dumpend/Makefile.am =================================================================== --- branches/nscldaq-11.0-variablemanager/utilities/dumpend/Makefile.am 2015-10-28 18:50:10 UTC (rev 5102) +++ branches/nscldaq-11.0-variablemanager/utilities/dumpend/Makefile.am 2015-10-28 19:11:13 UTC (rev 5103) @@ -26,7 +26,7 @@ @srcdir@/options.h: @srcdir@/options.ggo $(GENGETOPT) < @srcdir@/options.ggo \ - --output-dir=@srcdir@ --file options --unamed-opts="OPTIONS" + --output-dir=@srcdir@ --file option --unamed-opts=FILE noinst_PROGRAMS=unittests @@ -45,4 +45,4 @@ EXTRA_DIST=options.ggo -TESTS=unittests \ No newline at end of file +TESTS=unittests Modified: branches/nscldaq-11.0-variablemanager/utilities/dumpend/main.cpp =================================================================== --- branches/nscldaq-11.0-variablemanager/utilities/dumpend/main.cpp 2015-10-28 18:50:10 UTC (rev 5102) +++ branches/nscldaq-11.0-variablemanager/utilities/dumpend/main.cpp 2015-10-28 19:11:13 UTC (rev 5103) @@ -1,6 +1,45 @@ -// stub to allow commit. +/** -int main(int argc, char** argv) { - return 0; -} +# This software is Copyright by the Board of Trustees of Michigan +# State University (c) Copyright 2013. +# +# You may use this software under the terms of the GNU public license +# (GPL). The terms of this license are described at: +# +# http://www.gnu.org/licenses/gpl.txt +# +# Author: +# Ron Fox +# NSCL +# Michigan State University +# East Lansing, MI 48824-1321 +## +# @file mian.cpp +# @brief entry point for the dumpend program. +# @author <fo...@ns...> +*/ + +#include "options.h" +#include "Application.h" +#include <iostream> +#include <unistd.h> +#include <stdlib.h> +/** + * main + * Entry point. Process the parameters, create an application functor and + * invoke it. + */ + +int main(int argc, char** argv) +{ + gengetopt_args_info info; + if (cmdline_parser(argc, argv, &info)) { + std::cerr << "Failed to parse the command line parameters\n"; + exit(EXIT_FAILURE); + } + + Application app(info); + app(); + exit(EXIT_SUCCESS); +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |