home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWString / FWStrs.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.8 KB  |  76 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWStrs.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWSTRS_H
  11. #define FWSTRS_H
  12.  
  13. #ifndef FWSTDDEF_H
  14. #include "FWStdDef.h"
  15. #endif
  16.  
  17. #ifndef FWEXCDEF_H
  18. #include "FWExcDef.h"
  19. #endif
  20.  
  21. #ifndef FWPSTR_H
  22. #include "FWPStr.h"
  23. #endif
  24.  
  25. #ifndef FWCHARIT_H
  26. #include "FWCharIt.h"
  27. #endif
  28.  
  29. #ifndef FWCHARAC_H
  30. #include "FWCharac.h"
  31. #endif
  32.  
  33. //========================================================================================
  34. // Forward Declarations
  35. //========================================================================================
  36.  
  37. class FW_CStringReader;
  38. class FW_CStringWriter;
  39. class FW_OStringRunWriter;
  40.  
  41. //========================================================================================
  42. //    CLASS FW_CStringReader
  43. //========================================================================================
  44.  
  45. class FW_CStringReader : public FW_CTextReader
  46. {
  47. public:
  48.  
  49.     FW_DECLARE_AUTO(FW_CStringReader)
  50.     
  51.     FW_CStringReader(const FW_CString &string);
  52.     FW_CStringReader(const FW_CString &string,
  53.                      FW_BytePosition start,
  54.                      FW_ByteCount length);
  55.     virtual ~ FW_CStringReader();
  56. };
  57.  
  58. //========================================================================================
  59. //    CLASS FW_CStringWriter
  60. //========================================================================================
  61.  
  62. class FW_CStringWriter : public FW_CTextWriter
  63. {
  64. public:
  65.  
  66.     FW_DECLARE_AUTO(FW_CStringWriter)
  67.     
  68.     enum {kDefaultBufferSize=32};
  69.     virtual ~ FW_CStringWriter();
  70.     FW_CStringWriter(FW_HString* string, short bufferSize=kDefaultBufferSize);
  71. private:
  72.     FW_CString    fLock;
  73. };
  74.  
  75. #endif
  76.