home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / hpp.z / MMCOMMON.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-24  |  806 b   |  33 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 WBool             operator==( const MMCommon & o ) const;
  19.     virtual WBool             operator<( const MMCommon & o ) const;
  20.     virtual WBool             operator>( const MMCommon & o ) const;
  21.  
  22.     protected:
  23.     WBool     MakeString( MMString, WConstantString & ) const;
  24.     inline    MMComponentLib *    GetLib() const;
  25.  
  26.     protected:
  27.     const MMCommonData *    _data;
  28. };
  29.  
  30. #include "mmcomplb.hpp"
  31.  
  32. #endif // _MMCOMMON_HPP
  33.