FairRoot/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 {
24  public:
25  enum
26  {
27  Text = FairMQDevice::Last,
29  };
31  virtual ~PndMQExample1Sampler();
32 
33  static void CustomCleanup(void* data, void* hint);
34 
35  virtual void SetProperty(const int key, const std::string& value);
36  virtual std::string GetProperty(const int key, const std::string& default_ = "");
37  virtual void SetProperty(const int key, const int value);
38  virtual int GetProperty(const int key, const int default_ = 0);
39 
40  protected:
41  std::string fText;
42 
43  virtual void Run();
44 };
45 
46 #endif /* FAIRMQEXAMPLE1SAMPLER_H_ */
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_="")