helics  2.8.1
ZmqCore.h
1 /*
2 Copyright (c) 2017-2021,
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 "../NetworkCore.hpp"
9 
10 #include <string>
11 namespace helics {
12 namespace zeromq {
13  class ZmqComms;
14  class ZmqCommsSS;
15 
17  class ZmqCore final: public NetworkCore<ZmqComms, interface_type::tcp> {
18  public:
20  ZmqCore() noexcept;
22  ZmqCore(const std::string& coreName);
23 
24  private:
25  virtual bool brokerConnect() override;
26  };
27 
29  class ZmqCoreSS final: public NetworkCore<ZmqCommsSS, interface_type::tcp> {
30  public:
32  ZmqCoreSS() noexcept;
34  ZmqCoreSS(const std::string& coreName);
35 
36  private:
37  virtual bool brokerConnect() override;
38  };
39 
40 } // namespace zeromq
41 } // namespace helics
helics::NetworkBrokerData::server_mode
server_mode_options server_mode
setup a server mode
Definition: NetworkBrokerData.hpp:69
ZmqContextManager::startContext
static void startContext(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:58
helics::NetworkBrokerData::appendNameToAddress
bool appendNameToAddress
flag indicating that the name should be appended to the address
Definition: NetworkBrokerData.hpp:64
helics::NetworkCore< ZmqComms, interface_type::tcp >::netInfo
NetworkBrokerData netInfo
structure containing the networking information
Definition: NetworkCore.hpp:31
helics::zeromq::ZmqCoreSS
Definition: ZmqCore.h:29
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
helics::NetworkCore
Definition: NetworkCore.hpp:18
helics::zeromq::ZmqCore::ZmqCore
ZmqCore() noexcept
Definition: ZmqCore.cpp:19
helics::zeromq::ZmqCoreSS::ZmqCoreSS
ZmqCoreSS() noexcept
Definition: ZmqCore.cpp:35
helics::zeromq::ZmqCore
Definition: ZmqCore.h:17
helics::NetworkCore::brokerConnect
virtual bool brokerConnect() override
Definition: NetworkCore_impl.hpp:47