various fixes

* fix include paths
* print on stderr
This commit is contained in:
Dennis Klein 2017-03-28 14:48:08 +02:00 committed by Mohammad Al-Turany
parent 13c9c09ab9
commit 365a68010f
17 changed files with 45 additions and 93 deletions

View File

@ -30,13 +30,13 @@
#include "FairMQSocket.h"
#include "FairMQDevice.h"
#include "FairMQLogger.h"
#include "FairMQTools.h"
#include "tools/FairMQTools.h"
#include "FairMQProgOptions.h"
#include "FairMQTransportFactoryZMQ.h"
#include "FairMQTransportFactorySHM.h"
#include "options/FairMQProgOptions.h"
#include "zeromq/FairMQTransportFactoryZMQ.h"
#include "shmem/FairMQTransportFactorySHM.h"
#ifdef NANOMSG_FOUND
#include "FairMQTransportFactoryNN.h"
#include "nanomsg/FairMQTransportFactoryNN.h"
#endif
using namespace std;

View File

@ -12,13 +12,14 @@
* @author D. Klein, A. Rybalchenko
*/
#include "FairMQBenchmarkSampler.h"
#include <vector>
#include <chrono>
#include <thread>
#include "FairMQBenchmarkSampler.h"
#include "FairMQLogger.h"
#include "FairMQProgOptions.h"
#include "../FairMQLogger.h"
#include "../options/FairMQProgOptions.h"
using namespace std;

View File

@ -12,10 +12,10 @@
* @author D. Klein, A. Rybalchenko
*/
#include "FairMQLogger.h"
#include "FairMQMerger.h"
#include "FairMQPoller.h"
#include "FairMQProgOptions.h"
#include "../FairMQLogger.h"
#include "../FairMQPoller.h"
#include "../options/FairMQProgOptions.h"
using namespace std;

View File

@ -6,9 +6,10 @@
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#include "FairMQLogger.h"
#include "FairMQMultiplier.h"
#include "FairMQProgOptions.h"
#include "../FairMQLogger.h"
#include "../options/FairMQProgOptions.h"
using namespace std;

View File

@ -12,9 +12,10 @@
* @author A. Rybalchenko
*/
#include "FairMQLogger.h"
#include "FairMQProxy.h"
#include "FairMQProgOptions.h"
#include "../FairMQLogger.h"
#include "../options/FairMQProgOptions.h"
using namespace std;

View File

@ -12,11 +12,12 @@
* @author D. Klein, A. Rybalchenko
*/
#include "FairMQSink.h"
#include <chrono>
#include "FairMQSink.h"
#include "FairMQLogger.h"
#include "FairMQProgOptions.h"
#include "../FairMQLogger.h"
#include "../options/FairMQProgOptions.h"
using namespace std;

View File

@ -12,9 +12,10 @@
* @author D. Klein, A. Rybalchenko
*/
#include "FairMQLogger.h"
#include "FairMQSplitter.h"
#include "FairMQProgOptions.h"
#include "../FairMQLogger.h"
#include "../options/FairMQProgOptions.h"
using namespace std;

View File

@ -1,53 +0,0 @@
################################################################################
# Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH #
# #
# This software is distributed under the terms of the #
# GNU Lesser General Public Licence version 3 (LGPL) version 3, #
# copied verbatim in the file "LICENSE" #
################################################################################
# Create a library
set(INCLUDE_DIRECTORIES
${CMAKE_SOURCE_DIR}/fairmq/logger
${CMAKE_SOURCE_DIR}/fairmq/logger/run
)
include_directories(${INCLUDE_DIRECTORIES})
set(SYSTEM_INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIR})
include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
set(LINK_DIRECTORIES ${Boost_LIBRARY_DIRS})
link_directories(${LINK_DIRECTORIES})
set(SRCS logger.cxx)
set(LIBRARY_NAME fairmq_logger)
set(DEPENDENCIES
${Boost_LOG_LIBRARY}
${Boost_LOG_SETUP_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_DATE_TIME_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_SYSTEM_LIBRARY}
pthread
)
install(FILES logger.h logger_def.h DESTINATION include/logger)
if("${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}" VERSION_LESS "1.56")
install(FILES fairroot_null_deleter.h DESTINATION include/logger)
endif()
GENERATE_LIBRARY()
# generate test executable
set(EXE_NAME runtestLogger)
set(SRCS run/testLogger.cxx)
set(DEPENDENCIES fairmq_logger)
GENERATE_EXECUTABLE()

View File

@ -1,13 +1,13 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2017 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
* GNU Lesser General Public Licence (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#include "runFairMQDevice.h"
#include "FairMQBenchmarkSampler.h"
#include <runFairMQDevice.h>
#include <devices/FairMQBenchmarkSampler.h>
namespace bpo = boost::program_options;

View File

@ -6,8 +6,8 @@
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#include "runFairMQDevice.h"
#include "FairMQMerger.h"
#include <runFairMQDevice.h>
#include <devices/FairMQMerger.h>
namespace bpo = boost::program_options;

View File

@ -6,8 +6,8 @@
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#include "runFairMQDevice.h"
#include "FairMQMultiplier.h"
#include <runFairMQDevice.h>
#include <devices/FairMQMultiplier.h>
namespace bpo = boost::program_options;

View File

@ -6,8 +6,8 @@
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#include "runFairMQDevice.h"
#include "FairMQProxy.h"
#include <runFairMQDevice.h>
#include <devices/FairMQProxy.h>
namespace bpo = boost::program_options;

View File

@ -6,8 +6,8 @@
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#include "runFairMQDevice.h"
#include "FairMQSink.h"
#include <runFairMQDevice.h>
#include <devices/FairMQSink.h>
namespace bpo = boost::program_options;

View File

@ -6,8 +6,8 @@
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#include "runFairMQDevice.h"
#include "FairMQSplitter.h"
#include <runFairMQDevice.h>
#include <devices/FairMQSplitter.h>
namespace bpo = boost::program_options;

View File

@ -9,9 +9,9 @@
#include <boost/program_options.hpp>
#include "FairMQLogger.h"
#include "FairMQProgOptions.h"
#include "options/FairMQProgOptions.h"
#include "FairMQDevice.h"
#include "runSimpleMQStateMachine.h"
#include "tools/runSimpleMQStateMachine.h"
template <typename R>
class GenericFairMQDevice : public FairMQDevice

View File

@ -48,11 +48,11 @@ FairMQContextSHM::~FairMQContextSHM()
if (boost::interprocess::shared_memory_object::remove("FairMQSharedMemory"))
{
printf("Successfully removed shared memory after the device has stopped.\n");
fprintf(stderr, "Successfully removed shared memory after the device has stopped.\n");
}
else
{
printf("Did not remove shared memory after the device stopped. Already removed?\n");
fprintf(stderr, "Did not remove shared memory after the device stopped. Already removed?\n");
}
}

View File

@ -11,8 +11,8 @@
#include "FairMQLogger.h"
#include "FairMQConfigPlugin.h"
#include "FairMQControlPlugin.h"
#include "FairMQParser.h"
#include "FairMQProgOptions.h"
#include "options/FairMQParser.h"
#include "options/FairMQProgOptions.h"
#include <iostream>
#include <string>