ported HTTP-Server with W5500 Ethernet Shield

Dependencies:   W5500Interface mbed-rpc mbed

Fork of HTTP-Server by Francois Berder

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Formatter.h Source File

Formatter.h

00001 #ifndef FORMATTER
00002 #define FORMATTER
00003 
00004 class Formatter
00005 {
00006     public :
00007         
00008         Formatter(int nbChunk = 1);
00009         
00010         char* get_page(char *reply);
00011         
00012     protected :
00013     
00014         virtual void get_chunk(const int c, char *reply);
00015         
00016     private :
00017     
00018         int currentChunk;
00019         int nbChunk;
00020 };
00021 
00022 class SimpleHTMLFormatter : public Formatter
00023 {        
00024     public :
00025     
00026         SimpleHTMLFormatter();
00027         
00028     protected :
00029     
00030         virtual void get_chunk(const int c, char *reply);
00031 
00032 };
00033 
00034 class InteractiveHTMLFormatter : public Formatter
00035 {
00036     public :
00037     
00038         InteractiveHTMLFormatter();
00039 
00040     protected :
00041         
00042         virtual void get_chunk(const int c, char *reply);
00043 
00044 };
00045 
00046 
00047 #endif
00048