Support Class Library
A set of tools providing classes and utility
|
A pseudo enum class that describes the version of the HTTP Protocol. More...
#include "Version.h"
Public Types | |
using | version_type = const char * |
The string representation type. More... | |
using | integral_type = unsigned char |
The integer representation type. More... | |
Public Member Functions | |
constexpr | operator version_type () const |
Implicit conversion to string. More... | |
constexpr | operator integral_type () const |
Implicit conversion to integer. More... | |
constexpr bool | operator== (const Version &other) const |
constexpr bool | operator< (const Version &other) const |
constexpr bool | operator<= (const Version &other) const |
constexpr bool | operator> (const Version &other) const |
constexpr bool | operator>= (const Version &other) const |
constexpr bool | operator!= (const Version &other) const |
Static Public Attributes | |
static const Version | V1_0 { "1.0" , 10 } |
static const Version | V1_1 { "1.1" , 11 } |
static const Version | V2_0 { "2.0" , 20 } |
static const Version | V3_0 { "3.0" , 30 } |
Protected Member Functions | |
constexpr | Version (const version_type &v, integral_type i) |
Constrct a version from its string and integer representation. More... | |
Protected Attributes | |
const version_type | str |
The string representation of the version. More... | |
const integral_type | nb |
The integer representation of the version. More... | |
Friends | |
class | scl::utils::ToString< Version > |
A pseudo enum class that describes the version of the HTTP Protocol.
|
inlineexplicitprotected |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |