|
VLink
2.0.0
A high-performance communication middleware
|
Stateless factory contract that external recognized-transport plugins must implement. 更多...
#include <conf_plugin_interface.h>
Public 成员函数 | |
| virtual TransportType | get_transport_type () const =0 |
| Reports the transport identifier this plugin can produce confs for. 更多... | |
| virtual std::unique_ptr< Conf > | create () const =0 |
Allocates a fresh transport Conf instance. 更多... | |
Protected 成员函数 | |
| ConfPluginInterface ()=default | |
| virtual | ~ConfPluginInterface ()=default |
Stateless factory contract that external recognized-transport plugins must implement.
Subclasses are loaded from shared libraries by the VLink runtime when a URL uses a recognized transport that is not built in. The interface cannot register a new TransportType or URL scheme; it only supplies Conf instances for existing transport identifiers. It intentionally exposes only the two queries needed by Url::load_for_plugin(); plugin-specific state lives inside the Conf instances returned by create().
|
protecteddefault |
|
protectedvirtualdefault |
|
pure virtual |
|
pure virtual |
Reports the transport identifier this plugin can produce confs for.
Called by Url::load_for_plugin() to match URL transports to loaded plugins. The same identifier may be returned by at most one plugin.
TransportType value covered by this plugin.