Webserver only w/o any other functions, single thread. Running on STM32F013+W5500

Dependencies:   NTPClient W5500Interface Watchdog device_configuration eeprom_flash mbed-rpc-nucleo mbed-rtos mbed

Fork of F103-Serial-to-Ethernet by Chau Vo

Formatter.h

Committer:
olympux
Date:
2016-08-19
Revision:
47:d92d2c5b8073
Parent:
40:c966abbe2d62

File content as of revision 47:d92d2c5b8073:

#ifndef FORMATTER
#define FORMATTER

#include "EthernetInterface.h"

extern EthernetInterface eth;

class Formatter
{
    public :
        
        Formatter(int nbChunk = 1);
        
        char* get_page(char *reply);
        
    protected :
    
        virtual void get_chunk(const int c, char *reply);
        
    private :
    
        int currentChunk;
        int nbChunk;
};

class SimpleHTMLFormatter : public Formatter
{        
    public :
    
        SimpleHTMLFormatter();
        
    protected :
    
        virtual void get_chunk(const int c, char *reply);

};

class InteractiveHTMLFormatter : public Formatter
{
    public :
    
        InteractiveHTMLFormatter();

    protected :
        
        virtual void get_chunk(const int c, char *reply);
};


#endif