[Orxonox-commit 5721] r10381 - in code/branches/core7/src/libraries/core: . class
landauf at orxonox.net
landauf at orxonox.net
Wed Apr 22 22:32:05 CEST 2015
Author: landauf
Date: 2015-04-22 22:32:04 +0200 (Wed, 22 Apr 2015)
New Revision: 10381
Modified:
code/branches/core7/src/libraries/core/CoreIncludes.h
code/branches/core7/src/libraries/core/class/Identifier.cc
code/branches/core7/src/libraries/core/class/Identifier.h
Log:
removed check from r10379 again
Modified: code/branches/core7/src/libraries/core/CoreIncludes.h
===================================================================
--- code/branches/core7/src/libraries/core/CoreIncludes.h 2015-04-22 20:30:42 UTC (rev 10380)
+++ code/branches/core7/src/libraries/core/CoreIncludes.h 2015-04-22 20:32:04 UTC (rev 10381)
@@ -79,7 +79,6 @@
#include "CorePrereqs.h"
-#include "util/OrxAssert.h"
#include "util/Output.h"
#include "class/IdentifierManager.h"
#include "object/ClassFactory.h"
@@ -137,7 +136,6 @@
if (ClassIdentifier<ClassName>::getIdentifier(#ClassName)->initializeObject(this)) \
return; \
else \
- OrxVerify(ClassIdentifier<ClassName>::getIdentifier()->isRegistered(), "Assertion failed in ClassIdentifier of type " << typeid(ClassName).name()); \
((void)0)
/**
@@ -172,7 +170,6 @@
Identifier* identifier = ClassIdentifier<T>::getIdentifier(name);
identifier->setFactory(factory);
identifier->setLoadable(bLoadable);
- identifier->setRegistered(true);
return identifier;
}
Modified: code/branches/core7/src/libraries/core/class/Identifier.cc
===================================================================
--- code/branches/core7/src/libraries/core/class/Identifier.cc 2015-04-22 20:30:42 UTC (rev 10380)
+++ code/branches/core7/src/libraries/core/class/Identifier.cc 2015-04-22 20:32:04 UTC (rev 10381)
@@ -54,7 +54,6 @@
{
this->factory_ = 0;
this->bInitialized_ = false;
- this->bRegistered_ = false;
this->bLoadable_ = false;
this->bIsVirtualBase_ = false;
Modified: code/branches/core7/src/libraries/core/class/Identifier.h
===================================================================
--- code/branches/core7/src/libraries/core/class/Identifier.h 2015-04-22 20:30:42 UTC (rev 10380)
+++ code/branches/core7/src/libraries/core/class/Identifier.h 2015-04-22 20:32:04 UTC (rev 10381)
@@ -133,9 +133,6 @@
Identifiable* fabricate(Context* context);
- inline bool isRegistered() const { return this->bRegistered_; }
- inline void setRegistered(bool bRegistered) { this->bRegistered_ = bRegistered; }
-
/// Returns true if the class can be loaded through XML.
inline bool isLoadable() const { return this->bLoadable_; }
/// Set the class to be loadable through XML or not.
@@ -227,7 +224,6 @@
std::set<const Identifier*> children_; //!< The children of the class the Identifier belongs to
bool bInitialized_; //!< Is true if the Identifier was completely initialized
- bool bRegistered_;
bool bLoadable_; //!< False = it's not permitted to load the object through XML
bool bIsVirtualBase_; //!< If true, it is recommended to inherit virtually from this class. This changes the order of initialization of child classes, thus this information is necessary to check the class hierarchy.
std::string name_; //!< The name of the class the Identifier belongs to
More information about the Orxonox-commit
mailing list