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 GT_GLOBAL OutMessage* debugOut;
    00013
    00014 /** references to DebugKeyTables */
    00015 GT_GLOBAL DebugKeyTable* debugKeyTable;
    00016
    00017 /** references to DebugRequestTables */
    00018 GT_GLOBAL DebugRequestTable* debugRequestTable;
    00019
    00020
    00021 void initDebugging(OutMessage* queue, DebugKeyTable* table, DebugRequestTable* drTable)
    00022 {
    00023   debugOut=queue;
    00024   debugKeyTable=table;
    00025   debugRequestTable=drTable;
    00026 }
    00027
    00028 OutMessage& getDebugOut()
    00029 {
    00030   return *debugOut;
    00031 }
    00032
    00033 DebugKeyTable& getDebugKeyTable()
    00034 {
    00035   return *debugKeyTable;
    00036 }
    00037
    00038 DebugRequestTable& getDebugRequestTable()
    00039 {
    00040   return *debugRequestTable;
    00041 }