userver: userver/fs/file_info_with_data.hpp Source File
Loading...
Searching...
No Matches
file_info_with_data.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <filesystem>
7#include <memory>
8#include <string>
9#include <unordered_map>
10#include <variant>
11
12USERVER_NAMESPACE_BEGIN
13
15namespace fs {
16
23 std::variant<std::string, std::filesystem::path> data_or_path;
24 std::string extension;
25};
26
27using FileInfoWithDataConstPtr = std::shared_ptr<const FileInfoWithData>;
28using FileInfoWithDataMap = std::unordered_map<std::string, FileInfoWithDataConstPtr>;
29
30} // namespace fs
31
32USERVER_NAMESPACE_END