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.

54 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. Modified by Salvador E. Tropea to compile for 64 bits architectures.
  9. *
  10. *
  11. */
  12. /* ------------------------------------------------------------------------*/
  13. /* */
  14. /* class TStreamableClass */
  15. /* */
  16. /* Used internally by TStreamableTypes and pstream. */
  17. /* */
  18. /* ------------------------------------------------------------------------*/
  19. #if defined( Uses_TStreamableClass ) && !defined( __TStreamableClass )
  20. #define __TStreamableClass
  21. #include <limits.h>
  22. const P_id_type P_id_notFound = UINT_MAX;
  23. typedef TStreamable *(*BUILDER)();
  24. //#define __DELTA( d ) (FP_OFF((TStreamable *)(d *)1)-1)
  25. #define __DELTA( d ) ((long)((TStreamable *)(d *)1)-1)
  26. class TStreamableClass
  27. {
  28. friend class TStreamableTypes;
  29. friend class opstream;
  30. friend class ipstream;
  31. public:
  32. TStreamableClass( const char *n, BUILDER b, int d );
  33. private:
  34. const char *name;
  35. BUILDER build;
  36. int delta;
  37. };
  38. #endif // Uses_TStreamableClass