diff options
author | Max Horn | 2010-04-27 21:41:25 +0000 |
---|---|---|
committer | Max Horn | 2010-04-27 21:41:25 +0000 |
commit | 2b6958995be123382e512f5c16ca6447b0f81933 (patch) | |
tree | e5ab78c7928f31be9ebcac01717a4067b5fcda2d | |
parent | 460d69e8855f849e2200c49b198936b1201e0c91 (diff) | |
download | scummvm-rg350-2b6958995be123382e512f5c16ca6447b0f81933.tar.gz scummvm-rg350-2b6958995be123382e512f5c16ca6447b0f81933.tar.bz2 scummvm-rg350-2b6958995be123382e512f5c16ca6447b0f81933.zip |
correct indention
svn-id: r48822
-rw-r--r-- | common/debug.h | 147 |
1 files 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<DebugManager> { 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<DebugChannel> 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<DebugChannel> 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<String, DebugChannel, IgnoreCase_Hash, IgnoreCase_EqualTo> DebugChannelMap; |