Leosac  0.8.0
Open Source Access Control
Leosac::Module Namespace Reference

All modules that provides features to Leosac shall be in this namespace. More...

Namespaces

 Auth
 Authentication backend modules live here.
 
 Doorman
 Module that allows user to configure action to be taken to react to messages from other modules.
 
 EventPublish
 Module that publish wiegand auth event on a ZMQ publisher.
 
 Instrumentation
 The instrumentation expose some internal of the program through IPC.
 
 LedBuzzer
 Namespace where implementation of Led (or buzzer) support is done.
 
 Libgpiod
 Namespace for the module that implements GPIO support using the Linux Kernel libgpiod interface.
 
 Monitor
 A module that provide visual feedback to the end-user about system's activity.
 
 Mqtt
 Provide support for Mqtt.
 
 Notifd
 
 Piface
 Provide support for the piface digital device.
 
 Replication
 This module handles the master/slave replication process, from the slave point of view.
 
 Rpleth
 Namespace where implementation for Rpleth support takes place.
 
 SMTP
 
 SysFsGpio
 Namespace for the module that implements GPIO support using the Linux Kernel sysfs interface.
 
 TCPNotifier
 
 TestAndReset
 This module provide a way to have feedback when presenting a test card.
 
 WebSockAPI
 
 Wiegand
 Provide support for Wiegand devices.
 
 WSNotifier
 

Classes

class  AsioModule
 This is a base class for boost::asio 'aware' module. More...
 
class  BaseModule
 Base class for module implementation. More...
 
class  StdinControllerModule
 

Functions

template<typename UserModule >
bool start_module_helper (zmqpp::socket *pipe, boost::property_tree::ptree cfg, zmqpp::context &zmq_ctx, CoreUtilsPtr utils)
 This function template is a helper wrt writing the start_module function for every module. More...
 

Detailed Description

All modules that provides features to Leosac shall be in this namespace.

Function Documentation

◆ start_module_helper()

template<typename UserModule >
bool Leosac::Module::start_module_helper ( zmqpp::socket *  pipe,
boost::property_tree::ptree  cfg,
zmqpp::context &  zmq_ctx,
CoreUtilsPtr  utils 
)

This function template is a helper wrt writing the start_module function for every module.

This helper allows you to create a 1 line start_module function.

Definition at line 45 of file BaseModule.hpp.