CbmRoot
Loading...
Searching...
No Matches
ParameterMQServer.h
Go to the documentation of this file.
1/********************************************************************************
2 * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3 * *
4 * This software is distributed under the terms of the *
5 * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6 * copied verbatim in the file "LICENSE" *
7 ********************************************************************************/
15#ifndef PARAMETERMQSERVER_H_
16#define PARAMETERMQSERVER_H_
17
18#include "FairMQDevice.h"
19
20#include <string>
21
22class FairRuntimeDb;
23class CbmSetup;
24
25class ParameterMQServer : public FairMQDevice {
26public:
28
31
32 virtual ~ParameterMQServer();
33
34 virtual void Run();
35 virtual void InitTask();
36
37 void SetFirstInputName(const std::string& firstInputName) { fFirstInputName = firstInputName; }
38 std::string GetFirstInputName() { return fFirstInputName; }
39 void SetFirstInputType(const std::string& firstInputType) { fFirstInputType = firstInputType; }
40 std::string GetFirstInputType() { return fFirstInputType; }
41 void SetSecondInputName(const std::string& secondInputName) { fSecondInputName = secondInputName; }
42 std::string GetSecondInputName() { return fSecondInputName; }
43 void SetSecondInputType(const std::string& secondInputType) { fSecondInputType = secondInputType; }
44 std::string GetSecondInputType() { return fSecondInputType; }
45 void SetOutputName(const std::string& outputName) { fOutputName = outputName; }
46 std::string GetOutputName() { return fOutputName; }
47 void SetOutputType(const std::string& outputType) { fOutputType = outputType; }
48 std::string GetOutputType() { return fOutputType; }
49
50 void SetChannelName(const std::string& channelName) { fChannelName = channelName; }
51 std::string GetChannelName() { return fChannelName; }
52
53private:
54 FairRuntimeDb* fRtdb = nullptr;
55 CbmSetup* fSetup = nullptr;
56
57 std::string fFirstInputName = "first_input.root";
58 std::string fFirstInputType = "ROOT";
59 std::string fSecondInputName = "";
60 std::string fSecondInputType = "ROOT";
61 std::string fOutputName = "";
62 std::string fOutputType = "ROOT";
63
64 std::string fChannelName = "data";
65
66 std::string fsSetupName = "";
67};
68
69#endif /* PARAMETERMQSERVER_H_ */
void SetSecondInputName(const std::string &secondInputName)
std::string GetSecondInputName()
ParameterMQServer operator=(const ParameterMQServer &)=delete
void SetChannelName(const std::string &channelName)
FairRuntimeDb * fRtdb
void SetOutputName(const std::string &outputName)
std::string GetOutputName()
std::string GetFirstInputType()
std::string GetChannelName()
std::string fSecondInputName
std::string GetSecondInputType()
std::string fFirstInputName
std::string fFirstInputType
std::string fSecondInputType
void SetOutputType(const std::string &outputType)
virtual void InitTask()
void SetFirstInputName(const std::string &firstInputName)
void SetFirstInputType(const std::string &firstInputType)
std::string GetOutputType()
ParameterMQServer(const ParameterMQServer &)=delete
std::string GetFirstInputName()
void SetSecondInputType(const std::string &secondInputType)