| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | |||
| 8 | #include "DaemonSlot.h" | ||
| 9 | |||
| 10 | ///Default constructor of DaemonSlot | ||
| 11 | 1 | DaemonSlot::DaemonSlot() | |
| 12 | 1 | :Daemon<DaemonEmptyBackend>() | |
| 13 | { | ||
| 14 | 1 | initialisationDaemonSlot(); | |
| 15 | 1 | } | |
| 16 | |||
| 17 | ///Destructor of DaemonSlot | ||
| 18 | 1 | DaemonSlot::~DaemonSlot(){ | |
| 19 | |||
| 20 | 1 | } | |
| 21 | |||
| 22 | |||
| 23 | ///Method which process int and will be called on subscription | ||
| 24 | 1 | PUncastableBool DaemonSlot::processInt(const int & value){ | |
| 25 | //Let's do something | ||
| 26 | 1 | std::cout << "DaemonSlot::processInt : we are processing an int" << std::endl; | |
| 27 | //I do not know what it was, but is was OK | ||
| 28 | 1 | return UNCASTABLE_TRUE; | |
| 29 | } | ||
| 30 | |||
| 31 | ///Add all call Daemon | ||
| 32 | 1 | void DaemonSlot::addCallMethod(){ | |
| 33 | 1 | addDataCallableMethod(SWARM_SLOT(processInt), *this, 10lu, 0.0, 1e6); | |
| 34 | 1 | } | |
| 35 | |||
| 36 | ///Initialisation function of the class DaemonSlot | ||
| 37 | 1 | void DaemonSlot::initialisationDaemonSlot(){ | |
| 38 | |||
| 39 | 1 | } | |
| 40 | |||
| 41 | |||
| 42 | |||
| 43 | |||
| 44 | |||
| 45 |