CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::IURLRequest::CachePolicy Struct Reference

An enumeration that describes how the URLProtocol implementation should handle caching of this request. More...

#include <CeresEngine/Foundation/IO/URLSession.hpp>

Inheritance diagram for CeresEngine::IURLRequest::CachePolicy:
CeresEngine::StructEnum< CachePolicy >

Public Types

enum  : UnderlyingType { None = 0 , Default = None }
 
using RawType = decltype(raw)
 
- Public Types inherited from CeresEngine::StructEnum< CachePolicy >
using UnderlyingType = UInt32
 
using Self = CachePolicy
 

Public Member Functions

constexpr CachePolicy ()=default
 
constexpr CachePolicy (RawType raw)
 
constexpr CachePolicy (UnderlyingType raw)
 
StringView toString () const noexcept
 Gets a string representation of CachePolicy.
 
- Public Member Functions inherited from CeresEngine::StructEnum< CachePolicy >
 operator UnderlyingType () const noexcept
 Converts the enum into it's underlying type.
 
void toString (std::ostream &stream) const noexcept
 Writes a string representation of the ShaderType to the given stream.
 

Static Public Member Functions

static Optional< CachePolicyfromString (StringView string) noexcept
 Creates a new CachePolicy from a string representation.
 
- Static Public Member Functions inherited from CeresEngine::StructEnum< CachePolicy >
static Self fromRawUnderlying (UnderlyingType underlying) noexcept
 Creates a new Self from it's underlying numeric representation.
 

Public Attributes

enum CeresEngine::IURLRequest::CachePolicy:: { ... }  raw
 

Detailed Description

An enumeration that describes how the URLProtocol implementation should handle caching of this request.

Member Typedef Documentation

◆ RawType

Member Enumeration Documentation

◆ anonymous enum

Enumerator
None 

Disallow the usage of any cached data.

Default 

The default cache policy.

Constructor & Destructor Documentation

◆ CachePolicy() [1/3]

constexpr CeresEngine::IURLRequest::CachePolicy::CachePolicy ( )
constexprdefault

◆ CachePolicy() [2/3]

constexpr CeresEngine::IURLRequest::CachePolicy::CachePolicy ( RawType  raw)
inlineconstexpr

◆ CachePolicy() [3/3]

constexpr CeresEngine::IURLRequest::CachePolicy::CachePolicy ( UnderlyingType  raw)
inlineexplicitconstexpr

Member Function Documentation

◆ fromString()

static Optional< CachePolicy > CeresEngine::IURLRequest::CachePolicy::fromString ( StringView  string)
staticnoexcept

Creates a new CachePolicy from a string representation.

If the string value is invalid, an empty optional is returned.

◆ toString()

StringView CeresEngine::IURLRequest::CachePolicy::toString ( ) const
noexcept

Gets a string representation of CachePolicy.

Member Data Documentation

◆ []

enum { ... } CeresEngine::IURLRequest::CachePolicy::raw

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