foxglove_bridge_base
include
foxglove_bridge
server_factory.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <memory>
4
#include <string>
5
6
#include <websocketpp/common/connection_hdl.hpp>
7
8
#include "
common.hpp
"
9
#include "
server_interface.hpp
"
10
11
namespace
foxglove
{
12
13
class
ServerFactory
{
14
public
:
15
template
<
typename
ConnectionHandle>
16
static
std::unique_ptr<ServerInterface<ConnectionHandle>>
createServer
(
17
const
std::string& name,
const
std::function<
void
(
WebSocketLogLevel
,
char
const
*)>& logHandler,
18
const
ServerOptions
& options);
19
};
20
21
}
// namespace foxglove
server_interface.hpp
foxglove::ServerFactory::createServer
static std::unique_ptr< ServerInterface< ConnectionHandle > > createServer(const std::string &name, const std::function< void(WebSocketLogLevel, char const *)> &logHandler, const ServerOptions &options)
foxglove::ServerFactory
Definition:
server_factory.hpp:13
foxglove::ServerOptions
Definition:
server_interface.hpp:45
common.hpp
foxglove
Definition:
base64.hpp:8
foxglove::WebSocketLogLevel
WebSocketLogLevel
Definition:
common.hpp:41
foxglove_bridge
Author(s): Foxglove
autogenerated on Mon Jul 3 2023 02:12:22