Code written by Paul Rabbat, Angel Daruna, Jarel Hawkins, and Cordel Williams

Dependencies:   4DGL-uLCD-SE EthernetInterface HTTPClient NTPClient PinDetect SDFileSystem mbed-rpc mbed-rtos mbed wave_player

Fork of ECE4180_FinalProject by Angel Daruna

Formatter.h

Committer:
prabbat3
Date:
2014-12-07
Revision:
12:a99989062fee
Parent:
0:0a99e3fc2a46

File content as of revision 12:a99989062fee:

#ifndef FORMATTER
#define FORMATTER


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