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.

51 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. /* ------------------------------------------------------------------------*/
  12. /* */
  13. /* class TPReadObjects */
  14. /* */
  15. /* Maintains a database of all objects that have been read from the */
  16. /* current persistent stream. */
  17. /* */
  18. /* Used by ipstream when it reads a pointer from a stream to determine */
  19. /* the address of the object being referred to. */
  20. /* */
  21. /* ------------------------------------------------------------------------*/
  22. #if defined( Uses_TPReadObjects ) && !defined( __TPReadObjects )
  23. #define __TPReadObjects
  24. class TPReadObjects : public TNSCollection
  25. {
  26. friend class ipstream;
  27. public:
  28. void removeAll() { curId = 0; TNSCollection::removeAll(); }
  29. private:
  30. TPReadObjects();
  31. ~TPReadObjects();
  32. void registerObject( const void *adr );
  33. const void *find( P_id_type id );
  34. P_id_type curId;
  35. };
  36. #endif // Uses_TPReadObjects