Changeset 9550 for code/trunk/src/libraries/util/output/OutputListener.h
- Timestamp:
- Mar 12, 2013, 11:13:03 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/testing (added) merged: 9015,9017,9020-9022,9025-9026,9047,9076-9078,9114-9115,9221-9226,9356,9473-9480,9524,9529-9531,9533-9545,9547-9549
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/util/output/OutputListener.h
r8858 r9550 55 55 virtual ~OutputListener(); 56 56 57 void registerListener(AdditionalContextListener* listener); 58 void unregisterListener(AdditionalContextListener* listener); 59 57 60 void setLevelMax(OutputLevel max); 58 61 void setLevelRange(OutputLevel min, OutputLevel max); … … 63 66 void setAdditionalContextsLevelMask(OutputLevel mask); 64 67 65 v oid setAdditionalContextsMask(OutputContextMask mask);68 virtual void setAdditionalContextsMask(OutputContextMask mask); 66 69 67 70 /// @brief Returns the level mask. … … 78 81 79 82 /// @brief Called by OutputManager for each line of output, checks if this listener actually accepts this output before it calls the output() function. 80 inlinevoid unfilteredOutput(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines)83 virtual void unfilteredOutput(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) 81 84 { if (this->acceptsOutput(level, context)) this->output(level, context, lines); } 82 85 … … 85 88 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) = 0; 86 89 90 inline const std::vector<AdditionalContextListener*>& getListeners() const 91 { return this->listeners_; } 92 87 93 private: 88 OutputLevel levelMask_; ///< Mask of accepted output levels, independent of contexts 89 OutputContextMask additionalContextsMask_; ///< Mask of accepted additional contexts 90 OutputLevel additionalContextsLevelMask_; ///< Mask of accepted output levels of the additional contexts 94 std::vector<AdditionalContextListener*> listeners_; ///< List of all registered additional context listeners 95 96 OutputLevel levelMask_; ///< Mask of accepted output levels, independent of contexts 97 OutputContextMask additionalContextsMask_; ///< Mask of accepted additional contexts 98 OutputLevel additionalContextsLevelMask_; ///< Mask of accepted output levels of the additional contexts 91 99 }; 92 100
Note: See TracChangeset
for help on using the changeset viewer.