![]() |
|
PhoenixSwarm
6.1.0
Persistent processing programs exchanging data over sockets
|
#include <iostream>#include <functional>#include "phoenix_assert.h"#include "phoenix_check.h"#include "Shadok.h"#include "ProcessClass.h"#include "Daemon.h"#include "DaemonSlot.h"#include "DaemonEmptyBackend.h"Go to the source code of this file.
Typedefs | |
| typedef Daemon< DaemonEmptyBackend > | TestDaemon |
Functions | |
| int | main (int argc, char **argv) |
| void | testBaseDaemonLoadConfig (const PPath &fileName) |
| Test the load configuration of a Daemon. | |
| void | testDaemonSlot () |
| Test the DaemonSlot. | |
| PUncastableBool | testIntProcessing (const int &value) |
| Process a Shadok. | |
| PUncastableBool | testShadokProcessing (const Shadok &shadok) |
| Process a Shadok. | |
| typedef Daemon<DaemonEmptyBackend> TestDaemon |
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 95 of file main.cpp.
References main(), testBaseDaemonLoadConfig(), and testDaemonSlot().
| void testBaseDaemonLoadConfig | ( | const PPath & | fileName | ) |
Test the load configuration of a Daemon.
| fileName | : name of the configuration toml file |
Definition at line 46 of file main.cpp.
References Swarm::BaseDaemon::addDataCallableMethod(), Swarm::BaseDaemon::getLog(), phoenix_createData(), Swarm::BaseDaemon::processData(), Shadok::setAge(), Swarm::Daemon< _TBackend >::setClockMode(), Shadok::setName(), Swarm::Daemon< _TBackend >::setSocketMode(), testBaseDaemonLoadConfig(), testIntProcessing(), and testShadokProcessing().
Referenced by main(), and testBaseDaemonLoadConfig().
| void testDaemonSlot | ( | ) |
Test the DaemonSlot.
Definition at line 82 of file main.cpp.
References DaemonSlot::addCallMethod(), Swarm::BaseDaemon::getLog(), phoenix_createData(), Swarm::BaseDaemon::processData(), Swarm::Daemon< _TBackend >::setClockMode(), Swarm::Daemon< _TBackend >::setSocketMode(), and testDaemonSlot().
Referenced by main(), and testDaemonSlot().
| PUncastableBool testIntProcessing | ( | const int & | value | ) |
Process a Shadok.
| shadok | : Shadok to be processed |
Definition at line 36 of file main.cpp.
References testIntProcessing().
Referenced by testBaseDaemonLoadConfig(), and testIntProcessing().
| PUncastableBool testShadokProcessing | ( | const Shadok & | shadok | ) |
Process a Shadok.
| shadok | : Shadok to be processed |
Definition at line 25 of file main.cpp.
References testShadokProcessing().
Referenced by testBaseDaemonLoadConfig(), and testShadokProcessing().