Files
cariflex/tools/EVerest-main/lib/everest/yaml/include/utils/yaml_loader.hpp
Eric F d398a6ced2 Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1)
- OpenOCPP extracted (firmware OCPP 1.6J/2.0.1)
- ShapeShifter library installed (pip install -e)
- ShapeShifter specification extracted
- EVerest extracted

TODO updated with progress
2026-06-08 00:38:27 -04:00

21 lines
574 B
C++

// SPDX-License-Identifier: Apache-2.0
// Copyright Pionix GmbH and Contributors to EVerest
#ifndef UTILS_YAML_LOADER_HPP
#define UTILS_YAML_LOADER_HPP
#include <filesystem>
#include <nlohmann/json.hpp>
namespace Everest {
/// \brief Read the YAML file at \p path and returns its content as JSON
nlohmann::ordered_json load_yaml(const std::filesystem::path& path);
/// \brief Saves the JSON \p data to a YAML file at \p path
void save_yaml(const nlohmann::ordered_json& data, const std::filesystem::path& path);
} // namespace Everest
#endif // UTILS_YAML_LOADER_HPP