Squid Web Cache v8/master
Loading...
Searching...
No Matches
AnyP::ProtocolVersion Class Reference

#include <ProtocolVersion.h>

Public Member Functions

 ProtocolVersion ()
 
 ProtocolVersion (ProtocolType which, unsigned int aMajor, unsigned int aMinor)
 
 operator bool () const
 whether the version is "known" (e.g., has been parsed or explicitly set)
 
bool operator== (const ProtocolVersion &that) const
 
bool operator!= (const ProtocolVersion &that) const
 
bool operator< (const ProtocolVersion &that) const
 
bool operator> (const ProtocolVersion &that) const
 
bool operator<= (const ProtocolVersion &that) const
 
bool operator>= (const ProtocolVersion &that) const
 

Public Attributes

ProtocolType protocol
 which protocol this version is for
 
unsigned int major
 major version number
 
unsigned int minor
 minor version number
 

Detailed Description

Stores a protocol version label. For example HTTP/1.1 or ICY/1.0 or FTP/2.0

Definition at line 23 of file ProtocolVersion.h.

Constructor & Destructor Documentation

◆ ProtocolVersion() [1/2]

AnyP::ProtocolVersion::ProtocolVersion ( )
inline

Definition at line 29 of file ProtocolVersion.h.

References major, and minor.

◆ ProtocolVersion() [2/2]

AnyP::ProtocolVersion::ProtocolVersion ( ProtocolType  which,
unsigned int  aMajor,
unsigned int  aMinor 
)
inline

Definition at line 34 of file ProtocolVersion.h.

References major, and minor.

Member Function Documentation

◆ operator bool()

AnyP::ProtocolVersion::operator bool ( ) const
inlineexplicit

Definition at line 44 of file ProtocolVersion.h.

References AnyP::PROTO_NONE, and protocol.

◆ operator!=()

bool AnyP::ProtocolVersion::operator!= ( const ProtocolVersion that) const
inline

Definition at line 59 of file ProtocolVersion.h.

References major, minor, and protocol.

◆ operator<()

bool AnyP::ProtocolVersion::operator< ( const ProtocolVersion that) const
inline

Definition at line 63 of file ProtocolVersion.h.

References major, minor, and protocol.

◆ operator<=()

bool AnyP::ProtocolVersion::operator<= ( const ProtocolVersion that) const
inline

Definition at line 79 of file ProtocolVersion.h.

References protocol.

◆ operator==()

bool AnyP::ProtocolVersion::operator== ( const ProtocolVersion that) const
inline

Definition at line 46 of file ProtocolVersion.h.

References major, minor, and protocol.

◆ operator>()

bool AnyP::ProtocolVersion::operator> ( const ProtocolVersion that) const
inline

Definition at line 71 of file ProtocolVersion.h.

References major, minor, and protocol.

◆ operator>=()

bool AnyP::ProtocolVersion::operator>= ( const ProtocolVersion that) const
inline

Definition at line 86 of file ProtocolVersion.h.

References protocol.

Member Data Documentation

◆ major

◆ minor

◆ protocol


The documentation for this class was generated from the following file: