You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.4 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Turbo Vision - Version 2.0
  3. *
  4. * Copyright (c) 1994 by Borland International
  5. * All Rights Reserved.
  6. *
  7. Modified by Robert H�hne to be used for RHIDE.
  8. *
  9. *
  10. */
  11. #if defined( Uses_TStringCollection ) && !defined( __TStringCollection )
  12. #define __TStringCollection
  13. class TStringCollection : public TSortedCollection
  14. {
  15. public:
  16. TStringCollection( ccIndex aLimit, ccIndex aDelta );
  17. private:
  18. virtual int compare( void *key1, void *key2 );
  19. virtual void freeItem( void *item );
  20. #if !defined( NO_STREAM )
  21. virtual const char *streamableName() const
  22. { return name; }
  23. virtual void *readItem( ipstream& );
  24. virtual void writeItem( void *, opstream& );
  25. protected:
  26. TStringCollection( StreamableInit ) : TSortedCollection ( streamableInit ) {};
  27. public:
  28. static const char * const name;
  29. static TStreamable *build();
  30. TStringCollection & operator = (const TStringCollection &);
  31. #endif // NO_STREAM
  32. };
  33. #if !defined( NO_STREAM )
  34. inline ipstream& operator >> ( ipstream& is, TStringCollection& cl )
  35. { return is >> (TStreamable&)cl; }
  36. inline ipstream& operator >> ( ipstream& is, TStringCollection*& cl )
  37. { return is >> (void *&)cl; }
  38. inline opstream& operator << ( opstream& os, TStringCollection& cl )
  39. { return os << (TStreamable&)cl; }
  40. inline opstream& operator << ( opstream& os, TStringCollection* cl )
  41. { return os << (TStreamable *)cl; }
  42. #endif // NO_STREAM
  43. #endif // Uses_TStringCollection