Server that executes RPC commands through HTTP.

Dependencies:   EthernetInterface mbed-rpc mbed-rtos mbed

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