mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
Organize sockets as a map of vectors of FairMQChannels. Update FairMQStateMachine by removing SETTINGINPUT, SETTINGOUTPUT, BIND and CONNECT states and by adding INITIALIZING_TASK, RESETTING_TASK and RESETTING_DEVICE states. Run states functions in their own thread.
51 lines
1.7 KiB
C++
51 lines
1.7 KiB
C++
/********************************************************************************
|
|
* 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" *
|
|
********************************************************************************/
|
|
/**
|
|
* FairMQConfigurable.cxx
|
|
*
|
|
* @since 2012-10-25
|
|
* @author D. Klein, A. Rybalchenko
|
|
*/
|
|
|
|
#include "FairMQLogger.h"
|
|
#include "FairMQConfigurable.h"
|
|
|
|
using namespace std;
|
|
|
|
FairMQConfigurable::FairMQConfigurable()
|
|
{
|
|
}
|
|
|
|
void FairMQConfigurable::SetProperty(const int key, const string& value)
|
|
{
|
|
LOG(ERROR) << "Reached end of the property list. SetProperty(" << key << ", " << value << ") has no effect.";
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
|
|
string FairMQConfigurable::GetProperty(const int key, const string& default_ /*= ""*/)
|
|
{
|
|
LOG(ERROR) << "Reached end of the property list. The requested property " << key << " was not found.";
|
|
return default_;
|
|
}
|
|
|
|
void FairMQConfigurable::SetProperty(const int key, const int value)
|
|
{
|
|
LOG(ERROR) << "Reached end of the property list. SetProperty(" << key << ", " << value << ") has no effect.";
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
|
|
int FairMQConfigurable::GetProperty(const int key, const int default_ /*= 0*/)
|
|
{
|
|
LOG(ERROR) << "Reached end of the property list. The requested property " << key << " was not found.";
|
|
return default_;
|
|
}
|
|
|
|
FairMQConfigurable::~FairMQConfigurable()
|
|
{
|
|
}
|