#include <WebServiceNotifier.hpp>
|
virtual void | handle_pipe () |
| The base class register the pipe_ socket to its reactor_ so that this function is called when the pipe_ is available from reading. More...
|
|
virtual void | handle_control () |
| Handle called when a message on the module's control socket arrives. More...
|
|
virtual void | dump_additional_config (zmqpp::message *out) const |
| Dump additional configuration (for example module specific config file). More...
|
|
void | dump_config (ConfigManager::ConfigFormat fmt, zmqpp::message *out_msg) const |
| Fills a message with the module's configuration information. More...
|
|
void | config_check (const std::string &obj_name, Leosac::Hardware::DeviceClass type) |
| An helper that checks configuration the existence of some objects. More...
|
|
void | config_check (const std::string &obj_name) |
| An helper that checks configuration the existence of some objects. More...
|
|
zmqpp::context & | ctx_ |
| A reference to the ZeroMQ context in case you need it to create additional socket. More...
|
|
zmqpp::socket & | pipe_ |
| A reference to the pair socket that link back to the module manager. More...
|
|
boost::property_tree::ptree | config_ |
| The configuration tree passed to the start_module function. More...
|
|
CoreUtilsPtr | utils_ |
| Pointer to the core utils, which gives access to scheduler and others. More...
|
|
bool | is_running_ |
| Boolean indicating whether the main loop should run or not. More...
|
|
zmqpp::socket | control_ |
| Control REP socket. More...
|
|
zmqpp::reactor | reactor_ |
| The reactor object we poll() on in the main loop. More...
|
|
std::string | name_ |
|
Definition at line 32 of file WebServiceNotifier.hpp.
◆ WebServiceNotifier()
WebServiceNotifier::WebServiceNotifier |
( |
zmqpp::context & |
ctx, |
|
|
zmqpp::socket * |
pipe, |
|
|
const boost::property_tree::ptree & |
cfg, |
|
|
CoreUtilsPtr |
utils |
|
) |
| |
◆ ~WebServiceNotifier()
WebServiceNotifier::~WebServiceNotifier |
( |
| ) |
|
◆ handle_msg_bus()
void WebServiceNotifier::handle_msg_bus |
( |
| ) |
|
|
private |
◆ process_config()
void WebServiceNotifier::process_config |
( |
| ) |
|
|
private |
◆ send_card_info_to_remote()
void WebServiceNotifier::send_card_info_to_remote |
( |
const std::string & |
auth_source, |
|
|
const std::string & |
card, |
|
|
int |
nb_bits |
|
) |
| |
|
private |
Send an HTTP request to the remote webservice to let it know a card was read.
Definition at line 108 of file WebServiceNotifier.cpp.
◆ send_to_target()
void WebServiceNotifier::send_to_target |
( |
void * |
curl, |
|
|
const std::string & |
auth_source, |
|
|
const Cred::RFIDCard & |
card, |
|
|
const TargetInfo & |
target |
|
) |
| |
|
privatenoexcept |
◆ bus_sub_
zmqpp::socket Leosac::Module::WSNotifier::WebServiceNotifier::bus_sub_ |
|
private |
◆ targets_
std::vector<TargetInfo> Leosac::Module::WSNotifier::WebServiceNotifier::targets_ |
|
private |
The documentation for this class was generated from the following files: