helics  3.5.2
InprocComms.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 
9 #include "../CommsInterface.hpp"
10 #include "helics/helics-config.h"
11 
12 #include <future>
13 #include <set>
14 #include <string>
15 
16 namespace helics {
17 namespace inproc {
19  class InprocComms final: public CommsInterface {
20  public:
22  InprocComms();
24  ~InprocComms();
25 
26  virtual void loadNetworkInfo(const NetworkBrokerData& netInfo) override;
27 
28  private:
29  virtual void queue_rx_function() override;
30  virtual void queue_tx_function() override;
31  public:
33  int getPort() const { return -1; }
34 
35  std::string getAddress() const;
36  };
37 
38 } // namespace inproc
39 } // namespace helics
Definition: CommsInterface.hpp:25
Definition: NetworkBrokerData.hpp:23
Definition: InprocComms.h:19
virtual void loadNetworkInfo(const NetworkBrokerData &netInfo) override
Definition: InprocComms.cpp:32
int getPort() const
Definition: InprocComms.h:33
~InprocComms()
Definition: InprocComms.cpp:27
InprocComms()
Definition: InprocComms.cpp:24
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14