FairMQ/examples/MQ/5-req-rep/FairMQExample5Server.h
2018-05-02 16:12:57 +02:00

36 lines
1.1 KiB
C++

/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
/**
* FairMQExample5Server.h
*
* @since 2014-10-10
* @author A. Rybalchenko
*/
#ifndef FAIRMQEXAMPLE5SERVER_H_
#define FAIRMQEXAMPLE5SERVER_H_
#include "FairMQDevice.h"
class FairMQExample5Server : public FairMQDevice
{
public:
FairMQExample5Server();
virtual ~FairMQExample5Server();
protected:
virtual void InitTask();
bool HandleData(FairMQMessagePtr&, int);
private:
uint64_t fMaxIterations;
uint64_t fNumIterations;
};
#endif /* FAIRMQEXAMPLE5SERVER_H_ */