helics 3.7.0
Loading...
Searching...
No Matches
configFileHelpers.hpp
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
8
11
12#include <string_view>
13
14namespace helics::fileops {
15enum class ConfigType {
16 JSON_STRING,
17 JSON_FILE,
18 TOML_STRING,
19 TOML_FILE,
20 CMD_LINE,
21 NONE,
22};
28bool looksLikeFile(std::string_view configString);
29
31bool looksLikeCommandLine(std::string_view testString);
32
38ConfigType getConfigType(std::string_view configString);
39} // namespace helics::fileops