[Scummvm-cvs-logs] SF.net SVN: scummvm:[48822] scummvm/trunk/common/debug.h

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Apr 27 23:41:25 CEST 2010


Revision: 48822
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48822&view=rev
Author:   fingolfin
Date:     2010-04-27 21:41:25 +0000 (Tue, 27 Apr 2010)

Log Message:
-----------
correct indention

Modified Paths:
--------------
    scummvm/trunk/common/debug.h

Modified: scummvm/trunk/common/debug.h
===================================================================
--- scummvm/trunk/common/debug.h	2010-04-27 21:40:52 UTC (rev 48821)
+++ scummvm/trunk/common/debug.h	2010-04-27 21:41:25 UTC (rev 48822)
@@ -41,81 +41,80 @@
 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) {}
+	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;
+		String name;
+		String description;
 
-	uint32 channel;
-	bool enabled;
-};
+		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);
+	/**
+	 * 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();
+	/**
+	 * 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);
+	/**
+	 * 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);
+	/**
+	 * 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;
+	typedef List<DebugChannel> DebugChannelList;
 
-/**
- * Lists all engine specific debug channels.
- *
- * @return returns an array with all debug channels
- */
-DebugChannelList listDebugChannels();
+	/**
+	 * 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);
+	/**
+	 * Test whether the given debug channel is enabled.
+	 */
+	bool isDebugChannelEnabled(uint32 channel);
 
-
 private:
 	typedef HashMap<String, DebugChannel, IgnoreCase_Hash, IgnoreCase_EqualTo> DebugChannelMap;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list