![]() |
Ark Server API (ASE) - Wiki
|
A PrivateKeyFactoryMgr manages all existing PrivateKeyFactories. More...
#include <PrivateKeyFactoryMgr.h>
Public Types | |
| using | FactoriesMap = std::map<std::string, Poco::SharedPtr<PrivateKeyFactory>> |
Public Member Functions | |
| PrivateKeyFactoryMgr () | |
| ~PrivateKeyFactoryMgr () | |
| Creates the PrivateKeyFactoryMgr. | |
| void | setFactory (const std::string &name, PrivateKeyFactory *pFactory) |
| Destroys the PrivateKeyFactoryMgr. | |
| bool | hasFactory (const std::string &name) const |
| const PrivateKeyFactory * | getFactory (const std::string &name) const |
| Returns true if for the given name a factory is already registered. | |
| void | removeFactory (const std::string &name) |
| Returns NULL if for the given name a factory does not exist, otherwise the factory is returned. | |
Private Attributes | |
| FactoriesMap | _factories |
| Removes the factory from the manager. | |
A PrivateKeyFactoryMgr manages all existing PrivateKeyFactories.
Definition at line 31 of file PrivateKeyFactoryMgr.h.
| using Poco::Net::PrivateKeyFactoryMgr::FactoriesMap = std::map<std::string, Poco::SharedPtr<PrivateKeyFactory>> |
Definition at line 35 of file PrivateKeyFactoryMgr.h.
| Poco::Net::PrivateKeyFactoryMgr::PrivateKeyFactoryMgr | ( | ) |
| Poco::Net::PrivateKeyFactoryMgr::~PrivateKeyFactoryMgr | ( | ) |
Creates the PrivateKeyFactoryMgr.
| const PrivateKeyFactory * Poco::Net::PrivateKeyFactoryMgr::getFactory | ( | const std::string & | name | ) | const |
Returns true if for the given name a factory is already registered.
| bool Poco::Net::PrivateKeyFactoryMgr::hasFactory | ( | const std::string & | name | ) | const |
Registers the factory. Class takes ownership of the pointer. If a factory with the same name already exists, an exception is thrown.
| void Poco::Net::PrivateKeyFactoryMgr::removeFactory | ( | const std::string & | name | ) |
Returns NULL if for the given name a factory does not exist, otherwise the factory is returned.
| void Poco::Net::PrivateKeyFactoryMgr::setFactory | ( | const std::string & | name, |
| PrivateKeyFactory * | pFactory ) |
Destroys the PrivateKeyFactoryMgr.
|
private |
Removes the factory from the manager.
Definition at line 57 of file PrivateKeyFactoryMgr.h.