home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / T0 < prev    next >
Encoding:
Text File  |  1992-06-07  |  2.0 KB  |  61 lines

  1. #ifndef __RWCOLLSTR_H__
  2. #define __RWCOLLSTR_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * RWCollectableString --- collectable strings
  7.  *
  8.  * $Header:   E:/vcs/rw/collstr.h_v   1.3   01 Mar 1992 15:46:06   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave Software, Inc.
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  * Voice: (503) 754-3010    FAX: (503) 757-6650
  16.  *
  17.  * Copyright (C) 1989, 1990, 1991. This software is subject to copyright 
  18.  * protection under the laws of the United States and other countries.
  19.  *
  20.  ***************************************************************************
  21.  *
  22.  * $Log:   E:/vcs/rw/collstr.h_v  $
  23.  * 
  24.  *    Rev 1.3   01 Mar 1992 15:46:06   KEFFER
  25.  * Now uses RWCString instead of RWString.
  26.  * 
  27.  *    Rev 1.1   28 Oct 1991 09:08:12   keffer
  28.  * Changed inclusions to <rw/xxx.h>
  29.  * 
  30.  *    Rev 1.0   28 Jul 1991 08:13:56   keffer
  31.  * Tools.h++ V4.0.5 PVCS baseline version
  32.  *
  33.  */
  34.  
  35. #include "rw/cstring.h"
  36. #include "rw/collect.h"
  37.  
  38. class RWExport RWCollectableString : public RWCollectable, public RWCString {
  39. public:
  40.   RWCollectableString();
  41.   RWCollectableString(const char* a) :         RWCString(a)   { }
  42.   RWCollectableString(unsigned N, char c = ' ') :    RWCString(N,c) { }
  43.   RWCollectableString(const RWCString& s) :    RWCString(s)   { }
  44.   RWCollectableString(const RWCSubString& s) :    RWCString(s)   { }
  45.  
  46.   /* Virtual functions inherited from RWCollectable */
  47.   virtual unsigned        binaryStoreSize() const {return RWCString::binaryStoreSize();}
  48.   virtual int            compareTo(const RWCollectable*) const;
  49.   virtual unsigned        hash() const;
  50.   virtual ClassID        isA() const {return __RWCOLLECTABLESTRING;}
  51.   virtual RWBoolean        isEqual(const RWCollectable*) const;
  52.   virtual RWCollectable*    newSpecies() const;
  53.   virtual void            restoreGuts(RWvistream&);
  54.   virtual void            restoreGuts(RWFile&);
  55.   virtual void            saveGuts(RWvostream&) const;
  56.   virtual void            saveGuts(RWFile&) const;
  57. };
  58.  
  59. pragma pop_align_members();
  60. #endif /* __RWCOLLSTR_H__ */
  61.