Changeset 9562 for code/branches/core6/src
- Timestamp:
- Mar 24, 2013, 4:16:01 PM (12 years ago)
- Location:
- code/branches/core6/src/libraries/core
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/OrxonoxClass.cc
r9561 r9562 44 44 @brief Constructor: Sets the default values. 45 45 */ 46 OrxonoxClass::OrxonoxClass( Context* context) : context_(context)46 OrxonoxClass::OrxonoxClass() 47 47 { 48 //assert(context);49 if (!this->context_)50 this->context_ = Context::getRootContext();51 52 48 this->identifier_ = 0; 53 49 this->parents_ = 0; -
code/branches/core6/src/libraries/core/OrxonoxClass.h
r9561 r9562 70 70 71 71 public: 72 OrxonoxClass( Context* context = NULL);72 OrxonoxClass(); 73 73 virtual ~OrxonoxClass(); 74 74 … … 81 81 /// Returns the Identifier of the object. 82 82 inline Identifier* getIdentifier() const { return this->identifier_; } 83 84 /// Returns the object's Context.85 inline Context* getContext() const { return this->context_; }86 83 87 84 bool isA(const Identifier* identifier); … … 170 167 171 168 Identifier* identifier_; //!< The Identifier of the object 172 Context* context_; //!< The object's context173 169 std::set<const Identifier*>* parents_; //!< List of all parents of the object 174 170 MetaObjectList* metaList_; //!< MetaObjectList, containing all ObjectLists and ObjectListElements the object is registered in -
code/branches/core6/src/libraries/core/object/CMakeLists.txt
r9561 r9562 1 1 ADD_SOURCE_FILES(CORE_SRC_FILES 2 2 Context.cc 3 ContextObject.cc 3 4 MetaObjectList.cc 4 5 ObjectListBase.cc -
code/branches/core6/src/libraries/core/object/Context.cc
r9561 r9562 37 37 namespace orxonox 38 38 { 39 Context::Context(Context* context) : OrxonoxClass(this), parentContext_(context)39 Context::Context(Context* context) : ContextObject(this), parentContext_(context) 40 40 { 41 41 RegisterRootObject(Context); -
code/branches/core6/src/libraries/core/object/Context.h
r9561 r9562 37 37 #include "core/CorePrereqs.h" 38 38 39 #include " core/OrxonoxClass.h"39 #include "ContextObject.h" 40 40 41 41 namespace orxonox 42 42 { 43 class _CoreExport Context : virtual public OrxonoxClass43 class _CoreExport Context : public ContextObject 44 44 { 45 45 public:
Note: See TracChangeset
for help on using the changeset viewer.