Prusa MINI Firmware overview
IHeader Class Referenceabstract

Headers list. Creator is responsible to clean the values. More...

#include <lwsapi_app.hpp>

Inheritance diagram for IHeader:
Collaboration diagram for IHeader:

Public Member Functions

 IHeader (const char *const key, IHeader *next=nullptr)
 
virtual size_t length () const =0
 
virtual void snprintf (char *buff) const =0
 
virtual void dbg () const =0
 
- Public Member Functions inherited from LwIPClass
virtual ~LwIPClass ()
 

Public Attributes

const char * key
 
IHeadernext
 

Static Protected Attributes

static const size_t format_chars = 5
 

Additional Inherited Members

- Static Public Member Functions inherited from LwIPClass
static voidoperator new (size_t size)
 
static void operator delete (void *ptr)
 

Detailed Description

Headers list. Creator is responsible to clean the values.

Constructor & Destructor Documentation

◆ IHeader()

IHeader::IHeader ( const char *const  key,
IHeader next = nullptr 
)
76  : key(key)
77  , next(next) {}

Member Function Documentation

◆ length()

virtual size_t IHeader::length ( ) const
pure virtual

Implemented in DynamicsHeader, ConstHeader, and NumberHeader.

Here is the caller graph for this function:

◆ snprintf()

virtual void IHeader::snprintf ( char *  buff) const
pure virtual

Implemented in DynamicsHeader, ConstHeader, and NumberHeader.

Here is the caller graph for this function:

◆ dbg()

virtual void IHeader::dbg ( ) const
pure virtual

Implemented in DynamicsHeader, ConstHeader, and NumberHeader.

Member Data Documentation

◆ key

const char* IHeader::key

key must be const char defined in code

◆ next

IHeader* IHeader::next

◆ format_chars

const size_t IHeader::format_chars = 5
staticprotected
IHeader::key
const char * key
Definition: lwsapi_app.hpp:72
IHeader::next
IHeader * next
Definition: lwsapi_app.hpp:73