Jpp
master_rocky-37-gf0c5bc59d
the software that should make you happy
software
DataQueue
DFInterface
DFInterface.hh
Go to the documentation of this file.
1
#ifndef DFINTERFACE_HH
2
#define DFINTERFACE_HH
3
4
#include <boost/atomic.hpp>
5
#include "
recipients_handler.hh
"
6
#include <
FrameFactory/frame_farm.hh
>
7
8
/**
9
* \author cpellegrino
10
*/
11
12
class
DFInterface
13
{
14
boost::atomic<bool>
status
;
15
16
RecipientsHandler
&
m_recipients
;
17
18
FrameFarm
&
m_farm
;
19
20
public
:
21
22
DFInterface
(
FrameFarm
& FF,
RecipientsHandler
& recipients)
23
:
24
m_recipients
(recipients),
25
m_farm
(FF)
26
{
27
status
=
true
;
28
}
29
30
void
operator ()
();
31
32
void
stop
()
33
{
34
status
=
false
;
35
}
36
37
bool
isRunning
()
38
{
39
return
status
.load();
40
}
41
};
42
43
#endif
// DFINTERFACE_HH
DFInterface
Definition:
DFInterface.hh:13
DFInterface::m_farm
FrameFarm & m_farm
Definition:
DFInterface.hh:18
DFInterface::stop
void stop()
Definition:
DFInterface.hh:32
DFInterface::status
boost::atomic< bool > status
Definition:
DFInterface.hh:14
DFInterface::isRunning
bool isRunning()
Definition:
DFInterface.hh:37
DFInterface::operator()
void operator()()
Definition:
DFInterface.cc:8
DFInterface::DFInterface
DFInterface(FrameFarm &FF, RecipientsHandler &recipients)
Definition:
DFInterface.hh:22
DFInterface::m_recipients
RecipientsHandler & m_recipients
Definition:
DFInterface.hh:16
FrameFarm
Definition:
frame_farm.hh:24
RecipientsHandler
Definition:
recipients_handler.hh:18
frame_farm.hh
recipients_handler.hh
Generated by
1.9.1