PhoenixSwarm  3.5.0
Library to ease communication between daemons
Loading...
Searching...
No Matches
BaseDaemon.h File Reference
#include <functional>
#include "OptionParser.h"
#include "parser_toml.h"
#include "PSocketFlag.h"
#include "PUncastableBool.h"
#include "daemon_config_exception.h"
#include "daemon_load_config.h"
#include "representation_def.h"
#include "FunctionCall.h"
#include "DataFunctionCall.h"
#include "DataFunctionClassCall.h"
+ Include dependency graph for BaseDaemon.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BaseDaemon
 Daemon which help communication between processes and thread. More...
 
struct  DaemonMainConfig
 Main Daemon configuration which drives timeouts and flags of send and recv calls. More...
 

Macros

#define SWARM_MAKE_SLOT(C, X, D)
 Make a callable slot for the application.
 
#define SWARM_SLOT(X)
 Call a phoenix slot.
 

Typedefs

typedef std::map< PString, std::map< PString, StatAccumulator > > MapDaemonStatAccumulator
 
typedef std::map< PString, StatAccumulatorMapStatAccumulator
 

Macro Definition Documentation

◆ SWARM_MAKE_SLOT

#define SWARM_MAKE_SLOT ( C,
X,
D )
Value:
static PUncastableBool slot_##X(C & self, const D & _data){\
return self.X(_data);\
}

Make a callable slot for the application.

Parameters
C: name of the class to define the slot
X: name of the method to be called with this slot
D: data to be used

Definition at line 29 of file BaseDaemon.h.

29#define SWARM_MAKE_SLOT(C,X,D) static PUncastableBool slot_##X(C & self, const D & _data){\
30 return self.X(_data);\
31}

◆ SWARM_SLOT

#define SWARM_SLOT ( X)
Value:
slot_##X

Call a phoenix slot.

Parameters
X: name of the base function to be called by the slot

Definition at line 36 of file BaseDaemon.h.

Typedef Documentation

◆ MapDaemonStatAccumulator

typedef std::map<PString, std::map<PString, StatAccumulator> > MapDaemonStatAccumulator

Definition at line 38 of file BaseDaemon.h.

◆ MapStatAccumulator

typedef std::map<PString, StatAccumulator> MapStatAccumulator

Definition at line 39 of file BaseDaemon.h.