home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / scase.zip / SCASE.Z / SHAPE.H < prev    next >
C/C++ Source or Header  |  1994-10-17  |  3KB  |  86 lines

  1. #ifndef Shape_h_included  
  2. #define Shape_h_included  
  3. /******************************************************************************
  4. *                         ** Company Confidential **
  5. *                  ** Copyright 1994, All rights Reserved **
  6. * %Z%%M% version %I% date:%G%
  7. ******************************************************************************/
  8.  
  9. // -MQBeg- [Module_Includes] [Shape_h] <0000005B.00000000> Retained!
  10. // -MQEnd- [Module_Includes] [Shape_h] <0000005B.00000000> 
  11.  
  12. // -MQBeg- [Module_Declarations_1] [Shape_h] <0000005B.00000000> Retained!
  13. // -MQEnd- [Module_Declarations_1] [Shape_h] <0000005B.00000000> 
  14.  
  15. // -MQBeg- [Class_Spec] [Shape] <0000005E.00000001> 
  16. /******************************************************************************
  17. Shape:
  18. ******************************************************************************/
  19. class Shape 
  20. {
  21. // -MQBeg- [Declarations_1] [Shape] <0000005E.00000001> Retained!
  22. // -MQEnd- [Declarations_1] [Shape] <0000005E.00000001> 
  23. public:
  24.   Shape();
  25.   Shape(char style);
  26.   virtual ~Shape();
  27.   virtual void Draw() = 0;
  28.   void SetStyle(char style);
  29.   char GetStyle();
  30. private:
  31.   // The character that will be used to draw the shape.
  32.   char Style;
  33. // -MQBeg- [Declarations_2] [Shape] <0000005E.00000001> Retained!
  34. // -MQEnd- [Declarations_2] [Shape] <0000005E.00000001> 
  35. };
  36.  
  37. inline 
  38. Shape::Shape()
  39. // -MQBeg- [Op_Init] [Shape::Shape] <0000005E.00000008> Retained!
  40. // -MQEnd- [Op_Init] [Shape::Shape] <0000005E.00000008> 
  41. {
  42. // -MQBeg- [Op_Body] [Shape::Shape] <0000005E.00000008> Retained!
  43.   Style='*';
  44. // -MQEnd- [Op_Body] [Shape::Shape] <0000005E.00000008> 
  45. }
  46.  
  47. inline 
  48. Shape::Shape(char style)
  49. // -MQBeg- [Op_Init] [Shape::Shape] <0000005E.00000009> Retained!
  50. // -MQEnd- [Op_Init] [Shape::Shape] <0000005E.00000009> 
  51. {
  52. // -MQBeg- [Op_Body] [Shape::Shape] <0000005E.00000009> Retained!
  53.   Style=style;
  54. // -MQEnd- [Op_Body] [Shape::Shape] <0000005E.00000009> 
  55. }
  56.  
  57. inline 
  58. Shape::~Shape()
  59. {
  60. // -MQBeg- [Op_Body] [Shape::~Shape] <0000005E.0000000A> Retained!
  61. // -MQEnd- [Op_Body] [Shape::~Shape] <0000005E.0000000A> 
  62. }
  63.  
  64. inline void
  65. Shape::SetStyle(char style)
  66. {
  67. // -MQBeg- [Op_Body] [Shape::SetStyle] <0000005E.0000000C> Retained!
  68.   Style=style;
  69. // -MQEnd- [Op_Body] [Shape::SetStyle] <0000005E.0000000C> 
  70. }
  71.  
  72. inline char
  73. Shape::GetStyle()
  74. {
  75. // -MQBeg- [Op_Body] [Shape::GetStyle] <0000005E.0000000D> Retained!
  76.   return Style;
  77. // -MQEnd- [Op_Body] [Shape::GetStyle] <0000005E.0000000D> 
  78. }
  79.  
  80. // -MQEnd- [Class_Spec] [Shape] <0000005E.00000001> 
  81.  
  82. // -MQBeg- [Module_Declarations_2] [Shape_h] <0000005B.00000000> Retained!
  83. // -MQEnd- [Module_Declarations_2] [Shape_h] <0000005B.00000000> 
  84.  
  85. #endif
  86.