Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 24, 2011, 1:22:11 AM (13 years ago)
Author:
landauf
Message:

added function to register new output contexts.
OutputManager owns helper functions to return names of output levels and contexts.
OutputStream now also seems to compile and link with msvc.

File:
1 edited

Legend:

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

    r8765 r8771  
    3434#include <vector>
    3535
     36#include <boost/bimap.hpp>
     37
    3638#include "OutputDefinitions.h"
    3739
     
    6668                { return ((this->combinedLevelMask_ & level) && (this->combinedContextMask_ & context)); }
    6769
     70            OutputContext registerContext(const std::string& name);
     71
     72            const std::string& getLevelName(OutputLevel level) const;
     73            const std::string& getContextName(OutputContext context) const;
     74
    6875        private:
    6976            OutputManager();
     
    7784            OutputLevel   combinedLevelMask_;
    7885            OutputContext combinedContextMask_;
     86
     87            boost::bimap<OutputContext, std::string> contexts_;
    7988    };
    8089}
Note: See TracChangeset for help on using the changeset viewer.