Changeset 8789
- Timestamp:
- Jul 26, 2011, 11:06:01 AM (13 years ago)
- Location:
- code/branches/output/src/libraries/util/output
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/util/output/ConsoleWriter.cc
r8787 r8789 28 28 29 29 #include "ConsoleWriter.h" 30 31 #include <iostream> 30 32 31 33 #include "OutputManager.h" -
code/branches/output/src/libraries/util/output/OutputDefinitions.h
r8787 r8789 34 34 35 35 #define REGISTER_OUTPUT_CONTEXT(name) \ 36 OutputContext name() { static OutputContext value = registerContext(#name); return value; }36 OutputContext name() { static OutputContext context = registerContext(#name); return context; } 37 37 38 38 namespace orxonox -
code/branches/output/src/libraries/util/output/OutputStream.cc
r8787 r8789 35 35 OutputStream::OutputStream() 36 36 { 37 this->level_ = level::none; 38 this->context_ = context::none; 39 this->bAcceptsOutput_ = false; 37 this->setOutputAttributes(level::debug_output, context::undefined()); 38 } 39 40 OutputStream::OutputStream(OutputLevel level, OutputContext context) 41 { 42 this->setOutputAttributes(level, context); 40 43 } 41 44 … … 51 54 this->context_ = context; 52 55 53 this->bAcceptsOutput_ = OutputManager::getInstanceAndCreateListeners().acceptsOutput( this->level_, this->context_);56 this->bAcceptsOutput_ = OutputManager::getInstanceAndCreateListeners().acceptsOutput(level, context); 54 57 } 55 58 } -
code/branches/output/src/libraries/util/output/OutputStream.h
r8787 r8789 44 44 public: 45 45 _UtilExport OutputStream(); 46 _UtilExport OutputStream(OutputLevel level, OutputContext context); 46 47 47 48 void _UtilExport setOutputAttributes(OutputLevel level, OutputContext context);
Note: See TracChangeset
for help on using the changeset viewer.