helics 3.7.0
Loading...
Searching...
No Matches
queryFunctions.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2017-2026,
3Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Energy
4Innovation LLC. See the top-level NOTICE for additional details. All rights reserved.
5SPDX-License-Identifier: BSD-3-Clause
6*/
7#pragma once
11#include "helics_cxx_export.h"
12
13#include <chrono>
14#include <string>
15#include <string_view>
16#include <vector>
17
18// forward declare Federate
19namespace helics {
20class Federate;
21
25HELICS_CXX_EXPORT std::vector<std::string> vectorizeQueryResult(std::string_view queryres);
29HELICS_CXX_EXPORT std::vector<std::string> vectorizeQueryResult(std::string_view queryres);
30
34HELICS_CXX_EXPORT std::vector<int> vectorizeIndexQuery(std::string_view queryres);
35
39HELICS_CXX_EXPORT std::vector<std::string> vectorizeAndSortQueryResult(std::string_view queryres);
43HELICS_CXX_EXPORT std::vector<std::string> vectorizeAndSortQueryResult(std::string_view queryres);
44
53HELICS_CXX_EXPORT bool
55 std::string_view fedName,
56 std::chrono::milliseconds timeout = std::chrono::milliseconds(10000));
57
65HELICS_CXX_EXPORT bool
67 std::string_view fedName,
68 std::chrono::milliseconds timeout = std::chrono::milliseconds(10000));
69
75HELICS_CXX_EXPORT std::string queryFederateSubscriptions(helics::Federate* fed,
76 std::string_view fedName);
77
78} // namespace helics
Definition application_api/Federate.hpp:48
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition AsyncFedCallInfo.hpp:14
std::vector< int > vectorizeIndexQuery(std::string_view queryres)
Definition queryFunctions.cpp:54
std::vector< std::string > vectorizeQueryResult(std::string_view queryres)
Definition queryFunctions.cpp:21
bool waitForFed(helics::Federate *fed, std::string_view fedName, std::chrono::milliseconds timeout)
Definition queryFunctions.cpp:122
std::string queryFederateSubscriptions(helics::Federate *fed, std::string_view fedName)
Definition queryFunctions.cpp:138
bool waitForInit(helics::Federate *fed, std::string_view fedName, std::chrono::milliseconds timeout)
Definition queryFunctions.cpp:103
std::vector< std::string > vectorizeAndSortQueryResult(std::string_view queryres)
Definition queryFunctions.cpp:96