- Timestamp:
- Aug 11, 2011, 11:20:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/util/output/BaseWriter.h
r8808 r8833 45 45 virtual ~BaseWriter(); 46 46 47 void setLevelMax(OutputLevel max); 48 void setAdditionalContextsLevelMax(OutputLevel max); 49 47 50 const std::string& getName() const 48 51 { return this->name_; } 49 52 50 void setLevelMax(OutputLevel max);51 52 53 int configurableMaxLevel_; 53 54 inline std::string getConfigurableMaxLevelName() const 54 { return "outputLevel" + this->name_; }55 { return this->name_ + "Level"; } 55 56 56 int configurable ContextsMaxLevel_;57 inline std::string getConfigurable ContextsMaxLevelName() const58 { return "outputContextsLevel" + this->name_; }57 int configurableAdditionalContextsMaxLevel_; 58 inline std::string getConfigurableAdditionalContextsMaxLevelName() const 59 { return this->name_ + "AdditionalContextsLevel"; } 59 60 60 std::vector<std::string> configurable Contexts_;61 inline std::string getConfigurable ContextsName() const62 { return "outputContexts" + this->name_; }61 std::vector<std::string> configurableAdditionalContexts_; 62 inline std::string getConfigurableAdditionalContextsName() const 63 { return this->name_ + "AdditionalContexts"; } 63 64 64 void changedConfigurableLevels(); 65 void changedConfigurableContexts(); 65 void changedConfigurableLevel(); 66 void changedConfigurableAdditionalContextsLevel(); 67 void changedConfigurableAdditionalContexts(); 66 68 67 69 static inline std::string getConfigurableSectionName() … … 69 71 70 72 protected: 71 virtual void output(OutputLevel level, OutputContextcontext, const std::vector<std::string>& lines);73 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines); 72 74 73 75 private: … … 77 79 void setLevelMask(OutputLevel mask); 78 80 79 bool isAdditionalContext(OutputContext context) const; 81 void setAdditionalContextsLevelRange(OutputLevel min, OutputLevel max); 82 void setAdditionalContextsLevelMask(OutputLevel mask); 80 83 81 84 std::string name_; 82 std::set<std::string> configurableContextsSet_; 85 86 OutputContextMask subcontextsCheckMask_; 87 std::set<OutputContextSubID> subcontexts_; 83 88 }; 84 89 }
Note: See TracChangeset
for help on using the changeset viewer.