Skip to content
API Documentation
BastionGuard™
PolicyLoader.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <string>
6
8
9class PolicyLoader final {
10public:
11 [[nodiscard]] static Policy load(const std::filesystem::path& path);
12 [[nodiscard]] static Policy loadFromText(
13 const std::string& content,
14 const std::filesystem::path& source = "<memory>");
15};
16
17} // namespace bastionguard::rootguard
static Policy load(const std::filesystem::path &path)
static Policy loadFromText(const std::string &content, const std::filesystem::path &source="<memory>")