| #ifndef THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_REDFISH_COMMON_H_ |
| #define THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_REDFISH_COMMON_H_ |
| |
| #include <cstdint> |
| #include <string> |
| #include <vector> |
| |
| namespace milotic_tlbmc { |
| namespace crow { |
| |
| enum class ParamType : uint8_t { |
| kString, |
| kMax, |
| }; |
| |
| struct RoutingParams { |
| std::vector<std::string> string_params; |
| |
| template <typename T> |
| T Get(unsigned) const; |
| }; |
| |
| template <> |
| inline std::string RoutingParams::Get<std::string>(unsigned index) const { |
| return string_params[index]; |
| } |
| |
| } // namespace crow |
| } // namespace milotic_tlbmc |
| |
| #endif // THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_REDFISH_COMMON_H_ |