Last change
on this file since 3715 was
3681,
checked in by bensch, 20 years ago
|
orxonox/branches/textEngine: merged trunk here.
merged with command:
svn merge ../trunk textEngine -r 3467:HEAD
no conflicts
|
File size:
555 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file proto_singleton.h |
---|
3 | \brief Definition of the proto class template, used quickly start work |
---|
4 | |
---|
5 | a simple file to copy and create a singleton-class from |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef _PROTO_SINGLETON_H |
---|
9 | #define _PROTO_SINGLETON_H |
---|
10 | |
---|
11 | #include "base_object.h" |
---|
12 | |
---|
13 | // FORWARD DEFINITION \\ |
---|
14 | |
---|
15 | //! A default singleton class. |
---|
16 | class ProtoSingleton : public BaseObject { |
---|
17 | |
---|
18 | public: |
---|
19 | static ProtoSingleton* getInstance(void); |
---|
20 | virtual ~ProtoSingleton(void); |
---|
21 | |
---|
22 | private: |
---|
23 | ProtoSingleton(void); |
---|
24 | static ProtoSingleton* singletonRef; |
---|
25 | }; |
---|
26 | |
---|
27 | #endif /* _PROTO_SINGLETON_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.