WebFramework v3.0.12
Web framework for C++.
Loading...
Searching...
No Matches
RouteParameters.h
1#pragma once
2
3#include "Import/WebFrameworkCore.h"
4
5namespace framework
6{
7 namespace utility
8 {
10 {
11 public:
12 static constexpr std::string_view stringType = "string:";
13 static constexpr std::string_view integerType = "int:";
14 static constexpr std::string_view doubleType = "double:";
15
16 enum class routeParametersType
17 {
18 stringTypeIndex,
19 integerTypeIndex,
20 doubleTypeIndex
21 };
22
23 public:
24 std::string baseRoute;
25 std::unordered_map<std::string, std::variant<std::string, int64_t, double>> parameters;
26 std::vector<std::string> indices;
27
28 RouteParameters(const std::string& jsonRoute);
29
30 RouteParameters(RouteParameters&& other) noexcept = default;
31
32 RouteParameters& operator =(RouteParameters&& other) noexcept = default;
33 };
34 }
35}