PandaRoot
PndMQExample1Sampler.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 version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
15 #ifndef PNDMQEXAMPLE1SAMPLER_H_
16 #define PNDMQEXAMPLE1SAMPLER_H_
17 
18 #include <string>
19 
20 #include "FairMQDevice.h"
21 
22 class PndMQExample1Sampler : public FairMQDevice {
23  public:
24  enum { Text = FairMQDevice::Last, Last };
26  virtual ~PndMQExample1Sampler();
27 
28  static void CustomCleanup(void *data, void *hint);
29 
30  virtual void SetProperty(const int key, const std::string &value);
31  virtual std::string GetProperty(const int key, const std::string &default_ = "");
32  virtual void SetProperty(const int key, const int value);
33  virtual int GetProperty(const int key, const int default_ = 0);
34 
35  protected:
36  std::string fText;
37 
38  virtual void Run();
39 };
40 
41 #endif /* FAIRMQEXAMPLE1SAMPLER_H_ */
virtual void Run()
static void CustomCleanup(void *data, void *hint)
virtual ~PndMQExample1Sampler()
virtual void SetProperty(const int key, const std::string &value)
virtual std::string GetProperty(const int key, const std::string &default_="")