PhoenixSwarm  6.1.0
Persistent processing programs exchanging data over sockets
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
16
21
22
24PUncastableBool 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
35
40
41
42
43
44
#define SWARM_SLOT(X)
Call a phoenix slot.
Definition BaseDaemon.h:36
void initialisationDaemonSlot()
Initialisation function of the class DaemonSlot.
virtual void addCallMethod()
Add all call Daemon.
virtual ~DaemonSlot()
Destructor of DaemonSlot.
DaemonSlot()
Default constructor of DaemonSlot.
PUncastableBool processInt(const int &value)
Method which process int and will be called on subscription.
bool addDataCallableMethod(PUncastableBool(&function)(const _Data &), size_t nbBin, float histLowerBound, float histUpperBound)
Definition BaseDaemon.h:105
Simple, default backend of the Daemon to manage Socket and Clock.