FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 (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 #include <string>
20 
21 class FairRuntimeDb;
22 
23 class ParameterMQServer : public FairMQDevice
24 {
25  public:
27 
28  ParameterMQServer(const ParameterMQServer&) = delete;
30 
31  virtual ~ParameterMQServer();
32 
33  virtual void InitTask();
34  virtual void Init();
35  bool ProcessRequest(FairMQMessagePtr&, int);
36  bool ProcessUpdate(FairMQMessagePtr&, int);
37 
38  void SetFirstInputName(const std::string& firstInputName) { fFirstInputName = firstInputName; }
39  std::string GetFirstInputName() { return fFirstInputName; }
40  void SetFirstInputType(const std::string& firstInputType) { fFirstInputType = firstInputType; }
41  std::string GetFirstInputType() { return fFirstInputType; }
42  void SetSecondInputName(const std::string& secondInputName) { fSecondInputName = secondInputName; }
43  std::string GetSecondInputName() { return fSecondInputName; }
44  void SetSecondInputType(const std::string& secondInputType) { fSecondInputType = secondInputType; }
45  std::string GetSecondInputType() { return fSecondInputType; }
46  void SetOutputName(const std::string& outputName) { fOutputName = outputName; }
47  std::string GetOutputName() { return fOutputName; }
48  void SetOutputType(const std::string& outputType) { fOutputType = outputType; }
49  std::string GetOutputType() { return fOutputType; }
50 
51  void SetChannelName(const std::string& channelName) { fRequestChannelName = channelName; }
52  std::string GetChannelName() { return fRequestChannelName; }
53 
54  void SetUpdateChannelName(const std::string& channelName) { fUpdateChannelName = channelName; }
55  std::string GetUpdateChannelName() { return fUpdateChannelName; }
56 
57  private:
58  FairRuntimeDb* fRtdb;
59  int fRunId;
60  int fNofSimDevices;
61 
62  std::string fFirstInputName;
63  std::string fFirstInputType;
64  std::string fSecondInputName;
65  std::string fSecondInputType;
66  std::string fOutputName;
67  std::string fOutputType;
68 
69  std::string fRequestChannelName;
70  std::string fUpdateChannelName;
71 };
72 
73 #endif /* PARAMETERMQSERVER_H_ */
list of container factories
Definition: FairRuntimeDb.h:24
std::string GetChannelName()
void SetFirstInputType(const std::string &firstInputType)
bool ProcessUpdate(FairMQMessagePtr &, int)
std::string GetSecondInputType()
std::string GetSecondInputName()
std::string GetFirstInputName()
std::string GetOutputName()
std::string GetFirstInputType()
void SetSecondInputType(const std::string &secondInputType)
virtual void InitTask()
void SetOutputName(const std::string &outputName)
std::string GetUpdateChannelName()
void SetChannelName(const std::string &channelName)
ParameterMQServer operator=(const ParameterMQServer &)=delete
void SetOutputType(const std::string &outputType)
void SetSecondInputName(const std::string &secondInputName)
void SetUpdateChannelName(const std::string &channelName)
bool ProcessRequest(FairMQMessagePtr &, int)
void SetFirstInputName(const std::string &firstInputName)
std::string GetOutputType()