Changeset 878 for code/branches/core2/src/orxonox/core/XMLPort.h
- Timestamp:
- Mar 10, 2008, 4:34:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/XMLPort.h
r877 r878 59 59 xmlcontainer##loadfunction##savefunction->port(this, xmlelement, loading) 60 60 61 #define XMLPortObject(classname, objectclass, sectionname, loadfunction, savefunction, xmlelement, loading ) \61 #define XMLPortObject(classname, objectclass, sectionname, loadfunction, savefunction, xmlelement, loading, bApplyLoaderMask) \ 62 62 orxonox::XMLPortClassObjectContainer<classname, objectclass>* xmlcontainer##loadfunction##savefunction = (orxonox::XMLPortClassObjectContainer<classname, objectclass>*)(this->getIdentifier()->getXMLPortObjectContainer(sectionname)); \ 63 63 if (!xmlcontainer##loadfunction##savefunction) \ 64 64 { \ 65 xmlcontainer##loadfunction##savefunction = new orxonox::XMLPortClassObjectContainer<classname, objectclass>(this->getIdentifier()->getName(), std::string(sectionname), &classname::loadfunction, &classname::savefunction ); \65 xmlcontainer##loadfunction##savefunction = new orxonox::XMLPortClassObjectContainer<classname, objectclass>(this->getIdentifier()->getName(), std::string(sectionname), &classname::loadfunction, &classname::savefunction, bApplyLoaderMask); \ 66 66 this->getIdentifier()->addXMLPortObjectContainer(sectionname, xmlcontainer##loadfunction##savefunction); \ 67 67 } \ … … 196 196 XMLPortObjectContainer& description(const std::string description); 197 197 const std::string& getDescription(); 198 staticbool identifierIsIncludedInLoaderMask(const Identifier* identifier);198 bool identifierIsIncludedInLoaderMask(const Identifier* identifier); 199 199 200 200 protected: 201 201 std::string classname_; 202 202 std::string sectionname_; 203 bool bApplyLoaderMask_; 203 204 204 205 private: … … 211 212 { 212 213 public: 213 XMLPortClassObjectContainer(const std::string classname, const std::string sectionname, void (T::*loadfunction)(O*), const O* (T::*savefunction)(unsigned int) const )214 XMLPortClassObjectContainer(const std::string classname, const std::string sectionname, void (T::*loadfunction)(O*), const O* (T::*savefunction)(unsigned int) const, bool bApplyLoaderMask) 214 215 { 215 216 this->classname_ = classname; … … 217 218 this->loadfunction_ = loadfunction; 218 219 this->savefunction_ = savefunction; 220 this->bApplyLoaderMask_ = bApplyLoaderMask; 219 221 } 220 222
Note: See TracChangeset
for help on using the changeset viewer.