Bus Messages 1.0
Bus Message Serialization Library
Loading...
Searching...
No Matches
businterfacefactory.h
Go to the documentation of this file.
1/*
2* Copyright 2025 Ingemar Hedvall
3* SPDX-License-Identifier: MIT
4*/
5
9#pragma once
10
11#include <memory>
12
14
15namespace bus {
16
30
37public:
46 static std::unique_ptr<IBusMessageBroker> CreateBroker(BrokerType type);
47};
48
49} // bus::interface
50
51
Factory class that create brokers/servers and clients.
Definition businterfacefactory.h:36
static std::unique_ptr< IBusMessageBroker > CreateBroker(BrokerType type)
Create a broker/server or client.
Defines an interface against borkers, servers and clients.
Main namespace for the MDF library.
Definition buslogstream.h:24
BrokerType
Defines the types of brokers/servers and clients the factory interface can create.
Definition businterfacefactory.h:21
@ SharedMemoryBrokerType
Shared memory broker.
Definition businterfacefactory.h:23
@ SharedMemoryServerType
Shared memory TX/RX server.
Definition businterfacefactory.h:24
@ TcpBrokerType
Shared memory broker with a TCP/IP server.
Definition businterfacefactory.h:26
@ TcpServerType
TCP/IP TX/RX server.
Definition businterfacefactory.h:27
@ SharedMemoryClientType
Shared memory TX/RX client.
Definition businterfacefactory.h:25
@ TcpClientType
TCP/IP TX/RX client.
Definition businterfacefactory.h:28
@ SimulateBrokerType
Only for internal test usage.
Definition businterfacefactory.h:22