forked from birkiro/Patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRobustShapeFactory.h
69 lines (57 loc) · 1.45 KB
/
RobustShapeFactory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*! \company $CompanyInfo:$
* \version $Revision:$
* \checkindate $Date:$
* \file $RCSfile:$
***************************************************************************/
#pragma once
#pragma warning(disable: 4786)
// SYSTEM INCLUDES
//
// PROJECT INCLUDES
//
// LOCAL INCLUDES
//
#include "IFactory.h"
#include "Ellipse.h"
#include "Rectangle.h"
// FORWARD REFERENCES
//
/*! <One line description>
*
* \ingroup <GroupName>
*
* <A longer description>
*
* \see <Something>
****************************************************************************/
class RobustShapeFactory : public IFactory
{
public:
/*! \name Life Cycle */
//{@
//! Default constructor.
RobustShapeFactory();
//! Copy constructor.
RobustShapeFactory(const RobustShapeFactory& rSource) = delete;
//! Destructor.
virtual ~RobustShapeFactory();
//@}
/*! \name Operators */
//{@
//! Assignment operator.
RobustShapeFactory& operator = (const RobustShapeFactory& rRhs) = delete;
//@}
/*! \name Operations */
//{@
Shape* createShapeInstance(EShapeType type);
//Shape* createCurvedInstance() { return new Ellipse; }
//Shape* createStraightInstance() { return new Rectangle; }
//@}
/*! \name Access */
//{@
//@}
private:
/*! \name Attributes */
//{@
//@}
};