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 32 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 30 of file ContentDecoder.cpp.

30 {
31 }

Member Function Documentation

◆ getContent()

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

Definition at line 41 of file ContentDecoder.cpp.

41 {
42 return std::move(content);
43 }
std::vector< char > content

◆ isComplete()

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

Definition at line 33 of file ContentDecoder.cpp.

33 {
34 return completed;
35 }

References completed.

◆ isError()

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

Definition at line 37 of file ContentDecoder.cpp.

37 {
38 return error;
39 }

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 54 of file ContentDecoder.h.

◆ error

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

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