home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Papers / C++ Exceptions / µShell / Array Classes / (Hidden) / ObjectListLink.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-25  |  502 b   |  31 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        ObjectListLink.h
  3.  
  4.     Contains:    stuff
  5.  
  6. */
  7.  
  8. #ifndef _LINKEDLISTOBJECT_
  9. #define _LINKEDLISTOBJECT_
  10. #pragma once
  11.  
  12. #include "ListLink.h"
  13.  
  14. //--------------------------------------------------------------------------------
  15. // Class for a dynamicly allocated link to an object
  16. class ObjectLink : public ListLink 
  17. {
  18. private:
  19.     void*    fObject;
  20.  
  21. public:
  22.     inline ObjectLink(void* object = nil)
  23.         : fObject(object) {}
  24.     virtual ~ObjectLink();
  25.  
  26.     virtual void* GetObjectPtr();
  27. };
  28.  
  29. #endif // _LINKEDLISTOBJECT_
  30.  
  31.