mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 01:51:45 +00:00
Zero MQ implimentation and example (Tutorial3)
git-svn-id: https://subversion.gsi.de/fairroot/fairbase/trunk@20162 0381ead4-6506-0410-b988-94b70fbc4730
This commit is contained in:
37
fairmq/FairMQSamplerTask.h
Normal file
37
fairmq/FairMQSamplerTask.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* FairMQSamplerTask.h
|
||||
*
|
||||
* Created on: Nov 22, 2012
|
||||
* Author: dklein
|
||||
*/
|
||||
|
||||
#ifndef FAIRMQSAMPLERTASK_H_
|
||||
#define FAIRMQSAMPLERTASK_H_
|
||||
|
||||
#include "FairTask.h"
|
||||
#include <vector>
|
||||
#include "TClonesArray.h"
|
||||
#include <string>
|
||||
#include "FairMQMessage.h"
|
||||
#include "TString.h"
|
||||
|
||||
|
||||
class FairMQSamplerTask: public FairTask
|
||||
{
|
||||
public:
|
||||
FairMQSamplerTask();
|
||||
FairMQSamplerTask(const Text_t* name, Int_t iVerbose=1);
|
||||
virtual ~FairMQSamplerTask();
|
||||
virtual InitStatus Init();
|
||||
virtual void Exec(Option_t* opt) = 0;
|
||||
void SetBranch(TString branch);
|
||||
void SetMessageSize(Int_t size);
|
||||
std::vector<FairMQMessage*> *GetOutput();
|
||||
protected:
|
||||
TClonesArray* fInput;
|
||||
TString fBranch;
|
||||
Int_t fMessageSize;
|
||||
std::vector<FairMQMessage*> *fOutput;
|
||||
};
|
||||
|
||||
#endif /* FAIRMQSAMPLERTASK_H_ */
|
Reference in New Issue
Block a user