2025-03-07 22:13:09 +01:00
|
|
|
#include <seafire/routing/parameters.hxx>
|
2025-03-07 02:25:54 +01:00
|
|
|
|
|
|
|
namespace seafire::routing
|
|
|
|
{
|
|
|
|
|
2025-03-07 22:13:09 +01:00
|
|
|
parameters_t::map_type&
|
|
|
|
parameters_t::
|
2025-03-07 02:25:54 +01:00
|
|
|
map()
|
|
|
|
{
|
2025-03-07 22:13:09 +01:00
|
|
|
return _values;
|
2025-03-07 02:25:54 +01:00
|
|
|
}
|
|
|
|
|
2025-03-07 22:13:09 +01:00
|
|
|
parameters_t::map_type const&
|
|
|
|
parameters_t::
|
2025-03-07 02:25:54 +01:00
|
|
|
map() const
|
|
|
|
{
|
2025-03-07 22:13:09 +01:00
|
|
|
return _values;
|
2025-03-07 02:25:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
std::optional<std::string>
|
2025-03-07 22:13:09 +01:00
|
|
|
parameters_t::
|
2025-03-07 02:25:54 +01:00
|
|
|
get(std::string const& key) const
|
|
|
|
{
|
|
|
|
if (auto it = map().find(key); it != map().end())
|
|
|
|
return it->second;
|
|
|
|
|
|
|
|
return std::nullopt;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace seafire::routing
|