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.

45 lines
1.2 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. /* ------------------------------------------------------------------------*/
  12. /* */
  13. /* class TStreamable */
  14. /* */
  15. /* This is the base class for all storable objects. It provides */
  16. /* three member functions, streamableName(), read(), and write(), which */
  17. /* must be overridden in every derived class. */
  18. /* */
  19. /* ------------------------------------------------------------------------*/
  20. #if defined( Uses_TStreamable ) && !defined( __TStreamable )
  21. #define __TStreamable
  22. class TStreamable
  23. {
  24. friend class opstream;
  25. friend class ipstream;
  26. private:
  27. virtual const char *streamableName() const = 0;
  28. protected:
  29. virtual void *read( ipstream& ) = 0;
  30. virtual void write( opstream& ) = 0;
  31. };
  32. #endif // Uses_TStreamable