FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | List of all members
PndMQExample1Sink Class Reference

#include <PndMQExample1Sink.h>

Inheritance diagram for PndMQExample1Sink:

Public Member Functions

 PndMQExample1Sink ()
 
virtual ~PndMQExample1Sink ()
 

Protected Member Functions

virtual void Run ()
 

Detailed Description

PndMQExample1Sink.h

Since
2014-10-10
Author
A. Rybalchenko

Definition at line 20 of file PndMQExample1Sink.h.

Constructor & Destructor Documentation

PndMQExample1Sink::PndMQExample1Sink ( )

Definition at line 23 of file PndMQExample1Sink.cxx.

24 {
25 }
PndMQExample1Sink::~PndMQExample1Sink ( )
virtual

Definition at line 42 of file PndMQExample1Sink.cxx.

43 {
44 }

Member Function Documentation

void PndMQExample1Sink::Run ( )
protectedvirtual

Definition at line 27 of file PndMQExample1Sink.cxx.

28 {
29  while (CheckCurrentState(RUNNING))
30  {
31  unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage());
32 
33  if (fChannels.at("data-in").at(0).Receive(msg) > 0)
34  {
35  LOG(INFO) << "Received message: \""
36  << string(static_cast<char*>(msg->GetData()), msg->GetSize())
37  << "\"";
38  }
39  }
40 }

The documentation for this class was generated from the following files: