 |
helics
3.0.1
|
10 #include "TypedBrokerServer.hpp"
28 explicit WebServer(std::string server_name): name_(std::move(server_name)) {}
30 virtual void startServer(
const Json::Value* val)
override;
34 virtual void processArgs(
const std::string& args)
override;
43 std::atomic<bool> running{
false};
44 std::shared_ptr<IocWrapper> context;
45 std::thread mainLoopThread;
46 std::mutex threadGuard;
48 const Json::Value* config{
nullptr};
49 const std::string name_;
51 std::string httpAddress_{
"127.0.0.1"};
53 std::string websocketAddress_{
"127.0.0.1"};
54 int websocketPort_{8080};
55 bool http_enabled_{
false};
56 bool websocket_enabled_{
false};
57 std::atomic<bool> executing{
false};
constexpr Time timeZero
Definition: helicsTime.hpp:31
virtual void clearTimeBarrier()=0
std::vector< std::shared_ptr< Broker > > getAllBrokers()
Definition: BrokerFactory.cpp:220
CoreType
Definition: CoreTypes.hpp:36
std::shared_ptr< Broker > findBroker(const std::string &brokerName)
Definition: BrokerFactory.cpp:182
std::shared_ptr< Broker > getConnectedBroker()
Definition: BrokerFactory.cpp:203
void enableWebSocketServer(bool enabled)
Definition: helicsWebServer.hpp:38
virtual void startServer(const Json::Value *val) override
Definition: helicsWebServer.cpp:917
@ DEFAULT
ZMQ if available or UDP.
virtual void setTimeBarrier(Time barrierTime)=0
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
Definition: helicsWebServer.hpp:25
virtual void disconnect()=0
Definition: TypedBrokerServer.hpp:24
virtual std::string query(const std::string &target, const std::string &queryStr, HelicsSequencingModes mode=HELICS_SEQUENCING_MODE_FAST)=0
std::shared_ptr< Broker > create(CoreType type, const std::string &configureString)
Definition: BrokerFactory.cpp:98
virtual void processArgs(const std::string &args) override
Definition: helicsWebServer.cpp:891
void enableHttpServer(bool enabled)
Definition: helicsWebServer.hpp:36
virtual void stopServer() override
Definition: helicsWebServer.cpp:938