8#ifndef _HELPERCHANNEL_H
9#define _HELPERCHANNEL_H
15#include <unordered_set>
30 void run(std::stop_token st);
50 std::unordered_set<std::string>
keys;
std::string key
This key must be unique on the server on which it is plugged.
Definition Channel.h:98
Channel(const std::string &key)
Constructor of the Channel's class.
void removeChannelKey(const std::string &key)
Used as a callback which listen to the "ServerChannelUnplug" group.
void run(std::stop_token st)
Run method of the Channel, process the given events.
void addChannelKey(const std::string &key)
Used as a callback which listen to the "ServerChannelPlug" group.
HelperChannel(const std::string &key, const std::string &logKey="logChannel", bool doLogging=true)
Constructor of the HelperChannel.
std::unordered_set< std::string > keys
Keep the keys of the plugged channels.
Definition HelperChannel.h:50
std::string logKey
Key of the log channel's group.
Definition HelperChannel.h:60
bool logging
Tells if the channel is supposed to log.
Definition HelperChannel.h:55