userver: userver/components/component_fwd.hpp Source File
Loading...
Searching...
No Matches
component_fwd.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/components/component_fwd.hpp
4/// @brief Forward declarations for components::ComponentContext and
5/// components::ComponentConfig; function components::GetCurrentComponentName().
6
7#include <string>
8
9USERVER_NAMESPACE_BEGIN
10
11namespace components {
12
13class ComponentConfig;
14
15class ComponentContext;
16
17/// @brief Equivalent to config.Name() but works with forward declaration of
18/// the components::ComponentConfig.
19std::string GetCurrentComponentName(const ComponentConfig& config);
20
21} // namespace components
22
23USERVER_NAMESPACE_END