Changeset 9561
- Timestamp:
- Mar 24, 2013, 2:02:01 PM (12 years ago)
- Location:
- code/branches/core6/src/libraries/core
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/CorePrereqs.h
r8351 r9561 141 141 class ConfigFileSection; 142 142 class ConfigValueContainer; 143 class Context; 143 144 class Core; 144 145 class DestructionListener; -
code/branches/core6/src/libraries/core/OrxonoxClass.cc
r9557 r9561 36 36 #include <cassert> 37 37 #include "object/MetaObjectList.h" 38 #include "object/Context.h" 38 39 #include "Identifier.h" 39 40 … … 43 44 @brief Constructor: Sets the default values. 44 45 */ 45 OrxonoxClass::OrxonoxClass( )46 OrxonoxClass::OrxonoxClass(Context* context) : context_(context) 46 47 { 48 //assert(context); 49 if (!this->context_) 50 this->context_ = Context::getRootContext(); 51 47 52 this->identifier_ = 0; 48 53 this->parents_ = 0; -
code/branches/core6/src/libraries/core/OrxonoxClass.h
r8866 r9561 70 70 71 71 public: 72 OrxonoxClass( );72 OrxonoxClass(Context* context = NULL); 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_; } 83 86 84 87 bool isA(const Identifier* identifier); … … 167 170 168 171 Identifier* identifier_; //!< The Identifier of the object 172 Context* context_; //!< The object's context 169 173 std::set<const Identifier*>* parents_; //!< List of all parents of the object 170 174 MetaObjectList* metaList_; //!< MetaObjectList, containing all ObjectLists and ObjectListElements the object is registered in -
code/branches/core6/src/libraries/core/object/CMakeLists.txt
r9557 r9561 1 1 ADD_SOURCE_FILES(CORE_SRC_FILES 2 Context.cc 2 3 MetaObjectList.cc 3 4 ObjectListBase.cc
Note: See TracChangeset
for help on using the changeset viewer.