Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/proto_class.h @ 3543

Last change on this file since 3543 was 3543, checked in by bensch, 19 years ago

orxonox/trunk: some more classes now destroy themselves via virtual-destructors and call to predecessing destroy-function
also made
#include "stdincl.h" out of unnecessary h-files, so we got faster compile time.

File size: 1.0 KB
RevLine 
[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 \\
17class 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]26class ProtoClass : public BaseObject {
[1853]27
[1904]28 public:
[3543]29  ProtoClass();
30  virtual ~ProtoClass();
31  void destroy(void)
[1853]32
[3245]33  bool doNonSense (int nothing);
34
35 private:
[3329]36  int nonSense;  //!< doxygen tag here like this for all the variables - delete this variable if you use this
[3245]37
[1853]38};
39
[3224]40#endif /* _PROTO_CLASS_H */
Note: See TracBrowser for help on using the repository browser.