FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMQProcessorTask.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 FAIRMQPROCESSORTASK_H_
16 #define FAIRMQPROCESSORTASK_H_
17 
18 #include "FairTask.h"
19 
20 #include <FairMQMessage.h>
21 
23 {
24  public:
28 
29  virtual ~FairMQProcessorTask();
30 
31  virtual void Exec(Option_t* opt = "0");
32 
33  void SetPayload(std::unique_ptr<FairMQMessage>& msg);
34  void GetPayload(std::unique_ptr<FairMQMessage>& msg);
35 
36  protected:
37  std::unique_ptr<FairMQMessage> fPayload;
38 };
39 
40 #endif /* FAIRMQPROCESSORTASK_H_ */
std::unique_ptr< FairMQMessage > fPayload
void GetPayload(std::unique_ptr< FairMQMessage > &msg)
FairMQProcessorTask operator=(const FairMQProcessorTask &)=delete
virtual void Exec(Option_t *opt="0")
void SetPayload(std::unique_ptr< FairMQMessage > &msg)