Thoth
A functional, expressive, asynchronous C++26 webdev library
Loading...
Searching...
No Matches
Thoth::Dsa::FileOutputRange< T > Struct Template Reference

#include <FileOutputRange.hpp>

Public Types

using value_type = T
 
using BodyType = std::expected< FileOutputRange, Http::RequestError >
 

Public Member Functions

 FileOutputRange (const std::filesystem::path &path, int mode=0)
 
 FileOutputRange (std::filesystem::path &&path, int mode=0)
 
 FileOutputRange (std::basic_ofstream< T > &&file)
 
 FileOutputRange (FileOutputRange &&other) noexcept
 
 FileOutputRange (const FileOutputRange &other)=delete
 
FileOutputRangeoperator= (FileOutputRange &&other) noexcept
 
FileOutputRangeoperator= (const FileOutputRange &other)=delete
 
constexpr bool operator== (const FileOutputRange &other) const =default
 
std::ostream_iterator< T, T > begin ()
 

Static Public Member Functions

static constexpr auto H_AsBody (const FileBuilderParams &params)
 
static constexpr auto H_AsBody (FileBuilderParams &&params)
 
static constexpr int Mode ()
 
static std::unreachable_sentinel_t end ()
 

Member Typedef Documentation

◆ BodyType

template<Hermes::ByteLike T = char>
using Thoth::Dsa::FileOutputRange< T >::BodyType = std::expected<FileOutputRange, Http::RequestError>

◆ value_type

template<Hermes::ByteLike T = char>
using Thoth::Dsa::FileOutputRange< T >::value_type = T

Constructor & Destructor Documentation

◆ FileOutputRange() [1/5]

template<Hermes::ByteLike T = char>
Thoth::Dsa::FileOutputRange< T >::FileOutputRange ( const std::filesystem::path &  path,
int  mode = 0 
)
explicit

◆ FileOutputRange() [2/5]

template<Hermes::ByteLike T = char>
Thoth::Dsa::FileOutputRange< T >::FileOutputRange ( std::filesystem::path &&  path,
int  mode = 0 
)
explicit

◆ FileOutputRange() [3/5]

template<Hermes::ByteLike T = char>
Thoth::Dsa::FileOutputRange< T >::FileOutputRange ( std::basic_ofstream< T > &&  file)
explicit

◆ FileOutputRange() [4/5]

template<Hermes::ByteLike T = char>
Thoth::Dsa::FileOutputRange< T >::FileOutputRange ( FileOutputRange< T > &&  other)
noexcept

◆ FileOutputRange() [5/5]

template<Hermes::ByteLike T = char>
Thoth::Dsa::FileOutputRange< T >::FileOutputRange ( const FileOutputRange< T > &  other)
delete

Member Function Documentation

◆ begin()

template<Hermes::ByteLike T = char>
std::ostream_iterator< T, T > Thoth::Dsa::FileOutputRange< T >::begin ( )

◆ end()

template<Hermes::ByteLike T = char>
static std::unreachable_sentinel_t Thoth::Dsa::FileOutputRange< T >::end ( )
static

◆ H_AsBody() [1/2]

template<Hermes::ByteLike T = char>
static constexpr auto Thoth::Dsa::FileOutputRange< T >::H_AsBody ( const FileBuilderParams params)
staticconstexpr

◆ H_AsBody() [2/2]

template<Hermes::ByteLike T = char>
static constexpr auto Thoth::Dsa::FileOutputRange< T >::H_AsBody ( FileBuilderParams &&  params)
staticconstexpr

◆ Mode()

template<Hermes::ByteLike T = char>
static constexpr int Thoth::Dsa::FileOutputRange< T >::Mode ( )
staticconstexpr

◆ operator=() [1/2]

template<Hermes::ByteLike T = char>
FileOutputRange & Thoth::Dsa::FileOutputRange< T >::operator= ( const FileOutputRange< T > &  other)
delete

◆ operator=() [2/2]

template<Hermes::ByteLike T = char>
FileOutputRange & Thoth::Dsa::FileOutputRange< T >::operator= ( FileOutputRange< T > &&  other)
noexcept

◆ operator==()

template<Hermes::ByteLike T = char>
constexpr bool Thoth::Dsa::FileOutputRange< T >::operator== ( const FileOutputRange< T > &  other) const
constexprdefault

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