[Orxonox-commit 4922] r9591 - code/branches/core6/src/libraries/core/object
landauf at orxonox.net
landauf at orxonox.net
Wed Mar 27 21:31:42 CET 2013
Author: landauf
Date: 2013-03-27 21:31:41 +0100 (Wed, 27 Mar 2013)
New Revision: 9591
Removed:
code/branches/core6/src/libraries/core/object/ContextObject.cc
code/branches/core6/src/libraries/core/object/ContextObject.h
Modified:
code/branches/core6/src/libraries/core/object/CMakeLists.txt
code/branches/core6/src/libraries/core/object/Context.cc
code/branches/core6/src/libraries/core/object/Context.h
Log:
removed ContextObject again
Modified: code/branches/core6/src/libraries/core/object/CMakeLists.txt
===================================================================
--- code/branches/core6/src/libraries/core/object/CMakeLists.txt 2013-03-26 22:57:26 UTC (rev 9590)
+++ code/branches/core6/src/libraries/core/object/CMakeLists.txt 2013-03-27 20:31:41 UTC (rev 9591)
@@ -1,6 +1,5 @@
ADD_SOURCE_FILES(CORE_SRC_FILES
Context.cc
- ContextObject.cc
Destroyable.cc
Listable.cc
MetaObjectList.cc
Modified: code/branches/core6/src/libraries/core/object/Context.cc
===================================================================
--- code/branches/core6/src/libraries/core/object/Context.cc 2013-03-26 22:57:26 UTC (rev 9590)
+++ code/branches/core6/src/libraries/core/object/Context.cc 2013-03-27 20:31:41 UTC (rev 9591)
@@ -32,13 +32,11 @@
*/
#include "Context.h"
-#include "core/CoreIncludes.h"
namespace orxonox
{
- Context::Context(Context* context) : ContextObject(this), parentContext_(context)
+ Context::Context(Context* context) : parentContext_(context)
{
- RegisterRootObject(Context);
}
Context::~Context()
Modified: code/branches/core6/src/libraries/core/object/Context.h
===================================================================
--- code/branches/core6/src/libraries/core/object/Context.h 2013-03-26 22:57:26 UTC (rev 9590)
+++ code/branches/core6/src/libraries/core/object/Context.h 2013-03-27 20:31:41 UTC (rev 9591)
@@ -36,11 +36,9 @@
#include "core/CorePrereqs.h"
-#include "ContextObject.h"
-
namespace orxonox
{
- class _CoreExport Context : public ContextObject
+ class _CoreExport Context
{
public:
Context(Context* context);
Deleted: code/branches/core6/src/libraries/core/object/ContextObject.cc
===================================================================
--- code/branches/core6/src/libraries/core/object/ContextObject.cc 2013-03-26 22:57:26 UTC (rev 9590)
+++ code/branches/core6/src/libraries/core/object/ContextObject.cc 2013-03-27 20:31:41 UTC (rev 9591)
@@ -1,50 +0,0 @@
-/*
- * ORXONOX - the hottest 3D action shooter ever to exist
- * > www.orxonox.net <
- *
- *
- * License notice:
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * Author:
- * Fabian 'x3n' Landau
- * Co-authors:
- * ...
- *
- */
-
-/**
- @file
- @brief Implementation of ContextObject.
-*/
-
-#include "ContextObject.h"
-
-#include <cassert>
-#include "core/CoreIncludes.h"
-#include "Context.h"
-
-namespace orxonox
-{
- ContextObject::ContextObject(Context* context) : context_(context)
- {
- RegisterRootObject(ContextObject);
-
- //assert(context);
- if (!this->context_)
- this->context_ = Context::getRootContext();
- }
-}
Deleted: code/branches/core6/src/libraries/core/object/ContextObject.h
===================================================================
--- code/branches/core6/src/libraries/core/object/ContextObject.h 2013-03-26 22:57:26 UTC (rev 9590)
+++ code/branches/core6/src/libraries/core/object/ContextObject.h 2013-03-27 20:31:41 UTC (rev 9591)
@@ -1,56 +0,0 @@
-/*
- * ORXONOX - the hottest 3D action shooter ever to exist
- * > www.orxonox.net <
- *
- *
- * License notice:
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * Author:
- * Fabian 'x3n' Landau
- * Co-authors:
- * ...
- *
- */
-
-/**
- @file
- @ingroup Object
-*/
-
-#ifndef _ContextObject_H__
-#define _ContextObject_H__
-
-#include "core/CorePrereqs.h"
-
-#include "core/class/OrxonoxClass.h"
-
-namespace orxonox
-{
- class _CoreExport ContextObject : virtual public OrxonoxClass
- {
- public:
- ContextObject(Context* context);
-
- /// Returns the object's Context.
- inline Context* getContext() const { return this->context_; }
-
- private:
- Context* context_; //!< The object's context
- };
-}
-
-#endif /* _ContextObject_H__ */
More information about the Orxonox-commit
mailing list