Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::Net::PrivateKeyFactoryMgr Class Reference

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 PrivateKeyFactorygetFactory (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.
 

Detailed Description

A PrivateKeyFactoryMgr manages all existing PrivateKeyFactories.

Definition at line 31 of file PrivateKeyFactoryMgr.h.

Member Typedef Documentation

◆ FactoriesMap

Constructor & Destructor Documentation

◆ PrivateKeyFactoryMgr()

Poco::Net::PrivateKeyFactoryMgr::PrivateKeyFactoryMgr ( )

◆ ~PrivateKeyFactoryMgr()

Poco::Net::PrivateKeyFactoryMgr::~PrivateKeyFactoryMgr ( )

Creates the PrivateKeyFactoryMgr.

Member Function Documentation

◆ getFactory()

const PrivateKeyFactory * Poco::Net::PrivateKeyFactoryMgr::getFactory ( const std::string & name) const

Returns true if for the given name a factory is already registered.

◆ hasFactory()

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.

◆ removeFactory()

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.

◆ setFactory()

void Poco::Net::PrivateKeyFactoryMgr::setFactory ( const std::string & name,
PrivateKeyFactory * pFactory )

Destroys the PrivateKeyFactoryMgr.

Member Data Documentation

◆ _factories

FactoriesMap Poco::Net::PrivateKeyFactoryMgr::_factories
private

Removes the factory from the manager.

Definition at line 57 of file PrivateKeyFactoryMgr.h.


The documentation for this class was generated from the following file: