Delta / Mbed 2 deprecated NNN40_APmodeToSTAmodeByHTTPServer

Dependencies:   WIFI_API_32kRAM 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 = 3);
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 class DeltaWifiSettingHTMLFormatter : public Formatter
00048 {
00049 
00050 public :
00051 
00052     DeltaWifiSettingHTMLFormatter();    
00053 
00054 protected :
00055 
00056     virtual void get_chunk(const int c, char *reply);
00057 };
00058 
00059 #endif