Changeset 877 for code/branches/core2/src
- Timestamp:
- Mar 10, 2008, 1:43:14 AM (17 years ago)
- Location:
- code/branches/core2/src/orxonox
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/BaseObject.h
r871 r877 79 79 const std::string& getLevelfile() const; 80 80 81 inline void setNamespace(Namespace* ns) { this->namespace_ = ns; } 82 inline Namespace* getNamespace() const { return this->namespace_; } 83 81 84 /** @brief Sets the indentation of the debug output in the Loader. @param indentation The indentation */ 82 85 inline void setLoaderIndentation(const std::string& indentation) { this->loaderIndentation_ = indentation; } … … 90 93 const Level* level_; //!< The level that loaded this object 91 94 std::string loaderIndentation_; //!< Indentation of the debug output in the Loader 95 Namespace* namespace_; 92 96 }; 93 97 } -
code/branches/core2/src/orxonox/core/CMakeLists.txt
r871 r877 17 17 Executor.cc 18 18 XMLPort.cc 19 Namespace.cc 19 20 ) 20 21 -
code/branches/core2/src/orxonox/core/CorePrereqs.h
r871 r877 95 95 template <class T> 96 96 class MetaObjectListElement; 97 class Namespace; 97 98 template <class T> 98 99 class ObjectList; -
code/branches/core2/src/orxonox/core/Loader.cc
r871 r877 115 115 xmlfile.LoadFile(); 116 116 117 for ( ticpp::Iterator<ticpp::Element> child = xmlfile.FirstChildElement(false); child != child.end(); child++)117 for (ticpp::Iterator<ticpp::Element> child = xmlfile.FirstChildElement(false); child != child.end(); child++) 118 118 { 119 119 Identifier* identifier = ID(child->Value()); -
code/branches/core2/src/orxonox/core/XMLPort.h
r871 r877 211 211 { 212 212 public: 213 XMLPortClassObjectContainer(const std::string classname, const std::string sectionname, void (T::*loadfunction)(O*), const O* (T::*savefunction)(unsigned int) )213 XMLPortClassObjectContainer(const std::string classname, const std::string sectionname, void (T::*loadfunction)(O*), const O* (T::*savefunction)(unsigned int) const) 214 214 { 215 215 this->classname_ = classname; … … 225 225 try 226 226 { 227 Element* xmlsubelement = xmlelement.FirstChildElement(this->sectionname_, false); 227 Element* xmlsubelement; 228 if (this->sectionname_ != "") 229 xmlsubelement = xmlelement.FirstChildElement(this->sectionname_, false); 230 else 231 xmlsubelement = &xmlelement; 228 232 229 233 if (xmlsubelement) 230 234 { 231 for ( ticpp::Iterator<ticpp::Element> child = xmlsubelement->FirstChildElement(false); child != child.end(); child++)235 for (ticpp::Iterator<ticpp::Element> child = xmlsubelement->FirstChildElement(false); child != child.end(); child++) 232 236 { 233 237 Identifier* identifier = ID(child->Value()); … … 276 280 private: 277 281 void (T::*loadfunction_)(O*); 278 const O* (T::*savefunction_)(unsigned int) ;282 const O* (T::*savefunction_)(unsigned int) const; 279 283 }; 280 284 } -
code/branches/core2/src/orxonox/objects/WorldEntity.cc
r871 r877 218 218 } 219 219 220 const WorldEntity* WorldEntity::getAttachedWorldEntity(unsigned int index) 220 const WorldEntity* WorldEntity::getAttachedWorldEntity(unsigned int index) const 221 221 { 222 222 if (index < this->attachedWorldEntities_.size()) -
code/branches/core2/src/orxonox/objects/WorldEntity.h
r871 r877 29 29 30 30 void attachWorldEntity(WorldEntity* entity); 31 const WorldEntity* getAttachedWorldEntity(unsigned int index) ;31 const WorldEntity* getAttachedWorldEntity(unsigned int index) const; 32 32 33 33 inline Ogre::SceneNode* getNode()
Note: See TracChangeset
for help on using the changeset viewer.