forked from birkiro/Patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIFactory.h
66 lines (55 loc) · 1.3 KB
/
IFactory.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
/*! \company $CompanyInfo:$
* \version $Revision:$
* \checkindate $Date:$
* \file $RCSfile:$
***************************************************************************/
#pragma once
#include "Shape.h"
#pragma warning(disable: 4786)
// SYSTEM INCLUDES
//
// PROJECT INCLUDES
//
// LOCAL INCLUDES
//
// FORWARD REFERENCES
//
/*! <One line description>
*
* \ingroup <GroupName>
*
* <A longer description>
*
* \see <Something>
****************************************************************************/
class IFactory
{
public:
/*! \name Life Cycle */
//{@
//! Default constructor.
IFactory();
//! Copy constructor.
IFactory(const IFactory& rSource) = delete;
//! Destructor.
virtual ~IFactory();
//@}
/*! \name Operators */
//{@
//! Assignment operator.
IFactory& operator = (const IFactory& rRhs) = delete;
//@}
/*! \name Operations */
//{@
virtual Shape* createShapeInstance(EShapeType type) = 0;
//virtual Shape* createCurvedInstance() = 0;
//virtual Shape* createStraightInstance() = 0;
//@}
/*! \name Access */
//{@
//@}
private:
/*! \name Attributes */
//{@
//@}
};