Sensor with Web Server

Dependencies:   EthernetInterface mbed-rpc mbed-rtos mbed

Committer:
afilipem
Date:
Tue Apr 08 12:13:32 2014 +0000
Revision:
0:c385e589a779
1 version;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
afilipem 0:c385e589a779 1 #ifndef FORMATTER
afilipem 0:c385e589a779 2 #define FORMATTER
afilipem 0:c385e589a779 3
afilipem 0:c385e589a779 4
afilipem 0:c385e589a779 5 class Formatter
afilipem 0:c385e589a779 6 {
afilipem 0:c385e589a779 7 public :
afilipem 0:c385e589a779 8
afilipem 0:c385e589a779 9 Formatter(int nbChunk = 1);
afilipem 0:c385e589a779 10
afilipem 0:c385e589a779 11 char* get_page(char *reply);
afilipem 0:c385e589a779 12
afilipem 0:c385e589a779 13 protected :
afilipem 0:c385e589a779 14
afilipem 0:c385e589a779 15 virtual void get_chunk(const int c, char *reply);
afilipem 0:c385e589a779 16
afilipem 0:c385e589a779 17 private :
afilipem 0:c385e589a779 18
afilipem 0:c385e589a779 19 int currentChunk;
afilipem 0:c385e589a779 20 int nbChunk;
afilipem 0:c385e589a779 21 };
afilipem 0:c385e589a779 22
afilipem 0:c385e589a779 23 class SimpleHTMLFormatter : public Formatter
afilipem 0:c385e589a779 24 {
afilipem 0:c385e589a779 25 public :
afilipem 0:c385e589a779 26
afilipem 0:c385e589a779 27 SimpleHTMLFormatter();
afilipem 0:c385e589a779 28
afilipem 0:c385e589a779 29 protected :
afilipem 0:c385e589a779 30
afilipem 0:c385e589a779 31 virtual void get_chunk(const int c, char *reply);
afilipem 0:c385e589a779 32
afilipem 0:c385e589a779 33 };
afilipem 0:c385e589a779 34
afilipem 0:c385e589a779 35 class InteractiveHTMLFormatter : public Formatter
afilipem 0:c385e589a779 36 {
afilipem 0:c385e589a779 37 public :
afilipem 0:c385e589a779 38
afilipem 0:c385e589a779 39 InteractiveHTMLFormatter();
afilipem 0:c385e589a779 40
afilipem 0:c385e589a779 41 protected :
afilipem 0:c385e589a779 42
afilipem 0:c385e589a779 43 virtual void get_chunk(const int c, char *reply);
afilipem 0:c385e589a779 44 };
afilipem 0:c385e589a779 45
afilipem 0:c385e589a779 46
afilipem 0:c385e589a779 47 #endif
afilipem 0:c385e589a779 48