Changeset 9542 for code/branches/testing/src/libraries/util
- Timestamp:
- Mar 10, 2013, 3:08:58 PM (12 years ago)
- Location:
- code/branches/testing/src/libraries/util/output
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/src/libraries/util/output/ConsoleWriter.h
r9537 r9542 47 47 @brief ConsoleWriter inherits from BaseWriter and writes output to the console. 48 48 49 This class can be seen as an equivalent to std::cout within the output 50 system. It is implemented as a singleton for static acces. 49 This class can be seen as an equivalent to std::cout within the output system. 51 50 */ 52 51 class _UtilExport ConsoleWriter : public BaseWriter -
code/branches/testing/src/libraries/util/output/LogWriter.h
r9538 r9542 47 47 @brief The LogWriter class inherits from BaseWriter and writes output to a log-file. 48 48 49 It is implemented as singleton because we (currently) use only one 50 log-file. The path of the file can be changed, in which case the file 49 The path of the file can be changed, in which case the file 51 50 is rewritten by using the output stored by MemoryWriter. This adds the 52 51 possibility to change the desired output levels before changing the -
code/branches/testing/src/libraries/util/output/OutputDefinitions.h
r9540 r9542 47 47 context argument. 48 48 */ 49 #define REGISTER_OUTPUT_CONTEXT(name) \ 50 const OutputContextContainer& name() { static OutputContextContainer context = registerContext(#name); return context; } 49 #ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE 50 #define REGISTER_OUTPUT_CONTEXT(name) \ 51 const OutputContextContainer& name() { static OutputContextContainer context = registerContext(#name); return context; } 52 #else 53 #define REGISTER_OUTPUT_CONTEXT(name) \ 54 const OutputContextContainer& name() { return registerContext(#name); } 55 #endif 51 56 52 57 /** … … 60 65 individually by derivatives of orxonox::SubcontextOutputListener. 61 66 */ 62 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 63 const OutputContextContainer& subname() { static const OutputContextContainer& context = registerContext(#name, #subname); return context; } 67 #ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE 68 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 69 const OutputContextContainer& subname() { static const OutputContextContainer context = registerContext(#name, #subname); return context; } 70 #else 71 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 72 const OutputContextContainer& subname() { return registerContext(#name, #subname); } 73 #endif 64 74 65 75 // tolua_begin
Note: See TracChangeset
for help on using the changeset viewer.