Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/objecthierarchie/src/BaseObject.h @ 176

Last change on this file since 176 was 176, checked in by landauf, 17 years ago

started to implement BaseIdentifier<class B> template

File size: 1.2 KB
RevLine 
[132]1#ifndef _BaseObject_H__
2#define _BaseObject_H__
3
4#include "ClassHierarchy.h"
[162]5#include "OrxonoxClass.h"
[132]6
[149]7namespace orxonox
8{
[162]9    class BaseObject : virtual public OrxonoxClass
[132]10    {
11        public:
12            BaseObject();
[176]13            virtual ~BaseObject();
[132]14
[149]15            inline bool isA(Identifier* identifier)
[162]16                { this->getIdentifier()->isA(identifier); }
[172]17            inline bool isDirectlyA(Identifier* identifier)
18                { this->getIdentifier()->isDirectlyA(identifier); }
[149]19            inline bool isChildOf(Identifier* identifier)
[162]20                { this->getIdentifier()->isChildOf(identifier); }
[149]21            inline bool isDirectChildOf(Identifier* identifier)
[162]22                { this->getIdentifier()->isDirectChildOf(identifier); }
[149]23            inline bool isParentOf(Identifier* identifier)
[162]24                { this->getIdentifier()->isParentOf(identifier); }
[149]25            inline bool isDirectParentOf(Identifier* identifier)
[162]26                { this->getIdentifier()->isDirectParentOf(identifier); }
[132]27
[162]28//            Identifier* identifier_;
[132]29
[162]30//        protected:
31//            IdentifierList* parents_; // INTERN! Don't touch this!
[132]32
33    };
[149]34}
[132]35
36#endif
Note: See TracBrowser for help on using the repository browser.