CbmRoot
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 <string>
19 
20 #include "FairMQDevice.h"
21 
22 class FairRuntimeDb;
23 
24 class ParameterMQServer : public FairMQDevice {
25 public:
27 
30 
31  virtual ~ParameterMQServer();
32 
33  virtual void Run();
34  virtual void InitTask();
35 
36  void SetFirstInputName(const std::string& firstInputName) {
37  fFirstInputName = firstInputName;
38  }
39  std::string GetFirstInputName() { return fFirstInputName; }
40  void SetFirstInputType(const std::string& firstInputType) {
41  fFirstInputType = firstInputType;
42  }
43  std::string GetFirstInputType() { return fFirstInputType; }
44  void SetSecondInputName(const std::string& secondInputName) {
45  fSecondInputName = secondInputName;
46  }
47  std::string GetSecondInputName() { return fSecondInputName; }
48  void SetSecondInputType(const std::string& secondInputType) {
49  fSecondInputType = secondInputType;
50  }
51  std::string GetSecondInputType() { return fSecondInputType; }
52  void SetOutputName(const std::string& outputName) {
53  fOutputName = outputName;
54  }
55  std::string GetOutputName() { return fOutputName; }
56  void SetOutputType(const std::string& outputType) {
57  fOutputType = outputType;
58  }
59  std::string GetOutputType() { return fOutputType; }
60 
61  void SetChannelName(const std::string& channelName) {
62  fChannelName = channelName;
63  }
64  std::string GetChannelName() { return fChannelName; }
65 
66 private:
67  FairRuntimeDb* fRtdb;
68 
69  std::string fFirstInputName;
70  std::string fFirstInputType;
71  std::string fSecondInputName;
72  std::string fSecondInputType;
73  std::string fOutputName;
74  std::string fOutputType;
75 
76  std::string fChannelName;
77 };
78 
79 #endif /* PARAMETERMQSERVER_H_ */
ParameterMQServer::GetChannelName
std::string GetChannelName()
Definition: ParameterMQServer.h:64
ParameterMQServer::SetFirstInputType
void SetFirstInputType(const std::string &firstInputType)
Definition: ParameterMQServer.h:40
ParameterMQServer
Definition: ParameterMQServer.h:24
ParameterMQServer::fSecondInputName
std::string fSecondInputName
Definition: ParameterMQServer.h:71
ParameterMQServer::GetSecondInputName
std::string GetSecondInputName()
Definition: ParameterMQServer.h:47
ParameterMQServer::Run
virtual void Run()
Definition: ParameterMQServer.cxx:143
ParameterMQServer::fRtdb
FairRuntimeDb * fRtdb
Definition: ParameterMQServer.h:67
ParameterMQServer::GetFirstInputName
std::string GetFirstInputName()
Definition: ParameterMQServer.h:39
ParameterMQServer::GetSecondInputType
std::string GetSecondInputType()
Definition: ParameterMQServer.h:51
ParameterMQServer::ParameterMQServer
ParameterMQServer(const ParameterMQServer &)=delete
ParameterMQServer::fChannelName
std::string fChannelName
Definition: ParameterMQServer.h:76
ParameterMQServer::GetOutputName
std::string GetOutputName()
Definition: ParameterMQServer.h:55
ParameterMQServer::fSecondInputType
std::string fSecondInputType
Definition: ParameterMQServer.h:72
ParameterMQServer::~ParameterMQServer
virtual ~ParameterMQServer()
Definition: ParameterMQServer.cxx:204
ParameterMQServer::fFirstInputType
std::string fFirstInputType
Definition: ParameterMQServer.h:70
ParameterMQServer::SetSecondInputType
void SetSecondInputType(const std::string &secondInputType)
Definition: ParameterMQServer.h:48
ParameterMQServer::InitTask
virtual void InitTask()
Definition: ParameterMQServer.cxx:46
ParameterMQServer::SetOutputName
void SetOutputName(const std::string &outputName)
Definition: ParameterMQServer.h:52
ParameterMQServer::GetFirstInputType
std::string GetFirstInputType()
Definition: ParameterMQServer.h:43
ParameterMQServer::fFirstInputName
std::string fFirstInputName
Definition: ParameterMQServer.h:69
ParameterMQServer::SetSecondInputName
void SetSecondInputName(const std::string &secondInputName)
Definition: ParameterMQServer.h:44
ParameterMQServer::SetFirstInputName
void SetFirstInputName(const std::string &firstInputName)
Definition: ParameterMQServer.h:36
ParameterMQServer::fOutputName
std::string fOutputName
Definition: ParameterMQServer.h:73
ParameterMQServer::SetChannelName
void SetChannelName(const std::string &channelName)
Definition: ParameterMQServer.h:61
ParameterMQServer::operator=
ParameterMQServer operator=(const ParameterMQServer &)=delete
ParameterMQServer::SetOutputType
void SetOutputType(const std::string &outputType)
Definition: ParameterMQServer.h:56
ParameterMQServer::ParameterMQServer
ParameterMQServer()
Definition: ParameterMQServer.cxx:36
ParameterMQServer::fOutputType
std::string fOutputType
Definition: ParameterMQServer.h:74
ParameterMQServer::GetOutputType
std::string GetOutputType()
Definition: ParameterMQServer.h:59