/******************************************************************************** * 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" * ********************************************************************************/ /** * PndMQExample1Sampler.h * * @since 2014-10-10 * @author A. Rybalchenko */ #ifndef PNDMQEXAMPLE1SAMPLER_H_ #define PNDMQEXAMPLE1SAMPLER_H_ #include #include "FairMQDevice.h" class PndMQExample1Sampler : public FairMQDevice { public: enum { Text = FairMQDevice::Last, Last }; PndMQExample1Sampler(); virtual ~PndMQExample1Sampler(); static void CustomCleanup(void* data, void* hint); virtual void SetProperty(const int key, const std::string& value); virtual std::string GetProperty(const int key, const std::string& default_ = ""); virtual void SetProperty(const int key, const int value); virtual int GetProperty(const int key, const int default_ = 0); protected: std::string fText; virtual void Run(); }; #endif /* FAIRMQEXAMPLE1SAMPLER_H_ */