home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / Papers / aSEPiA example source / Interfaces / IInterfaceProvider.h next >
Encoding:
C/C++ Source or Header  |  1999-06-25  |  454 b   |  23 lines  |  [TEXT/CWIE]

  1. /*---------------------------------------------------------------
  2.  
  3.     IInterfaceProvider.h
  4.     
  5.     Provides the function of returning interface pointers based on
  6.     passed in IDs.
  7.  
  8. ---------------------------------------------------------------*/
  9.  
  10. #ifndef IInterfaceProvider_H
  11. #define IInterfaceProvider_H
  12.  
  13. #include <MacTypes.h>
  14.  
  15. class IInterfaceProvider
  16. {
  17. public:
  18.  
  19.     virtual OSErr    GetInterfacePointer( unsigned long inID, void** outInterfacePtr ) = 0;
  20.  
  21. };
  22.  
  23. #endif