Kurlyk
Loading...
Searching...
No Matches
type_utils.hpp File Reference

Provides utilities for enum-to-string conversion, parsing, JSON (if enabled), and stream output. More...

Go to the source code of this file.

Namespaces

namespace  kurlyk
 Primary namespace for the Kurlyk library, encompassing initialization, request management, and utility functions.
 

Macros

#define _KURLYK_TYPES_TYPE_UTILS_HPP_INCLUDED
 

Functions

const std::string & kurlyk::to_str (ProxyType value) noexcept
 Converts a ProxyType enum value to its string representation.
 
const std::string & kurlyk::to_str (RateLimitType value) noexcept
 Converts a RateLimitType enum value to its string representation.
 
const std::string & kurlyk::to_str (WebSocketEventType value) noexcept
 Converts a WebSocketEventType enum value to its string representation.
 
template<typename T>
kurlyk::to_enum (const std::string &str)
 Template specialization to convert string to enum value.
 
template<>
ProxyType kurlyk::to_enum< ProxyType > (const std::string &str)
 
template<>
RateLimitType kurlyk::to_enum< RateLimitType > (const std::string &str)
 
template<>
WebSocketEventType kurlyk::to_enum< WebSocketEventType > (const std::string &str)
 
std::ostream & kurlyk::operator<< (std::ostream &os, ProxyType type)
 
std::ostream & kurlyk::operator<< (std::ostream &os, RateLimitType type)
 
std::ostream & kurlyk::operator<< (std::ostream &os, WebSocketEventType type)
 

Detailed Description

Provides utilities for enum-to-string conversion, parsing, JSON (if enabled), and stream output.

Definition in file type_utils.hpp.

Macro Definition Documentation

◆ _KURLYK_TYPES_TYPE_UTILS_HPP_INCLUDED

#define _KURLYK_TYPES_TYPE_UTILS_HPP_INCLUDED

Definition at line 3 of file type_utils.hpp.