FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
detectors
mvd
MvdOfflineTBAnalysis_Topix4
MQ
PndMQExample1Sink.cxx
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
#include <boost/thread.hpp>
16
#include <boost/bind.hpp>
17
#include <
PndMQExample1Sink.h
>
18
19
#include "FairMQLogger.h"
20
21
using namespace
std
;
22
23
PndMQExample1Sink::PndMQExample1Sink
()
24
{
25
}
26
27
void
PndMQExample1Sink::Run
()
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
}
41
42
PndMQExample1Sink::~PndMQExample1Sink
()
43
{
44
}
PndMQExample1Sink.h
std
Definition:
MvdMQ/run/runFileSampler.cxx:18
PndMQExample1Sink::PndMQExample1Sink
PndMQExample1Sink()
Definition:
PndMQExample1Sink.cxx:23
PndMQExample1Sink::~PndMQExample1Sink
virtual ~PndMQExample1Sink()
Definition:
PndMQExample1Sink.cxx:42
PndMQExample1Sink::Run
virtual void Run()
Definition:
PndMQExample1Sink.cxx:27
Generated on Sun Aug 18 2019 03:01:38 for FairRoot/PandaRoot by
1.8.8