home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / hpp.z / MMCOMMON.HPP < prev    next >
C/C++ Source or Header  |  1996-09-14  |  1KB  |  34 lines

  1. #ifndef _MMCOMMON_HPP
  2. #define _MMCOMMON_HPP
  3.  
  4. #include "mmdef.hpp"
  5.  
  6. class MMComponentLib;
  7.  
  8. class METACLASSDEF MMCommon : public WObject {
  9.     public:
  10.         MMCommon( const MMCommonData * data );
  11.         MMCommon() : _data( NULL ) {}
  12.         virtual ~MMCommon() = 0;
  13.  
  14.         virtual const MMCommonData * GetCommonData() const;
  15.  
  16.         virtual MMComponentLib *        GetLibrary() const;
  17.         virtual WConstantString         GetName() const;
  18.         virtual WInt                    GetIndex() const;
  19.         virtual WBool                   operator==( const MMCommon & o ) const;
  20.         virtual WBool                   operator<( const MMCommon & o ) const;
  21.         virtual WBool                   operator>( const MMCommon & o ) const;
  22.  
  23.     protected:
  24.         WBool   MakeString( MMString, WConstantString & ) const;
  25.         inline  MMComponentLib *        GetLib() const;
  26.  
  27.     protected:
  28.         const MMCommonData *    _data;
  29. };
  30.  
  31. #include "mmcomplb.hpp"
  32.  
  33. #endif // _MMCOMMON_HPP
  34.