Changeset 820 for code/branches/core/src/orxonox
- Timestamp:
- Feb 17, 2008, 3:40:02 PM (17 years ago)
- Location:
- code/branches/core/src/orxonox
- Files:
-
- 3 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/Orxonox.cc
r818 r820 84 84 #include "objects/test2.h" 85 85 #include "objects/test3.h" 86 #include "core/Loader.h" 86 87 87 88 #include "Orxonox.h" … … 849 850 std::cout << "2\n"; 850 851 */ 851 852 /* 852 853 std::cout << "Test 13\n"; 853 854 … … 1110 1111 1111 1112 std::cout << "13\n"; 1113 */ 1112 1114 /* 1113 1115 std::cout << "Test 14\n"; … … 1134 1136 std::cout << "2\n"; 1135 1137 */ 1138 1139 std::cout << "Test 15\n"; 1140 std::cout << "1\n"; 1141 1142 Level* test15_1 = new Level("levels/sample.oxw"); 1143 Loader::open(test15_1); 1144 1145 std::cout << "2\n"; 1146 1136 1147 // startRenderLoop(); 1137 1148 } -
code/branches/core/src/orxonox/core/BaseObject.cc
r813 r820 45 45 { 46 46 RegisterRootObject(BaseObject); 47 48 this->level_ = 0; 47 49 } 48 50 -
code/branches/core/src/orxonox/core/BaseObject.h
r813 r820 50 50 virtual ~BaseObject(); 51 51 virtual void loadParams(TiXmlElement* xmlElem); 52 53 /** @brief Returns a pointer to the level that loaded this object. @return The level */ 54 inline const Level* getLevel() const { return this->level_; } 55 56 private: 57 const Level* level_; //!< The level that loaded this object 52 58 }; 53 59 ExportClass(BaseObject, Core); -
code/branches/core/src/orxonox/core/CMakeLists.txt
r813 r820 14 14 Language.cc 15 15 ClassTreeMask.cc 16 # Level.cc16 Loader.cc 17 17 ) 18 18 -
code/branches/core/src/orxonox/core/ConfigValueContainer.cc
r813 r820 876 876 if (!file.is_open()) 877 877 { 878 COUT(1) << "An error occurred in ConfigValueContainer :" << std::endl;878 COUT(1) << "An error occurred in ConfigValueContainer.cc:" << std::endl; 879 879 COUT(1) << "Error: Couldn't open config-file " << filename << " to read the config values!" << std::endl; 880 880 return; … … 923 923 if (!file.is_open()) 924 924 { 925 COUT(1) << "An error occurred in ConfigValueContainer :" << std::endl;925 COUT(1) << "An error occurred in ConfigValueContainer.cc:" << std::endl; 926 926 COUT(1) << "Error: Couldn't open config-file " << filename << " to write the config values!" << std::endl; 927 927 return; -
code/branches/core/src/orxonox/core/CoreIncludes.h
r813 r820 79 79 */ 80 80 #define RegisterObject(ClassName) \ 81 COUT( 4) << "*** Register Object: " << #ClassName << std::endl; \81 COUT(5) << "*** Register Object: " << #ClassName << std::endl; \ 82 82 InternRegisterObject(ClassName, false) 83 83 … … 87 87 */ 88 88 #define RegisterRootObject(ClassName) \ 89 COUT( 4) << "*** Register Root-Object: " << #ClassName << std::endl; \89 COUT(5) << "*** Register Root-Object: " << #ClassName << std::endl; \ 90 90 InternRegisterRootObject(ClassName) 91 91 -
code/branches/core/src/orxonox/core/CorePrereqs.h
r813 r820 81 81 class Identifier; 82 82 class IdentifierDistributor; 83 // class IdentifierList;84 // class IdentifierListElement;85 83 template <class T> 86 84 class Iterator; … … 88 86 class LanguageEntry; 89 87 class Level; 88 class Loader; 90 89 class MetaObjectList; 91 90 template <class T> -
code/branches/core/src/orxonox/core/Identifier.cc
r817 r820 125 125 else 126 126 { 127 COUT(1) << "An error occurred in Identifier :" << std::endl;127 COUT(1) << "An error occurred in Identifier.cc:" << std::endl; 128 128 COUT(1) << "Error: Cannot fabricate an object of type '" << this->name_ << "'. Class has no factory." << std::endl; 129 129 COUT(1) << "Aborting..." << std::endl; -
code/branches/core/src/orxonox/core/Identifier.h
r817 r820 266 266 ClassIdentifier<T>* ClassIdentifier<T>::registerClass(std::list<const Identifier*>* parents, const std::string& name, bool bRootClass) 267 267 { 268 COUT( 4) << "*** ClassIdentifier: Register Class in " << name << "-Singleton." << std::endl;268 COUT(5) << "*** ClassIdentifier: Register Class in " << name << "-Singleton." << std::endl; 269 269 270 270 // Check if at least one object of the given type was created … … 305 305 void ClassIdentifier<T>::addObject(T* object) 306 306 { 307 COUT( 4) << "*** ClassIdentifier: Added object to " << this->getName() << "-list." << std::endl;307 COUT(5) << "*** ClassIdentifier: Added object to " << this->getName() << "-list." << std::endl; 308 308 object->getMetaList().add(this->objects_, this->objects_->add(object)); 309 309 } … … 359 359 if (!identifier->isA(ClassManager<T>::getIdentifier())) 360 360 { 361 COUT(1) << "An error occurred in SubclassIdentifier :" << std::endl;361 COUT(1) << "An error occurred in SubclassIdentifier (Identifier.h):" << std::endl; 362 362 COUT(1) << "Error: Class " << identifier->getName() << " is not a " << ClassManager<T>::getIdentifier()->getName() << "!" << std::endl; 363 363 COUT(1) << "Error: SubclassIdentifier<" << ClassManager<T>::getIdentifier()->getName() << "> = Class(" << identifier->getName() << ") is forbidden." << std::endl; … … 406 406 if (this->identifier_) 407 407 { 408 COUT(1) << "An error occurred in SubclassIdentifier :" << std::endl;408 COUT(1) << "An error occurred in SubclassIdentifier (Identifier.h):" << std::endl; 409 409 COUT(1) << "Error: Class " << this->identifier_->getName() << " is not a " << ClassManager<T>::getIdentifier()->getName() << "!" << std::endl; 410 410 COUT(1) << "Error: Couldn't fabricate a new Object." << std::endl; … … 413 413 else 414 414 { 415 COUT(1) << "An error occurred in SubclassIdentifier :" << std::endl;415 COUT(1) << "An error occurred in SubclassIdentifier (Identifier.h):" << std::endl; 416 416 COUT(1) << "Error: Couldn't fabricate a new Object - Identifier is undefined." << std::endl; 417 417 COUT(1) << "Aborting..." << std::endl; -
code/branches/core/src/orxonox/core/Language.cc
r813 r820 230 230 if (!file.is_open()) 231 231 { 232 COUT(1) << "An error occurred in Language :" << std::endl;232 COUT(1) << "An error occurred in Language.cc:" << std::endl; 233 233 COUT(1) << "Error: Couldn't open file " << getFileName(this->defaultLanguage_) << " to read the default language entries!" << std::endl; 234 234 return; … … 272 272 if (!file.is_open()) 273 273 { 274 COUT(1) << "An error occurred in Language :" << std::endl;274 COUT(1) << "An error occurred in Language.cc:" << std::endl; 275 275 COUT(1) << "Error: Couldn't open file " << getFileName(this->language_) << " to read the translated language entries!" << std::endl; 276 276 ResetConfigValue(language_); … … 324 324 if (!file.is_open()) 325 325 { 326 COUT(1) << "An error occurred in Language :" << std::endl;326 COUT(1) << "An error occurred in Language.cc:" << std::endl; 327 327 COUT(1) << "Error: Couldn't open file " << getFileName(this->defaultLanguage_) << " to write the default language entries!" << std::endl; 328 328 return; -
code/branches/core/src/orxonox/core/MetaObjectList.h
r813 r820 99 99 100 100 101 COUT( 4) << "*** MetaObjectList: Removing Object from " << this->element_->object_->getIdentifier()->getName() << "-list." << std::endl;101 COUT(5) << "*** MetaObjectList: Removing Object from " << this->element_->object_->getIdentifier()->getName() << "-list." << std::endl; 102 102 delete this->element_; 103 103 }
Note: See TracChangeset
for help on using the changeset viewer.