- Timestamp:
- Aug 12, 2011, 12:26:40 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/util/output/BaseWriter.cc
r8833 r8834 33 33 namespace orxonox 34 34 { 35 BaseWriter::BaseWriter(const std::string& name )35 BaseWriter::BaseWriter(const std::string& name, bool bRegister) : OutputListener(bRegister) 36 36 { 37 37 this->name_ = name; … … 42 42 43 43 this->subcontextsCheckMask_ = context::none; 44 this->subcontextsNoCheckMask_ = context::none; 44 45 45 46 this->changedConfigurableLevel(); … … 54 55 void BaseWriter::output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) 55 56 { 56 if (((this->subcontextsCheckMask_ & context.mask) == 0) || (this->subcontexts_.find(context.sub_id) != this->subcontexts_.end())) 57 if (((this->subcontextsCheckMask_ & context.mask) == 0) || 58 (this->subcontextsNoCheckMask_ & context.mask) || 59 (this->subcontexts_.find(context.sub_id) != this->subcontexts_.end())) 57 60 { 58 61 const std::string& prefix = OutputManager::getInstance().getDefaultPrefix(level, context); … … 90 93 OutputContextMask context_mask = context::none; 91 94 this->subcontextsCheckMask_ = context::none; 95 this->subcontextsNoCheckMask_ = context::none; 92 96 93 97 this->subcontexts_.clear(); 94 this->subcontexts_.insert(context::no_subcontext);95 98 96 99 for (size_t i = 0; i < this->configurableAdditionalContexts_.size(); ++i) … … 117 120 this->subcontextsCheckMask_ |= container.mask; 118 121 } 122 else 123 { 124 this->subcontextsNoCheckMask_ |= container.mask; 125 } 119 126 } 120 127
Note: See TracChangeset
for help on using the changeset viewer.