Changeset 3154 for code/branches/pch
- Timestamp:
- Jun 13, 2009, 4:30:37 PM (15 years ago)
- Location:
- code/branches/pch/src
- Files:
-
- 74 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/core/ArgumentCompletionFunctions.cc
r2759 r3154 29 29 #include "ArgumentCompletionFunctions.h" 30 30 31 #include <iostream>32 31 #include <map> 33 32 #include <boost/version.hpp> 34 33 #include <boost/filesystem.hpp> 35 34 36 #include "CoreIncludes.h" 35 #include "util/Convert.h" 36 #include "util/String.h" 37 37 #include "Identifier.h" 38 38 #include "ConfigValueContainer.h" 39 39 #include "TclThreadManager.h" 40 #include "util/Convert.h"41 #include "util/String.h"42 40 43 41 // Boost 1.36 has some issues with deprecated functions that have been omitted -
code/branches/pch/src/core/ArgumentCompletionListElement.h
r1784 r3154 32 32 #include "CorePrereqs.h" 33 33 34 #include <list> 34 35 #include <string> 35 #include <list>36 37 36 38 37 namespace orxonox -
code/branches/pch/src/core/BaseObject.cc
r2710 r3154 36 36 #include <tinyxml/tinyxml.h> 37 37 38 #include "util/String.h" 38 39 #include "CoreIncludes.h" 40 #include "Event.h" 39 41 #include "EventIncludes.h" 40 42 #include "Functor.h" 41 #include "XMLPort.h" 43 #include "Iterator.h" 44 #include "Template.h" 42 45 #include "XMLFile.h" 43 46 #include "XMLNameListener.h" 44 #include "Template.h" 45 #include "util/String.h" 46 #include "util/mbool.h" 47 #include "XMLPort.h" 47 48 48 49 namespace orxonox -
code/branches/pch/src/core/BaseObject.h
r3146 r3154 44 44 } 45 45 46 47 #include "CorePrereqs.h" 48 46 49 #include <map> 47 50 #include <list> 48 51 49 #include " CorePrereqs.h"50 52 #include "util/mbool.h" 53 #include "OrxonoxClass.h" 51 54 #include "Super.h" 52 #include "OrxonoxClass.h"53 55 #include "XMLIncludes.h" 54 #include "Event.h"55 #include "util/mbool.h"56 56 57 57 namespace orxonox -
code/branches/pch/src/core/ClassFactory.h
r3145 r3154 41 41 #include <string> 42 42 43 #include "util/Debug.h" 43 44 #include "Factory.h" 44 45 #include "Identifier.h" 45 #include "util/Debug.h"46 46 47 47 namespace orxonox -
code/branches/pch/src/core/ClassTreeMask.cc
r2171 r3154 34 34 #include "ClassTreeMask.h" 35 35 #include "Identifier.h" 36 #include "BaseObject.h"37 36 38 37 namespace orxonox -
code/branches/pch/src/core/ClassTreeMask.h
r2171 r3154 75 75 #include <list> 76 76 #include <stack> 77 77 #include "BaseObject.h" 78 78 #include "Iterator.h" 79 #include "BaseObject.h"80 79 81 80 namespace orxonox -
code/branches/pch/src/core/CommandEvaluation.cc
r2087 r3154 28 28 29 29 #include "CommandEvaluation.h" 30 31 #include "util/Debug.h" 32 #include "util/String.h" 30 33 #include "ConsoleCommand.h" 31 34 #include "Identifier.h" 32 #include "util/Debug.h"33 #include "util/String.h"34 35 35 36 namespace orxonox -
code/branches/pch/src/core/CommandExecutor.cc
r3035 r3154 28 28 29 29 #include "CommandExecutor.h" 30 31 #include "util/Debug.h" 32 #include "util/String.h" 30 33 #include "ConsoleCommand.h" 31 #include "util/String.h"32 #include "util/Debug.h"33 34 #include "Identifier.h" 34 35 #include "Language.h" -
code/branches/pch/src/core/CommandExecutor.h
r3146 r3154 34 34 #include <map> 35 35 #include <set> 36 #include <string> 37 38 #include "util/MultiType.h" 36 39 #include "CommandEvaluation.h" 37 40 -
code/branches/pch/src/core/CommandLine.cc
r3150 r3154 31 31 #include <boost/filesystem.hpp> 32 32 33 #include "util/Convert.h" 34 #include "util/Debug.h" 33 35 #include "util/Exception.h" 34 36 #include "util/String.h" -
code/branches/pch/src/core/CommandLine.h
r3149 r3154 31 31 32 32 #include "CorePrereqs.h" 33 33 34 #include <map> 34 #include "util/Convert.h"35 #include "util/Debug.h"36 35 #include "util/OrxAssert.h" 37 36 #include "util/MultiType.h" -
code/branches/pch/src/core/ConfigFileManager.cc
r3152 r3154 29 29 #include "ConfigFileManager.h" 30 30 31 #include <cassert>32 31 #include <boost/filesystem.hpp> 33 32 34 33 #include "util/Convert.h" 34 #include "util/Math.h" 35 35 #include "util/String.h" 36 36 #include "ConsoleCommand.h" -
code/branches/pch/src/core/ConfigFileManager.h
r2662 r3154 32 32 #include "CorePrereqs.h" 33 33 34 #include < iostream>34 #include <cassert> 35 35 #include <string> 36 36 #include <list> 37 37 #include <map> 38 38 39 #include "util/Math.h"40 39 #include "util/OrxEnum.h" 41 40 -
code/branches/pch/src/core/ConfigValueContainer.cc
r3152 r3154 34 34 #include "ConfigValueContainer.h" 35 35 36 #include <fstream> 37 36 #include "util/Convert.h" 38 37 #include "util/SubString.h" 39 #include "util/Convert.h"40 38 #include "Language.h" 41 #include "Identifier.h"42 43 44 39 45 40 namespace orxonox -
code/branches/pch/src/core/ConfigValueContainer.h
r2662 r3154 49 49 #include <vector> 50 50 51 #include "util/Math.h"52 51 #include "util/MultiType.h" 53 52 #include "ConfigFileManager.h" -
code/branches/pch/src/core/ConsoleCommand.h
r2662 r3154 32 32 #include "CorePrereqs.h" 33 33 34 #include "ArgumentCompletionFunctions.h" 35 #include "CommandExecutor.h" 34 36 #include "Executor.h" 35 37 #include "Identifier.h" 36 #include "CommandExecutor.h"37 #include "ArgumentCompletionFunctions.h"38 38 39 39 -
code/branches/pch/src/core/ConsoleCommandCompilation.cc
r1747 r3154 28 28 29 29 #include "ConsoleCommandCompilation.h" 30 #include "ConsoleCommand.h" 30 31 #include <fstream> 32 #include <set> 33 #include <string> 34 31 35 #include "util/Debug.h" 32 36 #include "util/ExprParser.h" 37 #include "ConsoleCommand.h" 33 38 34 39 namespace orxonox -
code/branches/pch/src/core/ConsoleCommandCompilation.h
r1505 r3154 32 32 #include "CorePrereqs.h" 33 33 34 #include <string>35 36 34 namespace orxonox 37 35 { -
code/branches/pch/src/core/CorePrereqs.h
r2896 r3154 36 36 37 37 #include "OrxonoxConfig.h" 38 39 #include <string>40 38 41 39 //----------------------------------------------------------------------- … … 190 188 } 191 189 190 // CppTcl 191 namespace Tcl 192 { 193 class interpreter; 194 class object; 195 } 196 192 197 #endif /* _CorePrereqs_H__ */ -
code/branches/pch/src/core/Event.cc
r2087 r3154 28 28 29 29 #include "Event.h" 30 30 31 #include "BaseObject.h" 31 32 #include "Executor.h" -
code/branches/pch/src/core/Event.h
r2087 r3154 31 31 32 32 #include "CorePrereqs.h" 33 #include <string> 33 34 34 35 namespace orxonox -
code/branches/pch/src/core/Executor.cc
r1879 r3154 29 29 30 30 #include "Executor.h" 31 #include "util/Math.h" 31 32 32 #include "util/Convert.h" 33 33 #include "Language.h" -
code/branches/pch/src/core/Executor.h
r1889 r3154 33 33 #include "CorePrereqs.h" 34 34 35 #include "util/Debug.h" 36 #include "util/Math.h" 37 #include "util/String.h" 35 38 #include "util/SubString.h" 36 #include "util/String.h"37 #include "util/Math.h"38 39 #include "Functor.h" 39 #include "util/Debug.h"40 40 41 41 -
code/branches/pch/src/core/Factory.cc
r2761 r3154 33 33 34 34 #include "Factory.h" 35 36 #include "util/Debug.h" 35 37 #include "Identifier.h" 36 38 #include "BaseObject.h" 37 #include "util/Debug.h"38 39 39 40 namespace orxonox -
code/branches/pch/src/core/Functor.h
r2710 r3154 33 33 #include "CorePrereqs.h" 34 34 35 #include "util/Debug.h" 35 36 #include "util/MultiType.h" 36 37 #include "util/String.h" 37 #include "util/Debug.h"38 39 38 40 39 namespace orxonox -
code/branches/pch/src/core/Game.cc
r3124 r3154 36 36 37 37 #include <exception> 38 #include <cassert>39 38 #include <boost/weak_ptr.hpp> 40 39 -
code/branches/pch/src/core/Game.h
r3124 r3154 37 37 38 38 #include "CorePrereqs.h" 39 39 40 #include <cassert> 40 41 #include <list> … … 42 43 #include <vector> 43 44 #include <boost/shared_ptr.hpp> 45 44 46 #include "OrxonoxClass.h" 45 47 -
code/branches/pch/src/core/GameState.cc
r3149 r3154 34 34 35 35 #include "GameState.h" 36 36 37 #include "util/Debug.h" 37 38 #include "util/Exception.h" 38 39 #include "util/OrxAssert.h" 39 #include "Clock.h"40 40 41 41 namespace orxonox -
code/branches/pch/src/core/GameState.h
r3084 r3154 38 38 #include "CorePrereqs.h" 39 39 40 #include <map> 40 41 #include <string> 41 #include <map>42 #include "CorePrereqs.h"43 42 44 43 namespace orxonox -
code/branches/pch/src/core/IRC.cc
r1792 r3154 29 29 #include "IRC.h" 30 30 31 #include <boost/thread/thread.hpp> 31 #include <cpptcl/cpptcl.h> 32 33 #include "util/Convert.h" 32 34 #include "ConsoleCommand.h" 35 #include "CoreIncludes.h" 33 36 #include "TclThreadManager.h" 34 #include "CoreIncludes.h"35 #include "util/Convert.h"36 37 37 38 38 namespace orxonox -
code/branches/pch/src/core/IRC.h
r2710 r3154 31 31 32 32 #include "CorePrereqs.h" 33 34 #include <cpptcl/cpptcl.h>35 33 #include "OrxonoxClass.h" 36 34 -
code/branches/pch/src/core/Identifier.cc
r3151 r3154 36 36 #include <ostream> 37 37 38 #include " Factory.h"38 #include "util/String.h" 39 39 #include "ConfigValueContainer.h" 40 40 #include "ConsoleCommand.h" 41 #include " CommandExecutor.h"41 #include "Factory.h" 42 42 #include "XMLPort.h" 43 43 -
code/branches/pch/src/core/Identifier.h
r3151 r3154 55 55 #include "CorePrereqs.h" 56 56 57 #include <cassert> 58 #include <map> 57 59 #include <set> 58 #include <map>59 #include <vector>60 60 #include <string> 61 #include <utility>62 61 #include <typeinfo> 63 #include <cstdlib> 64 #include <cassert> 65 62 63 #include "util/Debug.h" 66 64 #include "MetaObjectList.h" 67 #include "Iterator.h" 65 #include "ObjectList.h" 66 #include "ObjectListBase.h" 68 67 #include "Super.h" 69 #include "Functor.h"70 #include "util/Debug.h"71 #include "util/String.h"72 68 73 69 namespace orxonox -
code/branches/pch/src/core/Iterator.h
r2896 r3154 47 47 #include "CorePrereqs.h" 48 48 49 #include "Identifier.h" 49 50 #include "ObjectListBase.h" 50 #include "ObjectListIterator.h"51 #include "OrxonoxClass.h"52 51 53 52 namespace orxonox … … 305 304 } 306 305 307 // Include ObjectList.h so the user only has to include one file: Iterator.h308 #include "ObjectList.h"309 310 306 #endif /* _Iterator_H__ */ -
code/branches/pch/src/core/Language.cc
r2759 r3154 37 37 #include <boost/filesystem.hpp> 38 38 39 #include "util/Debug.h" 39 40 #include "Core.h" 40 #include "util/Debug.h"41 41 42 42 namespace orxonox -
code/branches/pch/src/core/Loader.cc
r3008 r3154 32 32 #include <boost/filesystem.hpp> 33 33 34 #include "XMLFile.h" 34 #include "util/Debug.h" 35 #include "util/Exception.h" 35 36 #include "BaseObject.h" 36 #include " Identifier.h"37 #include "Core.h" 37 38 #include "Iterator.h" 38 39 #include "ObjectList.h" 39 #include "CoreIncludes.h"40 40 #include "LuaBind.h" 41 41 #include "Namespace.h" 42 #include "util/Debug.h" 43 #include "util/Exception.h" 44 #include "Core.h" 42 #include "XMLFile.h" 45 43 46 44 namespace orxonox -
code/branches/pch/src/core/Loader.h
r3008 r3154 33 33 34 34 #include <vector> 35 36 35 #include "ClassTreeMask.h" 37 36 -
code/branches/pch/src/core/LuaBind.cc
r3068 r3154 31 31 #include <fstream> 32 32 #include <map> 33 34 33 extern "C" { 35 #include <lua.h>36 34 #include <lualib.h> 37 35 } … … 39 37 #include <boost/filesystem.hpp> 40 38 39 #include "util/Debug.h" 41 40 #include "util/String.h" 42 #include "util/Debug.h"43 41 #include "ToluaBindCore.h" 44 42 #include "Core.h" … … 72 70 } 73 71 74 void LuaBind::luaPrint( std::stringstr)72 void LuaBind::luaPrint(const std::string& str) 75 73 { 76 74 output_ += str; … … 84 82 @param luaTags if true, the loaded file gets stripped off luaTags 85 83 */ 86 void LuaBind::loadFile( std::stringfilename, bool luaTags)84 void LuaBind::loadFile(const std::string& filename, bool luaTags) 87 85 { 88 86 boost::filesystem::path filepath(filename); … … 117 115 } 118 116 119 void LuaBind::loadString( std::stringcode)117 void LuaBind::loadString(const std::string& code) 120 118 { 121 119 luaSource_ = code; -
code/branches/pch/src/core/LuaBind.h
r3068 r3154 38 38 #include "CorePrereqs.h" 39 39 40 #include <cassert> 41 #include <string> 40 42 extern "C" { 41 43 #include <lua.h> 42 44 } 43 44 #include <cassert>45 #include <list>46 #include <string>47 45 48 46 // tolua_begin … … 64 62 inline static LuaBind& getInstance() { assert(singletonRef_s); return *LuaBind::singletonRef_s; } // tolua_export 65 63 66 void loadFile( std::stringfilename, bool luaTags);67 void loadString( std::stringcode);64 void loadFile(const std::string& filename, bool luaTags); 65 void loadString(const std::string& code); 68 66 //void init(lua_State *state_); 69 67 //void xmlToLua(); 70 68 void run(); 71 void luaPrint( std::stringstr); // tolua_export69 void luaPrint(const std::string& str); // tolua_export 72 70 73 71 #if LUA_VERSION_NUM != 501 … … 76 74 77 75 inline lua_State* getLuaState() { return luaState_; }; 78 inline std::stringgetLuaOutput() { return output_; };76 inline const std::string& getLuaOutput() { return output_; }; 79 77 //inline std::string* getFileString() { return &fileString_; }; 80 78 inline void clearLuaOutput() { output_ = ""; } -
code/branches/pch/src/core/MetaObjectList.cc
r2171 r3154 33 33 34 34 #include "MetaObjectList.h" 35 36 #include "util/Debug.h" 37 #include "Identifier.h" 35 38 #include "ObjectListBase.h" 36 #include "Identifier.h"37 #include "util/Debug.h"38 39 39 40 namespace orxonox -
code/branches/pch/src/core/Namespace.cc
r2087 r3154 28 28 29 29 #include "Namespace.h" 30 31 #include <set> 32 30 33 #include "NamespaceNode.h" 31 34 #include "CoreIncludes.h" -
code/branches/pch/src/core/Namespace.h
r2087 r3154 32 32 #include "CorePrereqs.h" 33 33 34 #include < map>35 34 #include <set> 35 #include <string> 36 36 #include "XMLIncludes.h" 37 37 #include "BaseObject.h" -
code/branches/pch/src/core/ObjectListBase.cc
r2784 r3154 35 35 */ 36 36 37 #include "ObjectListBase.h" 38 37 39 #include <set> 38 39 #include "CorePrereqs.h"40 41 #include "ObjectListBase.h"42 40 #include "Identifier.h" 43 41 #include "Iterator.h" 42 #include "ObjectListIterator.h" 44 43 45 44 namespace orxonox -
code/branches/pch/src/core/ObjectListBase.h
r2896 r3154 38 38 #define _ObjectListBase_H__ 39 39 40 #include "CorePrereqs.h" 41 40 42 #include <vector> 41 42 #include "CorePrereqs.h" 43 #include "OrxonoxClass.h" 43 44 44 45 namespace orxonox … … 139 140 140 141 private: 141 Identifier* identifier_; //!< The Iterator owning this list142 ObjectListBaseElement* first_; //!< The first element in the list143 ObjectListBaseElement* last_; //!< The last element in the list142 Identifier* identifier_; //!< The Iterator owning this list 143 ObjectListBaseElement* first_; //!< The first element in the list 144 ObjectListBaseElement* last_; //!< The last element in the list 144 145 std::vector<void*> iterators_; //!< A list of Iterators pointing on an element in this list 145 146 std::vector<void*> objectListIterators_; //!< A list of ObjectListIterators pointing on an element in this list -
code/branches/pch/src/core/ObjectListIterator.h
r2784 r3154 28 28 29 29 /** 30 @file Iterator.h30 @file 31 31 @brief Definition and implementation of the Iterator class. 32 32 … … 47 47 48 48 #include "CorePrereqs.h" 49 #include "ObjectListBase.h" 49 #include "Identifier.h" 50 #include "ObjectList.h" 50 51 51 52 namespace orxonox … … 230 231 } 231 232 232 // Include ObjectList.h so the user only has to include one file: Iterator.h233 #include "ObjectList.h"234 235 233 #endif /* _ObjectListIterator_H__ */ -
code/branches/pch/src/core/OrxonoxClass.cc
r2171 r3154 33 33 34 34 #include "OrxonoxClass.h" 35 35 36 #include "MetaObjectList.h" 36 37 #include "Identifier.h" -
code/branches/pch/src/core/OrxonoxClass.h
r2171 r3154 39 39 40 40 #include "CorePrereqs.h" 41 42 41 #include <set> 43 #include <string>44 42 45 43 namespace orxonox -
code/branches/pch/src/core/Shell.cc
r2662 r3154 28 28 29 29 #include "Shell.h" 30 31 #include "util/OutputHandler.h" 30 32 #include "CommandExecutor.h" 31 33 #include "CoreIncludes.h" … … 33 35 #include "Core.h" 34 36 #include "ConsoleCommand.h" 35 #include "util/OutputHandler.h"36 37 37 38 #define SHELL_UPDATE_LISTENERS(function) \ -
code/branches/pch/src/core/Shell.h
r1792 r3154 32 32 #include "CorePrereqs.h" 33 33 34 #include <cassert> 34 35 #include <list> 36 #include <string> 35 37 #include <vector> 36 38 -
code/branches/pch/src/core/Super.h
r2662 r3154 66 66 #ifndef _Super_H__ 67 67 #define _Super_H__ 68 69 #include <iostream>70 68 71 69 #include "CorePrereqs.h" -
code/branches/pch/src/core/TclBind.cc
r2710 r3154 29 29 #include "TclBind.h" 30 30 31 #include < iostream>31 #include <exception> 32 32 #include <string> 33 #include "ConsoleCommand.h" 34 #include "CommandExecutor.h" 35 #include "TclThreadManager.h" 33 #include <cpptcl/cpptcl.h> 34 36 35 #include "util/Debug.h" 37 36 #include "util/String.h" 37 #include "CommandExecutor.h" 38 #include "ConsoleCommand.h" 39 #include "TclThreadManager.h" 38 40 39 41 namespace orxonox -
code/branches/pch/src/core/TclBind.h
r2710 r3154 32 32 #include "CorePrereqs.h" 33 33 34 #include <cpptcl/cpptcl.h> 34 #include <cassert> 35 #include <string> 35 36 36 37 namespace orxonox -
code/branches/pch/src/core/TclThreadManager.cc
r2896 r3154 29 29 #include "TclThreadManager.h" 30 30 31 #include <iostream>32 #include <string>33 #include <boost/thread/thread.hpp>34 31 #include <boost/bind.hpp> 35 32 #include <OgreTimer.h> 36 33 #include <cpptcl/cpptcl.h> 34 35 #include "util/Convert.h" 36 #include "util/Debug.h" 37 37 #include "Clock.h" 38 #include "CommandExecutor.h" 39 #include "ConsoleCommand.h" 38 40 #include "CoreIncludes.h" 39 #include "ConsoleCommand.h"40 #include "CommandExecutor.h"41 41 #include "TclBind.h" 42 #include "util/Debug.h"43 #include "util/Convert.h"44 45 42 46 43 namespace orxonox -
code/branches/pch/src/core/TclThreadManager.h
r2896 r3154 32 32 #include "CorePrereqs.h" 33 33 34 #include < queue>34 #include <list> 35 35 #include <map> 36 #include < list>37 36 #include <string> 37 #include <boost/thread/condition.hpp> 38 38 #include <boost/thread/mutex.hpp> 39 #include <boost/thread/condition.hpp>40 39 #include <boost/thread/thread.hpp> 41 40 42 #include <cpptcl/cpptcl.h>43 41 #include "core/OrxonoxClass.h" 44 42 -
code/branches/pch/src/core/Template.cc
r3068 r3154 29 29 #include "Template.h" 30 30 31 #include <tinyxml/tinyxml.h> 31 32 #include <tinyxml/ticpp.h> 32 33 34 #include "util/Debug.h" 33 35 #include "core/CoreIncludes.h" 34 36 #include "core/XMLPort.h" 35 #include "util/Debug.h"36 37 37 38 namespace orxonox … … 39 40 CreateFactory(Template); 40 41 41 Template::Template(BaseObject* creator) : BaseObject(creator) , xmlelement_("")42 Template::Template(BaseObject* creator) : BaseObject(creator) 42 43 { 43 44 RegisterObject(Template); 44 45 46 this->xmlelement_ = new TiXmlElement(""); 45 47 this->bIsLink_ = false; 46 48 this->bLoadDefaults_ = true; … … 52 54 { 53 55 Template::getTemplateMap().erase(this->getName()); 56 delete this->xmlelement_; 54 57 } 55 58 … … 90 93 } 91 94 95 void Template::setXMLElement(const TiXmlElement& xmlelement) 96 { 97 *this->xmlelement_ = xmlelement; 98 } 99 92 100 const TiXmlElement& Template::getXMLElement() const 93 101 { … … 115 123 } 116 124 117 return this->xmlelement_;125 return *this->xmlelement_; 118 126 } 119 127 -
code/branches/pch/src/core/Template.h
r3068 r3154 30 30 #define _Template_H__ 31 31 32 #include <map>33 34 32 #include "CorePrereqs.h" 35 33 36 #include <tinyxml/tinyxml.h> 34 #include <map> 35 #include <string> 37 36 #include "BaseObject.h" 38 37 … … 58 57 { return this->bLoadDefaults_; } 59 58 60 inline void setXMLElement(const TiXmlElement& xmlelement) 61 { this->xmlelement_ = xmlelement; } 59 void setXMLElement(const TiXmlElement& xmlelement); 62 60 const TiXmlElement& getXMLElement() const; 63 61 … … 75 73 76 74 private: 77 TiXmlElement xmlelement_;75 TiXmlElement* xmlelement_; 78 76 std::string link_; 79 77 std::string baseclass_; -
code/branches/pch/src/core/XMLFile.h
r3068 r3154 33 33 34 34 #include <string> 35 36 35 #include "ClassTreeMask.h" 37 36 -
code/branches/pch/src/core/XMLPort.cc
r1789 r3154 28 28 29 29 #include "XMLPort.h" 30 #include "Language.h" 30 31 31 #include "Loader.h" 32 32 #include "Namespace.h" 33 #include "CoreIncludes.h"34 33 35 34 namespace orxonox … … 40 39 bool XMLPortObjectContainer::identifierIsIncludedInLoaderMask(const Identifier* identifier) 41 40 { 42 return ((!this->bApplyLoaderMask_) || identifier->isA(Class (Namespace)) || Loader::currentMask_s.isIncluded(identifier));41 return ((!this->bApplyLoaderMask_) || identifier->isA(ClassIdentifier<Namespace>::getIdentifier()) || Loader::currentMask_s.isIncluded(identifier)); 43 42 } 44 43 } -
code/branches/pch/src/core/XMLPort.h
r3149 r3154 44 44 45 45 #include <cassert> 46 #include <string> 46 47 #include <tinyxml/ticpp.h> 48 47 49 #include "util/Debug.h" 48 50 #include "util/Exception.h" 51 #include "util/MultiType.h" 49 52 #include "util/OrxAssert.h" 50 #include "util/MultiType.h" 53 #include "Identifier.h" 54 #include "Executor.h" 55 #include "BaseObject.h" 51 56 #include "XMLIncludes.h" 52 #include "Executor.h"53 #include "CoreIncludes.h"54 #include "BaseObject.h"55 57 56 58 // ------------ … … 177 179 */ 178 180 #define XMLPortParamGeneric(containername, classname, objectclass, object, paramname, loadexecutor, saveexecutor, xmlelement, mode) \ 179 orxonox::XMLPortClassParamContainer<objectclass>* containername = (orxonox::XMLPortClassParamContainer<objectclass>*)(ClassIdentifier<classname>::getIdentifier()->getXMLPortParamContainer(paramname)); \181 orxonox::XMLPortClassParamContainer<objectclass>* containername = static_cast<orxonox::XMLPortClassParamContainer<objectclass>*>(ClassIdentifier<classname>::getIdentifier()->getXMLPortParamContainer(paramname)); \ 180 182 if (!containername) \ 181 183 { \ … … 546 548 for (ticpp::Iterator<ticpp::Element> child = xmlsubelement->FirstChildElement(false); child != child.end(); child++) 547 549 { 548 Identifier* identifier = ClassByString(child->Value());550 Identifier* identifier = Factory::getIdentifier(child->Value()); 549 551 if (identifier) 550 552 { 551 if (identifier->isA(Class (O)))553 if (identifier->isA(ClassIdentifier<O>::getIdentifier())) 552 554 { 553 555 if (identifier->isLoadable()) … … 607 609 else 608 610 { 609 COUT(2) << object->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a '" << Class (O)->getName() << "'." << std::endl;611 COUT(2) << object->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a '" << ClassIdentifier<O>::getIdentifier()->getName() << "'." << std::endl; 610 612 } 611 613 } … … 627 629 { 628 630 COUT(1) << std::endl; 629 COUT(1) << "An error occurred in XMLPort.h while loading a '" << Class (O)->getName() << "' in '" << this->sectionname_ << "' of '" << this->identifier_->getName() << "' (objectname: " << object->getName() << ") in " << object->getFilename() << ":" << std::endl;631 COUT(1) << "An error occurred in XMLPort.h while loading a '" << ClassIdentifier<O>::getIdentifier()->getName() << "' in '" << this->sectionname_ << "' of '" << this->identifier_->getName() << "' (objectname: " << object->getName() << ") in " << object->getFilename() << ":" << std::endl; 630 632 COUT(1) << ex.what() << std::endl; 631 633 } -
code/branches/pch/src/core/input/InputManager.cc
r3150 r3154 41 41 #include <ois/OISInputManager.h> 42 42 43 #include "util/Convert.h" 43 44 #include "util/Exception.h" 44 45 #include "util/Debug.h" … … 48 49 #include "core/ConsoleCommand.h" 49 50 #include "core/CommandLine.h" 51 #include "core/ObjectList.h" 50 52 51 53 #include "InputBuffer.h" -
code/branches/pch/src/network/GamestateClient.cc
r3102 r3154 34 34 #include "core/CoreIncludes.h" 35 35 #include "core/BaseObject.h" 36 #include "core/ Iterator.h"36 #include "core/ObjectList.h" 37 37 #include "synchronisable/Synchronisable.h" 38 38 #include "synchronisable/NetworkCallbackManager.h" -
code/branches/pch/src/network/NetworkFunction.h
r3084 r3154 37 37 #include <cassert> 38 38 #include "util/MultiType.h" 39 #include "core/Functor.h" 39 40 #include "synchronisable/Synchronisable.h" 40 41 #include "OrxonoxConfig.h" -
code/branches/pch/src/network/Server.cc
r3102 r3154 54 54 #include "core/ConsoleCommand.h" 55 55 #include "core/CoreIncludes.h" 56 #include "core/ Iterator.h"56 #include "core/ObjectList.h" 57 57 #include "packet/Chat.h" 58 58 #include "packet/Packet.h" -
code/branches/pch/src/network/packet/Gamestate.cc
r3084 r3154 36 36 #include "core/GameMode.h" 37 37 #include "core/CoreIncludes.h" 38 #include "core/ Iterator.h"38 #include "core/ObjectList.h" 39 39 40 40 -
code/branches/pch/src/orxonox/CameraManager.cc
r3131 r3154 34 34 #include "util/String.h" 35 35 #include "core/GameMode.h" 36 #include "core/ Iterator.h"36 #include "core/ObjectList.h" 37 37 #include "tools/Shader.h" 38 38 #include "objects/worldentities/Camera.h" -
code/branches/pch/src/orxonox/gamestates/GSLevel.cc
r3110 r3154 148 148 if (show) 149 149 { 150 GUIManager::getInstance Ptr()->showGUI("inGameTest");151 GUIManager::getInstance Ptr()->executeCode("showCursor()");150 GUIManager::getInstance().showGUI("inGameTest"); 151 GUIManager::getInstance().executeCode("showCursor()"); 152 152 InputManager::getInstance().requestEnterState("guiMouseOnly"); 153 153 } 154 154 else 155 155 { 156 GUIManager::getInstance Ptr()->executeCode("hideGUI(\"inGameTest\")");157 GUIManager::getInstance Ptr()->executeCode("hideCursor()");156 GUIManager::getInstance().executeCode("hideGUI(\"inGameTest\")"); 157 GUIManager::getInstance().executeCode("hideCursor()"); 158 158 InputManager::getInstance().requestLeaveState("guiMouseOnly"); 159 159 } -
code/branches/pch/src/orxonox/objects/Radar.cc
r3110 r3154 37 37 #include "core/CoreIncludes.h" 38 38 #include "core/ConsoleCommand.h" 39 #include "core/ Iterator.h"39 #include "core/ObjectList.h" 40 40 #include "RadarListener.h" 41 41 -
code/branches/pch/src/orxonox/objects/Radar.h
r1818 r3154 39 39 #include <map> 40 40 #include <string> 41 #include "core/ Iterator.h"41 #include "core/ObjectList.h" 42 42 #include "core/OrxonoxClass.h" 43 43 #include "objects/Tickable.h" -
code/branches/pch/src/orxonox/objects/weaponsystem/projectiles/Projectile.cc
r3110 r3154 34 34 #include "core/Executor.h" 35 35 #include "core/ConfigValueIncludes.h" 36 #include "core/ Iterator.h"36 #include "core/ObjectList.h" 37 37 #include "tools/ParticleInterface.h" 38 38 -
code/branches/pch/src/orxonox/objects/worldentities/Camera.cc
r3110 r3154 37 37 38 38 #include "util/Exception.h" 39 #include "util/String.h" 39 40 #include "core/CoreIncludes.h" 40 41 #include "core/ConfigValueIncludes.h" -
code/branches/pch/src/orxonox/overlays/OverlayGroup.cc
r3110 r3154 37 37 #include "core/ConsoleCommand.h" 38 38 #include "core/CoreIncludes.h" 39 #include "core/ Iterator.h"39 #include "core/ObjectList.h" 40 40 #include "core/XMLPort.h" 41 41 #include "OrxonoxOverlay.h" -
code/branches/pch/src/orxonox/overlays/map/Map.cc
r3144 r3154 31 31 #include <OgreBorderPanelOverlayElement.h> 32 32 #include <OgreCamera.h> 33 #include <OgreEntity.h> 33 34 #include <OgreHardwarePixelBuffer.h> 34 35 #include <OgreMaterialManager.h> … … 50 51 #include "core/ConsoleCommand.h" 51 52 #include "core/CoreIncludes.h" 52 #include "core/ Iterator.h"53 #include "core/ObjectList.h" 53 54 #include "core/XMLPort.h" 54 55 #include "objects/Scene.h" … … 265 266 } 266 267 267 Ogre::MaterialPtr Map::createRenderCamera(Ogre::Camera * cam, std::stringmatName)268 Ogre::MaterialPtr Map::createRenderCamera(Ogre::Camera * cam, const std::string& matName) 268 269 { 269 270 Ogre::TexturePtr rttTex = Ogre::TextureManager::getSingleton().createManual(matName+"_tex", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::TEX_TYPE_2D, 512, 512, 0, Ogre::PF_R8G8B8, Ogre::TU_RENDERTARGET); -
code/branches/pch/src/orxonox/overlays/map/Map.h
r3144 r3154 30 30 #include "OrxonoxPrereqs.h" 31 31 32 #include <string>33 32 #include <OgreMaterial.h> 34 33 … … 50 49 virtual void changedOwner(); 51 50 52 static Ogre::MaterialPtr createRenderCamera(Ogre::Camera * cam, std::stringmatName);51 static Ogre::MaterialPtr createRenderCamera(Ogre::Camera * cam, const std::string& matName); 53 52 54 53 static void openMap();
Note: See TracChangeset
for help on using the changeset viewer.