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

  1. #ifndef Line_h_included  
  2. #define Line_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] [Line_h] <0000005B.00000000> Retained!
  10. // -MQEnd- [Module_Includes] [Line_h] <0000005B.00000000> 
  11.  
  12. // -MQBeg- [Module_Declarations_1] [Line_h] <0000005B.00000000> Retained!
  13. // -MQEnd- [Module_Declarations_1] [Line_h] <0000005B.00000000> 
  14.  
  15. // -MQBeg- [Class_Spec] [Line] <0000005E.00000003> 
  16. /******************************************************************************
  17. Line:
  18. ******************************************************************************/
  19. class Line  : public Shape 
  20. {
  21. // -MQBeg- [Declarations_1] [Line] <0000005E.00000003> Retained!
  22. // -MQEnd- [Declarations_1] [Line] <0000005E.00000003> 
  23. public:
  24.   Line();
  25.   Line(char style, int length);
  26.   virtual void Draw();
  27.   void SetLength(int length);
  28. private:
  29.   int Length;
  30. // -MQBeg- [Declarations_2] [Line] <0000005E.00000003> Retained!
  31. // -MQEnd- [Declarations_2] [Line] <0000005E.00000003> 
  32. };
  33.  
  34. inline 
  35. Line::Line()
  36. // -MQBeg- [Op_Init] [Line::Line] <0000005E.0000000F> Retained!
  37. // -MQEnd- [Op_Init] [Line::Line] <0000005E.0000000F> 
  38. {
  39. // -MQBeg- [Op_Body] [Line::Line] <0000005E.0000000F> Retained!
  40.   Length=10;
  41. // -MQEnd- [Op_Body] [Line::Line] <0000005E.0000000F> 
  42. }
  43.  
  44. inline 
  45. Line::Line(char style, int length)
  46. // -MQBeg- [Op_Init] [Line::Line] <0000005E.00000010> Retained!
  47.   : Shape(style)
  48. // -MQEnd- [Op_Init] [Line::Line] <0000005E.00000010> 
  49. {
  50. // -MQBeg- [Op_Body] [Line::Line] <0000005E.00000010> Retained!
  51.   Length=length;
  52. // -MQEnd- [Op_Body] [Line::Line] <0000005E.00000010> 
  53. }
  54.  
  55. inline void
  56. Line::SetLength(int length)
  57. {
  58. // -MQBeg- [Op_Body] [Line::SetLength] <0000005E.00000012> Retained!
  59.   Length=length;
  60. // -MQEnd- [Op_Body] [Line::SetLength] <0000005E.00000012> 
  61. }
  62.  
  63. // -MQEnd- [Class_Spec] [Line] <0000005E.00000003> 
  64.  
  65. // -MQBeg- [Module_Declarations_2] [Line_h] <0000005B.00000000> Retained!
  66. // -MQEnd- [Module_Declarations_2] [Line_h] <0000005B.00000000> 
  67.  
  68. #endif
  69.