Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2008, 3:42:49 AM (16 years ago)
Author:
landauf
Message:

merged core2 back to trunk
there might be some errors, wasn't able to test it yet due to some strange g++ and linker behaviour.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/core/XMLPort.cc

    r871 r1052  
    2929#include "Language.h"
    3030#include "Loader.h"
     31#include "Namespace.h"
     32#include "CoreIncludes.h"
    3133
    3234namespace orxonox
    3335{
    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 
    6136    // ################################
    6237    // ###  XMLPortObjectContainer  ###
    6338    // ################################
    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 
    8639    bool XMLPortObjectContainer::identifierIsIncludedInLoaderMask(const Identifier* identifier)
    8740    {
    88         return Loader::currentMask_s.isIncluded(identifier);
     41        return ((!this->bApplyLoaderMask_) || identifier->isA(Class(Namespace)) || Loader::currentMask_s.isIncluded(identifier));
    8942    }
    9043}
Note: See TracChangeset for help on using the changeset viewer.