helics  3.5.2
ZmqBroker.h
1 /*
2 Copyright (c) 2017-2024,
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
Definition: NetworkBroker.hpp:18
Definition: ZmqBroker.h:32
ZmqBrokerSS(bool rootbroker=false) noexcept
Definition: ZmqBroker.cpp:35
Definition: ZmqBroker.h:18
ZmqBroker(bool rootbroker=false) noexcept
Definition: ZmqBroker.cpp:19
Definition: ZmqCommsSS.h:26
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14