Last change
on this file since 3567 was
3544,
checked in by bensch, 20 years ago
|
orxonox/trunk: now the delete-process is as inteded by c++
virtual ~ClassName extends deletion and deletes also the MasterClass
|
File size:
1.0 KB
|
Rev | Line | |
---|
[3245] | 1 | /*! |
---|
[3246] | 2 | \file proto_class.h |
---|
| 3 | \brief Definition of the proto class template, used quickly start work |
---|
[3329] | 4 | \todo Example: this shows how to use simply add a Marker that here has to be done something. |
---|
| 5 | |
---|
| 6 | The Protoclass exists, to help you quikly getting the run for how to develop in orxonox. |
---|
| 7 | It is an example for the CODING-CONVENTION, and a starting-point for every class. |
---|
[3245] | 8 | */ |
---|
[1853] | 9 | |
---|
[3224] | 10 | #ifndef _PROTO_CLASS_H |
---|
| 11 | #define _PROTO_CLASS_H |
---|
[1853] | 12 | |
---|
[3543] | 13 | #include "what realy has to be included" |
---|
| 14 | #include "base_object.h" |
---|
[1853] | 15 | |
---|
[3543] | 16 | // FORWARD DEFINITION \\ |
---|
| 17 | class someClassWeNeed; |
---|
| 18 | |
---|
| 19 | |
---|
[3245] | 20 | /*class Test;*/ /* forward definition of class Test (without including it here!)*/ |
---|
[2036] | 21 | |
---|
[3329] | 22 | //! A default class that aids you to start creating a new class |
---|
| 23 | /** |
---|
| 24 | here can be some longer description of this class |
---|
| 25 | */ |
---|
[3365] | 26 | class ProtoClass : public BaseObject { |
---|
[1853] | 27 | |
---|
[1904] | 28 | public: |
---|
[3543] | 29 | ProtoClass(); |
---|
| 30 | virtual ~ProtoClass(); |
---|
[1853] | 31 | |
---|
[3245] | 32 | bool doNonSense (int nothing); |
---|
| 33 | |
---|
| 34 | private: |
---|
[3329] | 35 | int nonSense; //!< doxygen tag here like this for all the variables - delete this variable if you use this |
---|
[3245] | 36 | |
---|
[1853] | 37 | }; |
---|
| 38 | |
---|
[3224] | 39 | #endif /* _PROTO_CLASS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.