1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00
VILLASnode/common/include/villas/kernel/devices/utils.hpp
Pascal Bauer 82082c392a add utils
Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
2024-11-15 10:36:34 +00:00

26 lines
579 B
C++

/* Utils
*
* Author: Pascal Bauer <pascal.bauer@rwth-aachen.de>
*
* SPDX-FileCopyrightText: 2023-2024 Pascal Bauer <pascal.bauer@rwth-aachen.de>
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <filesystem>
#include <string>
#include <vector>
namespace villas {
namespace kernel {
namespace devices {
namespace utils {
void write_to_file(std::string data, const std::filesystem::path file);
std::vector<std::string> read_names_in_directory(const std::string &name);
} // namespace utils
} // namespace devices
} // namespace kernel
} // namespace villas