SNode.C
Loading...
Searching...
No Matches
web::http::ContentDecoder Class Referenceabstract

#include <ContentDecoder.h>

Inheritance diagram for web::http::ContentDecoder:
Collaboration diagram for web::http::ContentDecoder:

Public Member Functions

 ContentDecoder ()=default
 
 ContentDecoder (const ContentDecoder &)=delete
 
 ContentDecoder (ContentDecoder &&) noexcept=default
 
ContentDecoderoperator= (const ContentDecoder &)=delete
 
ContentDecoderoperator= (ContentDecoder &&) noexcept=default
 
virtual ~ContentDecoder ()
 
virtual std::size_t read ()=0
 
bool isComplete () const
 
bool isError () const
 
std::vector< char > && getContent ()
 

Protected Attributes

std::vector< char > content
 
bool completed = false
 
bool error = false
 

Detailed Description

Definition at line 54 of file ContentDecoder.h.

Constructor & Destructor Documentation

◆ ContentDecoder() [1/3]

web::http::ContentDecoder::ContentDecoder ( )
default

◆ ContentDecoder() [2/3]

web::http::ContentDecoder::ContentDecoder ( const ContentDecoder & )
delete

◆ ContentDecoder() [3/3]

web::http::ContentDecoder::ContentDecoder ( ContentDecoder && )
defaultnoexcept

◆ ~ContentDecoder()

web::http::ContentDecoder::~ContentDecoder ( )
virtual

Definition at line 52 of file ContentDecoder.cpp.

52 {
53 }

Member Function Documentation

◆ getContent()

std::vector< char > && web::http::ContentDecoder::getContent ( )

Definition at line 63 of file ContentDecoder.cpp.

63 {
64 return std::move(content);
65 }
std::vector< char > content

◆ isComplete()

bool web::http::ContentDecoder::isComplete ( ) const

Definition at line 55 of file ContentDecoder.cpp.

55 {
56 return completed;
57 }

References completed.

◆ isError()

bool web::http::ContentDecoder::isError ( ) const

Definition at line 59 of file ContentDecoder.cpp.

59 {
60 return error;
61 }

References error.

◆ operator=() [1/2]

ContentDecoder & web::http::ContentDecoder::operator= ( const ContentDecoder & )
delete

◆ operator=() [2/2]

ContentDecoder & web::http::ContentDecoder::operator= ( ContentDecoder && )
defaultnoexcept

◆ read()

virtual std::size_t web::http::ContentDecoder::read ( )
pure virtual

Member Data Documentation

◆ completed

bool web::http::ContentDecoder::completed = false
protected

◆ content

std::vector<char> web::http::ContentDecoder::content
protected

Definition at line 76 of file ContentDecoder.h.

◆ error

bool web::http::ContentDecoder::error = false
protected

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