Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Tools/Debugging/Debugging.cpp

Go to the documentation of this file.
00001 /**
00002 * @file Tools/Debugging/Debugging.cpp
00003 *
00004 * Functions for Debugging
00005 * 
00006 * @author Martin Lötzsch
00007 */ 
00008 
00009 #include "Tools/Process.h"
00010 
00011 /** references to outgoing OutMessages */
00012 OutMessage* debugOut[PROCESS_MAX];
00013 
00014 /** references to DebugKeyTables */
00015 DebugKeyTable* debugKeyTable[PROCESS_MAX];
00016 
00017 
00018 void initDebugging(OutMessage* queue, DebugKeyTable* table)
00019 {
00020   int index = PlatformProcess::getIndex();
00021   debugOut[index]=queue;
00022   debugKeyTable[index]=table;
00023 }
00024 
00025 OutMessage& getDebugOut()
00026 {
00027   return *debugOut[PlatformProcess::getIndex()];
00028 }
00029 
00030 DebugKeyTable& getDebugKeyTable()
00031 {
00032   return *debugKeyTable[PlatformProcess::getIndex()];
00033 }
00034 
00035 /*
00036  * Change log :
00037  * 
00038  * $Log: Debugging.cpp,v $
00039  * Revision 1.1.1.1  2004/05/22 17:36:03  cvsadm
00040  * created new repository GT2004_WM
00041  *
00042  * Revision 1.1  2003/10/07 10:13:22  cvsadm
00043  * Created GT2004 (M.J.)
00044  *
00045  * Revision 1.1.1.1  2003/07/02 09:40:28  cvsadm
00046  * created new repository for the competitions in Padova from the 
00047  * tamara CVS (Tuesday 2:00 pm)
00048  *
00049  * removed unused solutions
00050  *
00051  * Revision 1.1  2002/09/10 15:53:58  cvsadm
00052  * Created new project GT2003 (M.L.)
00053  * - Cleaned up the /Src/DataTypes directory
00054  * - Removed challenge related source code
00055  * - Removed processing of incoming audio data
00056  * - Renamed AcousticMessage to SoundRequest
00057  *
00058  * Revision 1.2  2002/07/23 13:48:28  loetzsch
00059  * - new streaming classes
00060  * - removed many #include statements
00061  * - exchanged StaticQueue by MessageQueue
00062  * - new debug message handling
00063  * - general clean up
00064  *
00065  * Revision 1.1.1.1  2002/05/10 12:40:32  cvsadm
00066  * Moved GT2002 Project from ute to tamara.
00067  *
00068  * Revision 1.4  2002/01/15 16:24:32  roefer
00069  * Debugging now uses PlatformProcess::getIndex() to distiguish between different processes
00070  *
00071  * Revision 1.3  2002/01/14 22:34:42  loetzsch
00072  * Doxygen comment error fixed
00073  *
00074  * Revision 1.2  2001/12/10 17:47:10  risler
00075  * change log added
00076  *
00077  */

Generated on Thu Sep 23 19:57:37 2004 for GT2004 by doxygen 1.3.6