Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 10, 2013, 7:22:59 PM (11 years ago)
Author:
landauf
Message:

added tests for OutputManager

Location:
code/branches/testing/src/libraries/util/output
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/src/libraries/util/output/OutputListener.h

    r9534 r9543  
    8181
    8282            /// @brief Called by OutputManager for each line of output, checks if this listener actually accepts this output before it calls the output() function.
    83             inline void 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)
    8484                { if (this->acceptsOutput(level, context)) this->output(level, context, lines); }
    8585
  • code/branches/testing/src/libraries/util/output/OutputManager.cc

    r9540 r9543  
    6060        this->consoleWriterInstance_ = 0;
    6161        this->logWriterInstance_ = 0;
     62
     63        // register 'undefined' context in order to give it always the first context-ID
     64        this->registerContext("undefined");
    6265    }
    6366
  • code/branches/testing/src/libraries/util/output/OutputManager.h

    r9540 r9543  
    109109                { return this->listeners_; }
    110110
     111            inline OutputLevel getCombinedLevelMask() const { return this->combinedLevelMask_; }
     112            inline OutputLevel getCombinedAdditionalContextsLevelMask() const { return this->combinedAdditionalContextsLevelMask_; }
     113            inline OutputContextMask getCombinedAdditionalContextsMask() const { return this->combinedAdditionalContextsMask_; }
     114
    111115        private:
    112116            void updateMasks();
Note: See TracChangeset for help on using the changeset viewer.