home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xres.h < prev    next >
Text File  |  1997-02-23  |  1KB  |  34 lines

  1. #ifndef __OOL_XRESOURCE_H__
  2. #define __OOL_XRESOURCE_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XResource                             */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15. #include "xobject.h"
  16.  
  17. class XResourceLibrary;
  18. class XWindow;
  19.  
  20. class _export_ XResource: public XObject
  21. {
  22.    private:
  23.       XResourceLibrary * library;
  24.       unsigned long id;
  25.    public:
  26.       XResource( const unsigned long resId, const XResourceLibrary * lib) { id = resId; library = (XResourceLibrary*) lib; }
  27.       XResourceLibrary * GetResourceLibrary( void ) const { return library; }
  28.       virtual ~XResource() {;}
  29.       ULONG GetID(void) const { return id; }
  30.       void SetID( const LONG i) { id = i; }
  31. };
  32.  
  33. #endif
  34.