home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
scase.zip
/
SCASE.Z
/
SHAPE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-17
|
3KB
|
86 lines
#ifndef Shape_h_included
#define Shape_h_included
/******************************************************************************
* ** Company Confidential **
* ** Copyright 1994, All rights Reserved **
* %Z%%M% version %I% date:%G%
******************************************************************************/
// -MQBeg- [Module_Includes] [Shape_h] <0000005B.00000000> Retained!
// -MQEnd- [Module_Includes] [Shape_h] <0000005B.00000000>
// -MQBeg- [Module_Declarations_1] [Shape_h] <0000005B.00000000> Retained!
// -MQEnd- [Module_Declarations_1] [Shape_h] <0000005B.00000000>
// -MQBeg- [Class_Spec] [Shape] <0000005E.00000001>
/******************************************************************************
Shape:
******************************************************************************/
class Shape
{
// -MQBeg- [Declarations_1] [Shape] <0000005E.00000001> Retained!
// -MQEnd- [Declarations_1] [Shape] <0000005E.00000001>
public:
Shape();
Shape(char style);
virtual ~Shape();
virtual void Draw() = 0;
void SetStyle(char style);
char GetStyle();
private:
// The character that will be used to draw the shape.
char Style;
// -MQBeg- [Declarations_2] [Shape] <0000005E.00000001> Retained!
// -MQEnd- [Declarations_2] [Shape] <0000005E.00000001>
};
inline
Shape::Shape()
// -MQBeg- [Op_Init] [Shape::Shape] <0000005E.00000008> Retained!
// -MQEnd- [Op_Init] [Shape::Shape] <0000005E.00000008>
{
// -MQBeg- [Op_Body] [Shape::Shape] <0000005E.00000008> Retained!
Style='*';
// -MQEnd- [Op_Body] [Shape::Shape] <0000005E.00000008>
}
inline
Shape::Shape(char style)
// -MQBeg- [Op_Init] [Shape::Shape] <0000005E.00000009> Retained!
// -MQEnd- [Op_Init] [Shape::Shape] <0000005E.00000009>
{
// -MQBeg- [Op_Body] [Shape::Shape] <0000005E.00000009> Retained!
Style=style;
// -MQEnd- [Op_Body] [Shape::Shape] <0000005E.00000009>
}
inline
Shape::~Shape()
{
// -MQBeg- [Op_Body] [Shape::~Shape] <0000005E.0000000A> Retained!
// -MQEnd- [Op_Body] [Shape::~Shape] <0000005E.0000000A>
}
inline void
Shape::SetStyle(char style)
{
// -MQBeg- [Op_Body] [Shape::SetStyle] <0000005E.0000000C> Retained!
Style=style;
// -MQEnd- [Op_Body] [Shape::SetStyle] <0000005E.0000000C>
}
inline char
Shape::GetStyle()
{
// -MQBeg- [Op_Body] [Shape::GetStyle] <0000005E.0000000D> Retained!
return Style;
// -MQEnd- [Op_Body] [Shape::GetStyle] <0000005E.0000000D>
}
// -MQEnd- [Class_Spec] [Shape] <0000005E.00000001>
// -MQBeg- [Module_Declarations_2] [Shape_h] <0000005B.00000000> Retained!
// -MQEnd- [Module_Declarations_2] [Shape_h] <0000005B.00000000>
#endif