SNode.C
|
#include <SocketContextUpgradeFactorySelector.h>
Classes | |
struct | SocketContextPlugin |
Public Types | |
using | SocketContextUpgradeFactory = SocketContextUpgradeFactoryT |
using | Request = typename SocketContextUpgradeFactory::Request |
using | Response = typename SocketContextUpgradeFactory::Response |
Public Member Functions | |
virtual SocketContextUpgradeFactory * | select (Request &req, Response &res)=0 |
bool | add (SocketContextUpgradeFactory *socketContextUpgradeFactory) |
void | link (const std::string &socketContextUpgradeName, SocketContextUpgradeFactory *(*linkedPlugin)()) |
void | allowDlOpen () |
void | unload (SocketContextUpgradeFactory *socketContextUpgradeFactory) |
Protected Member Functions | |
SocketContextUpgradeFactorySelector ()=default | |
virtual | ~SocketContextUpgradeFactorySelector ()=default |
SocketContextUpgradeFactory * | select (const std::string &socketContextUpgradeName) |
virtual SocketContextUpgradeFactory * | load (const std::string &socketContextUpgradeName)=0 |
SocketContextUpgradeFactory * | load (const std::string &socketContextUpgradeName, const std::string &socketContextUpgradeFactoryLibraryFile, const std::string &socketContextUpgradeFactoryFunctionName) |
bool | add (SocketContextUpgradeFactory *socketContextUpgradeFactory, void *handler) |
Private Attributes | |
std::map< std::string, SocketContextPlugin > | socketContextUpgradePlugins |
std::map< std::string, SocketContextUpgradeFactory *(*)()> | linkedSocketContextUpgradePlugins |
bool | onlyLinked = false |
Definition at line 35 of file SocketContextUpgradeFactorySelector.h.
using web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::Request = typename SocketContextUpgradeFactory::Request |
Definition at line 38 of file SocketContextUpgradeFactorySelector.h.
using web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::Response = typename SocketContextUpgradeFactory::Response |
Definition at line 39 of file SocketContextUpgradeFactorySelector.h.
using web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::SocketContextUpgradeFactory = SocketContextUpgradeFactoryT |
Definition at line 37 of file SocketContextUpgradeFactorySelector.h.
|
protecteddefault |
|
protectedvirtualdefault |
bool web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactory >::add | ( | SocketContextUpgradeFactory * | socketContextUpgradeFactory | ) |
Definition at line 51 of file SocketContextUpgradeFactorySelector.hpp.
|
protected |
Definition at line 38 of file SocketContextUpgradeFactorySelector.hpp.
void web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactory >::allowDlOpen | ( | ) |
Definition at line 56 of file SocketContextUpgradeFactorySelector.hpp.
void web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactory >::link | ( | const std::string & | socketContextUpgradeName, |
SocketContextUpgradeFactory *(* | linkedPlugin )() ) |
Definition at line 117 of file SocketContextUpgradeFactorySelector.hpp.
|
protectedpure virtual |
|
protected |
Definition at line 62 of file SocketContextUpgradeFactorySelector.hpp.
|
protected |
Definition at line 101 of file SocketContextUpgradeFactorySelector.hpp.
|
pure virtual |
void web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactory >::unload | ( | SocketContextUpgradeFactory * | socketContextUpgradeFactory | ) |
Definition at line 128 of file SocketContextUpgradeFactorySelector.hpp.
|
private |
Definition at line 75 of file SocketContextUpgradeFactorySelector.h.
|
private |
Definition at line 77 of file SocketContextUpgradeFactorySelector.h.
|
private |
Definition at line 74 of file SocketContextUpgradeFactorySelector.h.