FairMQ  1.3.9
C++ Message Passing Framework
FairMQSplitter.h
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 FAIRMQSPLITTER_H_
16 #define FAIRMQSPLITTER_H_
17 
18 #include "FairMQDevice.h"
19 
20 #include <string>
21 
23 {
24  public:
26  virtual ~FairMQSplitter();
27 
28  protected:
29  bool fMultipart;
30  int fNumOutputs;
31  int fDirection;
32  std::string fInChannelName;
33  std::string fOutChannelName;
34 
35  virtual void InitTask();
36 
37  bool HandleSingleData(std::unique_ptr<FairMQMessage>&, int);
38  bool HandleMultipartData(FairMQParts&, int);
39 };
40 
41 #endif /* FAIRMQSPLITTER_H_ */
FairMQParts is a lightweight convenience wrapper around a vector of unique pointers to FairMQMessage,...
Definition: FairMQParts.h:20
Definition: FairMQSplitter.h:22
Definition: FairMQDevice.h:46
virtual void InitTask()
Task initialization (can be overloaded in child classes)
Definition: FairMQSplitter.cxx:35

privacy