home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / PowerPlant / CGI++ Framework / Support Classes / LCHandleStream.h < prev   
Encoding:
Text File  |  1995-11-17  |  1.3 KB  |  40 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    LCHandleStream.h                ©1995 Brian Todoroff All rights reserved.
  3. //  Version 1.0b
  4. // ===========================================================================
  5. //
  6. //  This class may only be distributed as part of the CGI++ Framework.  For
  7. //  further information contact the author at btodorof@hmc.edu.
  8. //
  9. //    A subclass of LHandleStream that adds << operators for output. This version
  10. //    includes special modifiers for HTML.
  11.  
  12. #pragma once
  13.  
  14. #include <LHandleStream.h>
  15. #include <stdio.h>
  16. #include <string.h>
  17.  
  18. class    LCHandleStream : public LHandleStream {
  19. public:
  20.                     LCHandleStream();
  21.                     LCHandleStream( Handle inHandle);
  22.                     ~LCHandleStream();
  23.                     
  24.     virtual Int32    WriteCStr(const void *inString);
  25.                     LCHandleStream &operator<<(char *inStr);
  26.                     LCHandleStream &operator<<(Handle inH);
  27.                     LCHandleStream &operator<<(char inChar);
  28.                     LCHandleStream &operator<<(int inInt);
  29.                     LCHandleStream& operator<<(LCHandleStream& (*_F)(LCHandleStream&))
  30.                         {return ((*_F)(*this)); }
  31.  
  32.  
  33. };    
  34.  
  35. LCHandleStream &endl(LCHandleStream &stream);    // Text and HTML line break
  36. LCHandleStream &brkl(LCHandleStream &stream);    // HTML line break
  37. LCHandleStream &crlf(LCHandleStream &stream);    // Text CR and LF (DOS line break)
  38. LCHandleStream &newl(LCHandleStream &stream);    // Text CR (Mac line break)
  39.  
  40.