home *** CD-ROM | disk | FTP | other *** search
- #ifndef __RWCOLLSTR_H__
- #define __RWCOLLSTR_H__
- pragma push_align_members(64);
-
- /*
- * RWCollectableString --- collectable strings
- *
- * $Header: E:/vcs/rw/collstr.h_v 1.3 01 Mar 1992 15:46:06 KEFFER $
- *
- ****************************************************************************
- *
- * Rogue Wave Software, Inc.
- * P.O. Box 2328
- * Corvallis, OR 97339
- * Voice: (503) 754-3010 FAX: (503) 757-6650
- *
- * Copyright (C) 1989, 1990, 1991. This software is subject to copyright
- * protection under the laws of the United States and other countries.
- *
- ***************************************************************************
- *
- * $Log: E:/vcs/rw/collstr.h_v $
- *
- * Rev 1.3 01 Mar 1992 15:46:06 KEFFER
- * Now uses RWCString instead of RWString.
- *
- * Rev 1.1 28 Oct 1991 09:08:12 keffer
- * Changed inclusions to <rw/xxx.h>
- *
- * Rev 1.0 28 Jul 1991 08:13:56 keffer
- * Tools.h++ V4.0.5 PVCS baseline version
- *
- */
-
- #include "rw/cstring.h"
- #include "rw/collect.h"
-
- class RWExport RWCollectableString : public RWCollectable, public RWCString {
- public:
- RWCollectableString();
- RWCollectableString(const char* a) : RWCString(a) { }
- RWCollectableString(unsigned N, char c = ' ') : RWCString(N,c) { }
- RWCollectableString(const RWCString& s) : RWCString(s) { }
- RWCollectableString(const RWCSubString& s) : RWCString(s) { }
-
- /* Virtual functions inherited from RWCollectable */
- virtual unsigned binaryStoreSize() const {return RWCString::binaryStoreSize();}
- virtual int compareTo(const RWCollectable*) const;
- virtual unsigned hash() const;
- virtual ClassID isA() const {return __RWCOLLECTABLESTRING;}
- virtual RWBoolean isEqual(const RWCollectable*) const;
- virtual RWCollectable* newSpecies() const;
- virtual void restoreGuts(RWvistream&);
- virtual void restoreGuts(RWFile&);
- virtual void saveGuts(RWvostream&) const;
- virtual void saveGuts(RWFile&) const;
- };
-
- pragma pop_align_members();
- #endif /* __RWCOLLSTR_H__ */
-