From 2b6958995be123382e512f5c16ca6447b0f81933 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 27 Apr 2010 21:41:25 +0000 Subject: correct indention svn-id: r48822 --- common/debug.h | 147 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 73 insertions(+), 74 deletions(-) diff --git a/common/debug.h b/common/debug.h index ffb674e40d..b70b838fab 100644 --- a/common/debug.h +++ b/common/debug.h @@ -41,80 +41,79 @@ namespace Common { class DebugManager : public Singleton { public: -struct DebugChannel { - DebugChannel() : channel(0), enabled(false) {} - DebugChannel(uint32 c, const String &n, const String &d) - : name(n), description(d), channel(c), enabled(false) {} - - String name; - String description; - - uint32 channel; - bool enabled; -}; - -/** - * Adds a debug channel. - * - * A debug channel is considered roughly similar to what our debug levels described by - * gDebugLevel try to achieve: - * - * Debug channels should only affect the display of additional debug output, based on - * their state. That is if they are enabled, channel specific debug messages should - * be shown. If they are disabled on the other hand, those messages will be hidden. - * - * @see gDebugLevel. - * - * Note that we have debug* functions which depend both on the debug level set and - * specific debug channels. Those functions will only show output, when *both* criteria - * are satisfied. - * - * @param channel the channel flag (should be OR-able i.e. first one should be 1 then 2, 4, etc.) - * @param name the option name which is used in the debugger/on the command line to enable - * this special debug level (case will be ignored) - * @param description the description which shows up in the debugger - * @return true on success false on failure - */ -bool addDebugChannel(uint32 channel, const String &name, const String &description); - -/** - * Resets all engine specific debug channels. - */ -void clearAllDebugChannels(); - -/** - * Enables an debug channel. - * - * @param name the name of the debug channel to enable - * @return true on success, false on failure - */ -bool enableDebugChannel(const String &name); - -/** - * Disables an debug channel. - * - * @param name the name of the debug channel to disable - * @return true on success, false on failure - */ -bool disableDebugChannel(const String &name); - - - -typedef List DebugChannelList; - -/** - * Lists all engine specific debug channels. - * - * @return returns an array with all debug channels - */ -DebugChannelList listDebugChannels(); - - -/** - * Test whether the given debug channel is enabled. - */ -bool isDebugChannelEnabled(uint32 channel); - + struct DebugChannel { + DebugChannel() : channel(0), enabled(false) {} + DebugChannel(uint32 c, const String &n, const String &d) + : name(n), description(d), channel(c), enabled(false) {} + + String name; + String description; + + uint32 channel; + bool enabled; + }; + + /** + * Adds a debug channel. + * + * A debug channel is considered roughly similar to what our debug levels described by + * gDebugLevel try to achieve: + * + * Debug channels should only affect the display of additional debug output, based on + * their state. That is if they are enabled, channel specific debug messages should + * be shown. If they are disabled on the other hand, those messages will be hidden. + * + * @see gDebugLevel. + * + * Note that we have debug* functions which depend both on the debug level set and + * specific debug channels. Those functions will only show output, when *both* criteria + * are satisfied. + * + * @param channel the channel flag (should be OR-able i.e. first one should be 1 then 2, 4, etc.) + * @param name the option name which is used in the debugger/on the command line to enable + * this special debug level (case will be ignored) + * @param description the description which shows up in the debugger + * @return true on success false on failure + */ + bool addDebugChannel(uint32 channel, const String &name, const String &description); + + /** + * Resets all engine specific debug channels. + */ + void clearAllDebugChannels(); + + /** + * Enables an debug channel. + * + * @param name the name of the debug channel to enable + * @return true on success, false on failure + */ + bool enableDebugChannel(const String &name); + + /** + * Disables an debug channel. + * + * @param name the name of the debug channel to disable + * @return true on success, false on failure + */ + bool disableDebugChannel(const String &name); + + + + typedef List DebugChannelList; + + /** + * Lists all engine specific debug channels. + * + * @return returns an array with all debug channels + */ + DebugChannelList listDebugChannels(); + + + /** + * Test whether the given debug channel is enabled. + */ + bool isDebugChannelEnabled(uint32 channel); private: typedef HashMap DebugChannelMap; -- cgit v1.2.3