#include <PndMQExample1Sampler.h>
|
enum | { Text = FairMQDevice::Last,
Last
} |
|
PndMQExample1Sampler.h
- Since
- 2014-10-10
- Author
- A. Rybalchenko
Definition at line 22 of file PndMQExample1Sampler.h.
PndMQExample1Sampler::PndMQExample1Sampler |
( |
| ) |
|
PndMQExample1Sampler::~PndMQExample1Sampler |
( |
| ) |
|
|
virtual |
void PndMQExample1Sampler::CustomCleanup |
( |
void * |
data, |
|
|
void * |
hint |
|
) |
| |
|
static |
virtual std::string PndMQExample1Sampler::GetProperty |
( |
const int |
key, |
|
|
const std::string & |
default_ = "" |
|
) |
| |
|
virtual |
int PndMQExample1Sampler::GetProperty |
( |
const int |
key, |
|
|
const int |
default_ = 0 |
|
) |
| |
|
virtual |
void PndMQExample1Sampler::Run |
( |
| ) |
|
|
protectedvirtual |
Definition at line 35 of file PndMQExample1Sampler.cxx.
References CustomCleanup(), and fText.
37 while (CheckCurrentState(RUNNING))
39 boost::this_thread::sleep(boost::posix_time::milliseconds(1000));
41 string* text =
new string(
fText);
43 unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage(const_cast<char*>(text->c_str()), text->length(),
CustomCleanup, text));
45 LOG(INFO) <<
"Sending \"" <<
fText <<
"\"";
47 fChannels.at(
"data-out").at(0).Send(msg);
static void CustomCleanup(void *data, void *hint)
virtual void PndMQExample1Sampler::SetProperty |
( |
const int |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
virtual |
void PndMQExample1Sampler::SetProperty |
( |
const int |
key, |
|
|
const int |
value |
|
) |
| |
|
virtual |
std::string PndMQExample1Sampler::fText |
|
protected |
The documentation for this class was generated from the following files: