PhoenixSwarm
6.1.0
Persistent processing programs exchanging data over sockets
Toggle main menu visibility
Loading...
Searching...
No Matches
DaemonSlot.cpp
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : LGPL-3.0-only
5
****************************************/
6
7
8
#include "
DaemonSlot.h
"
9
11
DaemonSlot::DaemonSlot
()
12
:
Daemon
<
DaemonEmptyBackend
>()
13
{
14
initialisationDaemonSlot
();
15
}
16
18
DaemonSlot::~DaemonSlot
(){
19
20
}
21
22
24
PUncastableBool
DaemonSlot::processInt
(
const
int
& value){
25
//Let's do something
26
std::cout <<
"DaemonSlot::processInt : we are processing an int"
<< std::endl;
27
//I do not know what it was, but is was OK
28
return
UNCASTABLE_TRUE;
29
}
30
32
void
DaemonSlot::addCallMethod
(){
33
addDataCallableMethod
(
SWARM_SLOT
(
processInt
), *
this
, 10lu, 0.0, 1e6);
34
}
35
37
void
DaemonSlot::initialisationDaemonSlot
(){
38
39
}
40
41
42
43
44
SWARM_SLOT
#define SWARM_SLOT(X)
Call a phoenix slot.
Definition
BaseDaemon.h:36
DaemonSlot.h
DaemonSlot::initialisationDaemonSlot
void initialisationDaemonSlot()
Initialisation function of the class DaemonSlot.
Definition
DaemonSlot.cpp:37
DaemonSlot::addCallMethod
virtual void addCallMethod()
Add all call Daemon.
Definition
DaemonSlot.cpp:32
DaemonSlot::~DaemonSlot
virtual ~DaemonSlot()
Destructor of DaemonSlot.
Definition
DaemonSlot.cpp:18
DaemonSlot::DaemonSlot
DaemonSlot()
Default constructor of DaemonSlot.
Definition
DaemonSlot.cpp:11
DaemonSlot::processInt
PUncastableBool processInt(const int &value)
Method which process int and will be called on subscription.
Definition
DaemonSlot.cpp:24
Swarm::Daemon< DaemonEmptyBackend >::addDataCallableMethod
bool addDataCallableMethod(PUncastableBool(&function)(const _Data &), size_t nbBin, float histLowerBound, float histUpperBound)
Definition
BaseDaemon.h:105
Swarm::Daemon< DaemonEmptyBackend >::Daemon
Daemon()
Definition
Daemon_impl.h:17
DaemonEmptyBackend
Simple, default backend of the Daemon to manage Socket and Clock.
Definition
DaemonEmptyBackend.h:16
platex
TESTS
TEST_FUNCTIONS
TEST_DATA_PROCESSING
DaemonSlot.cpp
Generated by
1.18.0