ANNA Suite  2020b
Multipurpose development suite for Telco applications
Classes | Public Member Functions | List of all members
anna::http::EncodedBlock Class Reference

#include <EncodedBlock.hpp>

Inheritance diagram for anna::http::EncodedBlock:
Inheritance graph
[legend]
Collaboration diagram for anna::http::EncodedBlock:
Collaboration graph
[legend]

Classes

struct  State
 
struct  Type
 

Public Member Functions

 EncodedBlock ()
 
Type::_v getType () const
 
bool isValid () const
 
void setType (const Type::_v type)
 
void setExpectedSize (const int expectedSize)
 
void clear ()
 
State::_v append (const DataBlock &chunk)
 
- Public Member Functions inherited from anna::DataBlock
 DataBlock (const bool deepCopy=false)
 
 DataBlock (const char *buffer, const int size, const bool deepCopy=false) noexcept(false)
 
 DataBlock (const DataBlock &other) noexcept(false)
 
virtual ~DataBlock ()
 
int getMaxSize () const
 
int getSize () const
 
const char * getData () const
 
bool isEmpty () const
 
bool deepCopy () const
 
void setSize (const int size) noexcept(false)
 
DataBlockoperator+= (const char c) noexcept(false)
 
DataBlockoperator+= (const DataBlock &right) noexcept(false)
 
DataBlockoperator+= (const std::string &str) noexcept(false)
 
const char operator[] (const int pos) const noexcept(false)
 
char & operator[] (const int pos) noexcept(false)
 
void append (const char *data, const int len) noexcept(false)
 
void append (const DataBlock &other) noexcept(false)
 
void assign (const DataBlock &right) noexcept(false)
 
void assign (const char *buffer, const int size) noexcept(false)
 
DataBlockoperator= (const DataBlock &right) noexcept(false)
 
DataBlockoperator= (const char c) noexcept(false)
 
DataBlockoperator= (const std::string &str) noexcept(false)
 
void allocate (const int nbytes) noexcept(false)
 
void clear () noexcept(false)
 
void remove (const int pos, const int nbytes) noexcept(false)
 
void remove (const int nbytes) noexcept(false)
 
std::string asString (const int characterByLine=24) const
 

Additional Inherited Members

- Protected Member Functions inherited from anna::DataBlock
void initialize (const char *buffer, const int size) noexcept(false)
 
void setBuffer (const char *buffer)
 
void setMaxSize (const int maxSize)
 

Constructor & Destructor Documentation

◆ EncodedBlock()

anna::http::EncodedBlock::EncodedBlock ( )
inline
23 : DataBlock(true), a_chunk(true), a_expectedSize(-1), a_type(Type::None) {;}
Definition: EncodedBlock.hpp:20
DataBlock(const bool deepCopy=false)
Definition: DataBlock.hpp:33

Member Function Documentation

◆ append()

State::_v anna::http::EncodedBlock::append ( const DataBlock chunk)

◆ clear()

void anna::http::EncodedBlock::clear ( void  )
inline
31 { DataBlock::clear(); a_expectedSize = -1; a_chunk.clear(); a_type = Type::None; }
Definition: EncodedBlock.hpp:20
void clear() noexcept(false)
Definition: DataBlock.hpp:240
Here is the call graph for this function:

◆ getType()

Type::_v anna::http::EncodedBlock::getType ( ) const
inline
25 { return a_type; }

◆ isValid()

bool anna::http::EncodedBlock::isValid ( ) const
inline
26 { return a_type != Type::None; }
Definition: EncodedBlock.hpp:20

◆ setExpectedSize()

void anna::http::EncodedBlock::setExpectedSize ( const int  expectedSize)
inline
29 { a_expectedSize = expectedSize; }

◆ setType()

void anna::http::EncodedBlock::setType ( const Type::_v  type)
inline
28 { a_type = type; }

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