Changeset 1052 for code/trunk/src/orxonox/core/XMLPort.cc
- Timestamp:
- Apr 14, 2008, 3:42:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/core/XMLPort.cc
r871 r1052 29 29 #include "Language.h" 30 30 #include "Loader.h" 31 #include "Namespace.h" 32 #include "CoreIncludes.h" 31 33 32 34 namespace orxonox 33 35 { 34 // ###############################35 // ### XMLPortParamContainer ###36 // ###############################37 XMLPortParamContainer::XMLPortParamContainer()38 {39 this->bAddedDescription_ = false;40 this->bAddedDefaultValues_ = false;41 }42 43 XMLPortParamContainer& XMLPortParamContainer::description(const std::string description)44 {45 if (!this->bAddedDescription_)46 {47 this->description_ = std::string("XMLPortParamContainer::" + this->classname_ + "::" + this->paramname_);48 AddLanguageEntry(this->description_, description);49 this->bAddedDescription_ = true;50 }51 52 return (*this);53 }54 55 const std::string& XMLPortParamContainer::getDescription()56 {57 return GetLocalisation(this->description_);58 }59 60 61 36 // ################################ 62 37 // ### XMLPortObjectContainer ### 63 38 // ################################ 64 XMLPortObjectContainer::XMLPortObjectContainer()65 {66 this->bAddedDescription_ = false;67 }68 69 XMLPortObjectContainer& XMLPortObjectContainer::description(const std::string description)70 {71 if (!this->bAddedDescription_)72 {73 this->description_ = std::string("XMLPortObjectContainer::" + this->classname_ + "::" + this->sectionname_);74 AddLanguageEntry(this->description_, description);75 this->bAddedDescription_ = true;76 }77 78 return (*this);79 }80 81 const std::string& XMLPortObjectContainer::getDescription()82 {83 return GetLocalisation(this->description_);84 }85 86 39 bool XMLPortObjectContainer::identifierIsIncludedInLoaderMask(const Identifier* identifier) 87 40 { 88 return Loader::currentMask_s.isIncluded(identifier);41 return ((!this->bApplyLoaderMask_) || identifier->isA(Class(Namespace)) || Loader::currentMask_s.isIncluded(identifier)); 89 42 } 90 43 }
Note: See TracChangeset
for help on using the changeset viewer.