| helics 3.6.1

configFileHelpers.hpp
1 /*
2 Copyright (c) 2017-2025,
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 "JsonProcessingFunctions.hpp"
10 #include "TomlProcessingFunctions.hpp"
11
12 #include <string_view>
13
14 namespace helics::fileops {
15 enum class ConfigType {
16 JSON_STRING,
17 JSON_FILE,
18 TOML_STRING,
19 TOML_FILE,
20 CMD_LINE,
21 NONE,
22 };
28 bool looksLikeFile(std::string_view configString);
29
31 bool looksLikeCommandLine(std::string_view testString);
32
38 ConfigType getConfigType(std::string_view configString);
39 } // namespace helics::fileops
JsonProcessingFunctions.hpp
TomlProcessingFunctions.hpp