[Orxonox-commit 2860] r7563 - code/branches/ois_update/src/libraries/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Tue Oct 19 23:32:37 CEST 2010
Author: rgrieder
Date: 2010-10-19 23:32:36 +0200 (Tue, 19 Oct 2010)
New Revision: 7563
Modified:
code/branches/ois_update/src/libraries/core/BaseObject.h
Log:
Reverted changes.
Modified: code/branches/ois_update/src/libraries/core/BaseObject.h
===================================================================
--- code/branches/ois_update/src/libraries/core/BaseObject.h 2010-10-19 21:28:30 UTC (rev 7562)
+++ code/branches/ois_update/src/libraries/core/BaseObject.h 2010-10-19 21:32:36 UTC (rev 7563)
@@ -237,47 +237,7 @@
bool bRegisteredEventStates_; //!< Becomes true after the object registered its event states (with XMLEventPort)
};
-#ifdef check
- struct CompilerError
- {
- void CompilerError() {}
- };
-#endif
-
- template <class T, int templatehack2>
- struct SuperFunctionCondition<0, T, 0, templatehack2>
- {
- static void check()
- {
- SuperFunctionCondition<0, T, 0, templatehack2>::apply(static_cast<T*>(0));
- SuperFunctionCondition<0 + 1, T, 0, templatehack2>::check();
- }
-
- static void apply(void* temp) {}
-
- static void apply(BaseObject* temp)
- {
- ClassIdentifier<T>* identifier = ClassIdentifier<T>::getIdentifier();
- for (std::set<const Identifier*>::iterator it = identifier->getDirectChildrenIntern().begin(); it != identifier->getDirectChildrenIntern().end(); ++it)
- {
- if (((ClassIdentifier<T>*)(*it))->bSuperFunctionCaller_XMLPort_isFallback_ && ((ClassIdentifier<T>*)(*it))->superFunctionCaller_XMLPort_)
- {
- delete ((ClassIdentifier<T>*)(*it))->superFunctionCaller_XMLPort_;
- ((ClassIdentifier<T>*)(*it))->superFunctionCaller_XMLPort_ = 0;
- ((ClassIdentifier<T>*)(*it))->bSuperFunctionCaller_XMLPort_isFallback_ = false;
- }
-
- if (!((ClassIdentifier<T>*)(*it))->superFunctionCaller_XMLPort_)
- {
- COUT(5) << "Added SuperFunctionCaller for " << "XMLPort" << ": " << ClassIdentifier<T>::getIdentifier()->getName() << " <- " << ((ClassIdentifier<T>*)(*it))->getName() << std::endl;
- ((ClassIdentifier<T>*)(*it))->superFunctionCaller_XMLPort_ = new SuperFunctionClassCaller_XMLPort <T>;
- }
- }
- }
- };
-
-
- //SUPER_FUNCTION(0, BaseObject, XMLPort, false);
+ SUPER_FUNCTION(0, BaseObject, XMLPort, false);
SUPER_FUNCTION(2, BaseObject, changedActivity, false);
SUPER_FUNCTION(3, BaseObject, changedVisibility, false);
SUPER_FUNCTION(4, BaseObject, XMLEventPort, false);
More information about the Orxonox-commit
mailing list