| helics 3.6.1

ZmqBroker.h
1 /*
2 Copyright (c) 2017-2025,
3 Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4 Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5 SPDX-License-Identifier: BSD-3-Clause
6 */
7 #pragma once
8 #include "../NetworkBroker.hpp"
9
10 #include <string>
11 namespace helics {
12 namespace zeromq {
13 class ZmqComms;
14 class ZmqCommsSS;
15
17 class ZmqBroker final:
18 public NetworkBroker<ZmqComms, gmlc::networking::InterfaceTypes::TCP, 1> {
19 public:
21 explicit ZmqBroker(bool rootbroker = false) noexcept;
23 explicit ZmqBroker(std::string_view brokerName);
24
25 private:
26 virtual bool brokerConnect() override;
27 };
28
29 class ZmqCommsSS;
31 class ZmqBrokerSS final:
32 public NetworkBroker<ZmqCommsSS, gmlc::networking::InterfaceTypes::TCP, 1> {
33 public:
35 explicit ZmqBrokerSS(bool rootbroker = false) noexcept;
37 explicit ZmqBrokerSS(std::string_view broker_name);
38
39 private:
40 virtual bool brokerConnect() override;
41 };
42
43 } // namespace zeromq
44 } // namespace helics
helics::NetworkBroker
Definition: NetworkBroker.hpp:18
helics::zeromq::ZmqBrokerSS
Definition: ZmqBroker.h:32
helics::zeromq::ZmqBrokerSS::ZmqBrokerSS
ZmqBrokerSS(bool rootbroker=false) noexcept
Definition: ZmqBroker.cpp:35
helics::zeromq::ZmqBroker
Definition: ZmqBroker.h:18
helics::zeromq::ZmqBroker::ZmqBroker
ZmqBroker(bool rootbroker=false) noexcept
Definition: ZmqBroker.cpp:19
helics::zeromq::ZmqCommsSS
Definition: ZmqCommsSS.h:26
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14