userver: userver/utils/resources.hpp Source File
Loading...
Searching...
No Matches
resources.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/utils/resources.hpp
4/// @brief Functions to embed and retrieve blobs from binary
5
6#include <string>
7
8USERVER_NAMESPACE_BEGIN
9
10namespace utils {
11
12/// Registeres a resource; used by `userver_embed_file` CMake function
13void RegisterResource(std::string_view name, std::string_view value);
14
15/// Returns a resource by name, registered by `userver_embed_file` CMake function (or RESOURCE() macro in some
16/// other build systems)
17std::string FindResource(std::string_view name);
18
19} // namespace utils
20
21USERVER_NAMESPACE_END