Slide 5.18: Book.h
Slide 5.20: Constructor.h
Home

TextBuffer.h


The file TextBuffer.h is the declaration of the class TextBuffer, the input buffer. This class includes six methods and four private members.

~wenchen/public_html/cgi-bin/351/week5/TextBuffer.h

class  TextBuffer {
  public:
    TextBuffer   ( int maxBytes1 );
    bool   Init  ( int maxBytes1 );
    void   Clear ( );
    void   Put   ( );
    int    Read  ( fstream& file );
    int    Unpack( char* str, char* str, char* str );
  private:
    char*  buffer;
    int    bufferSize;
    int    maxBytes;
    int    nextByte;
};