Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2008, 3:35:50 PM (16 years ago)
Author:
landauf
Message:

moved Debug.h, OutputHandler and OutputBuffer to util, to make COUT(x) available everywhere

Location:
code/branches/core3/src/core
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/core/CMakeLists.txt

    r1574 r1586  
    77  ObjectListBase.cc
    88  OrxonoxClass.cc
    9   OutputBuffer.cc
    10   OutputHandler.cc
    119  Script.cc
    1210  SignalHandler.cc
  • code/branches/core3/src/core/ClassFactory.h

    r1583 r1586  
    4343#include "Factory.h"
    4444#include "Identifier.h"
    45 #include "Debug.h"
     45#include "util/Debug.h"
    4646
    4747namespace orxonox
  • code/branches/core3/src/core/CommandEvaluation.cc

    r1563 r1586  
    3030#include "ConsoleCommand.h"
    3131#include "Identifier.h"
    32 #include "Debug.h"
     32#include "util/Debug.h"
    3333#include "util/String.h"
    3434
  • code/branches/core3/src/core/CommandExecutor.cc

    r1505 r1586  
    3131#include "util/String.h"
    3232#include "util/Convert.h"
     33#include "util/Debug.h"
    3334#include "Identifier.h"
    3435#include "Language.h"
    35 #include "Debug.h"
    3636#include "TclBind.h"
    3737
  • code/branches/core3/src/core/ConsoleCommandCompilation.cc

    r1505 r1586  
    2929#include "ConsoleCommandCompilation.h"
    3030#include "ConsoleCommand.h"
    31 #include "Debug.h"
     31#include "util/Debug.h"
    3232#include "util/ExprParser.h"
    3333
  • code/branches/core3/src/core/Core.cc

    r1535 r1586  
    107107            this->softDebugLevel_ = this->softDebugLevelShell_;
    108108
     109        OutputHandler::setSoftDebugLevel(OutputHandler::LD_All,     this->softDebugLevel_);
     110        OutputHandler::setSoftDebugLevel(OutputHandler::LD_Console, this->softDebugLevelConsole_);
     111        OutputHandler::setSoftDebugLevel(OutputHandler::LD_Logfile, this->softDebugLevelLogfile_);
     112        OutputHandler::setSoftDebugLevel(OutputHandler::LD_Shell,   this->softDebugLevelShell_);
    109113
    110114        std::string temp = this->language_;
     
    158162            else if (device == OutputHandler::LD_Shell)
    159163                Core::getInstance().softDebugLevelShell_ = level;
     164
     165            OutputHandler::setSoftDebugLevel(device, level);
    160166        }
    161167     }
     
    199205    }
    200206}
    201 
    202 /**
    203     @brief Returns the soft debug level, stored in the only existing instance of the DebugLevel class, configured in the config-file.
    204     @return The soft debug level
    205 */
    206 int getSoftDebugLevel()
    207 {
    208     return orxonox::Core::getSoftDebugLevel();
    209 }
  • code/branches/core3/src/core/Core.h

    r1535 r1586  
    4141
    4242#include "OrxonoxClass.h"
    43 #include "OutputHandler.h"
     43#include "util/OutputHandler.h"
    4444
    4545namespace orxonox
  • code/branches/core3/src/core/CoreIncludes.h

    r1583 r1586  
    4646#include "Factory.h"
    4747#include "ClassFactory.h"
    48 #include "Debug.h"
     48#include "util/Debug.h"
    4949
    5050
  • code/branches/core3/src/core/CorePrereqs.h

    r1574 r1586  
    139139  class ObjectListBaseElement;
    140140  class OrxonoxClass;
    141   class OutputBuffer;
    142   class OutputBufferListener;
    143   class OutputHandler;
    144141  class Shell;
    145142  class ShellListener;
  • code/branches/core3/src/core/Error.cc

    r1505 r1586  
    3333
    3434#include "Error.h"
    35 #include "Debug.h"
     35#include "util/Debug.h"
    3636
    3737namespace orxonox
  • code/branches/core3/src/core/Executor.h

    r1505 r1586  
    3737#include "util/Math.h"
    3838#include "Functor.h"
    39 #include "Debug.h"
     39#include "util/Debug.h"
    4040
    4141
  • code/branches/core3/src/core/Factory.cc

    r1505 r1586  
    3434#include "Factory.h"
    3535#include "Identifier.h"
    36 #include "Debug.h"
    3736#include "BaseObject.h"
     37#include "util/Debug.h"
    3838
    3939namespace orxonox
  • code/branches/core3/src/core/Functor.h

    r1505 r1586  
    3434
    3535#include "util/MultiTypeMath.h"
    36 #include "Debug.h"
     36#include "util/Debug.h"
    3737
    3838#define MAX_FUNCTOR_ARGUMENTS 5
  • code/branches/core3/src/core/Identifier.h

    r1583 r1586  
    6060#include <utility>
    6161
    62 #include "Debug.h"
    6362#include "Iterator.h"
     63#include "util/Debug.h"
    6464#include "util/String.h"
    6565
  • code/branches/core3/src/core/Language.cc

    r1535 r1586  
    3737
    3838#include "Core.h"
    39 
    40 #include "Debug.h"
     39#include "util/Debug.h"
    4140
    4241namespace orxonox
  • code/branches/core3/src/core/Loader.cc

    r1574 r1586  
    3333#include "Iterator.h"
    3434#include "ObjectList.h"
    35 #include "Debug.h"
    3635#include "CoreIncludes.h"
    3736#include "Script.h"
    3837#include "Namespace.h"
     38#include "util/Debug.h"
    3939
    4040#include "tinyxml/ticpp.h"
  • code/branches/core3/src/core/MetaObjectList.cc

    r1574 r1586  
    3333
    3434#include "MetaObjectList.h"
    35 #include "Debug.h"
     35#include "util/Debug.h"
    3636
    3737namespace orxonox
  • code/branches/core3/src/core/NamespaceNode.cc

    r1505 r1586  
    2828
    2929#include "NamespaceNode.h"
    30 #include "Debug.h"
     30#include "util/Debug.h"
    3131
    3232namespace orxonox
  • code/branches/core3/src/core/Shell.cc

    r1540 r1586  
    3434#include "ConsoleCommand.h"
    3535#include "input/InputInterfaces.h"
     36#include "util/OutputHandler.h"
    3637
    3738#define SHELL_UPDATE_LISTENERS(function) \
     
    4344    SetConsoleCommand(Shell, clearShell, true);
    4445    SetConsoleCommand(Shell, history, true);
     46
     47    SetConsoleCommandShortcutGeneric(log,     createConsoleCommand(createFunctor(&OutputHandler::log),     "log"    ));
     48    SetConsoleCommandShortcutGeneric(error,   createConsoleCommand(createFunctor(&OutputHandler::error),   "error"  ));
     49    SetConsoleCommandShortcutGeneric(warning, createConsoleCommand(createFunctor(&OutputHandler::warning), "warning"));
     50    SetConsoleCommandShortcutGeneric(info,    createConsoleCommand(createFunctor(&OutputHandler::info),    "info"   ));
     51    SetConsoleCommandShortcutGeneric(debug,   createConsoleCommand(createFunctor(&OutputHandler::debug),   "debug"  ));
    4552
    4653    Shell::Shell()
  • code/branches/core3/src/core/Shell.h

    r1535 r1586  
    3737#include "OrxonoxClass.h"
    3838#include "input/InputBuffer.h"
    39 #include "OutputBuffer.h"
     39#include "util/OutputBuffer.h"
    4040
    4141namespace orxonox
  • code/branches/core3/src/core/SignalHandler.cc

    r1505 r1586  
    3636#include <assert.h>
    3737#include <iostream>
    38 
    39 #include "Debug.h"
    4038
    4139SignalHandler * SignalHandler::singletonRef = NULL;
  • code/branches/core3/src/core/TclBind.cc

    r1505 r1586  
    3232#include "ConsoleCommand.h"
    3333#include "CommandExecutor.h"
    34 #include "Debug.h"
    3534#include "TclThreadManager.h"
    3635#include "TclBind.h"
     36#include "util/Debug.h"
    3737#include "util/String.h"
    3838
  • code/branches/core3/src/core/TclThreadManager.cc

    r1583 r1586  
    3838#include "ConsoleCommand.h"
    3939#include "CommandExecutor.h"
    40 #include "Debug.h"
    4140#include "TclBind.h"
    4241#include "TclThreadManager.h"
     42#include "util/Debug.h"
    4343#include "util/Convert.h"
    4444
  • code/branches/core3/src/core/XMLPort.h

    r1505 r1586  
    3232#include "CorePrereqs.h"
    3333
     34#include "util/Debug.h"
    3435#include "util/XMLIncludes.h"
    3536#include "util/MultiTypeMath.h"
    3637#include "tinyxml/ticpp.h"
    3738#include "Executor.h"
    38 #include "Debug.h"
    3939#include "CoreIncludes.h"
    4040#include "BaseObject.h"
  • code/branches/core3/src/core/input/Button.cc

    r1535 r1586  
    3636#include "util/SubString.h"
    3737#include "util/String.h"
    38 #include "core/Debug.h"
     38#include "util/Debug.h"
    3939#include "core/ConsoleCommand.h"
    4040#include "core/CommandEvaluation.h"
  • code/branches/core3/src/core/input/InputManager.cc

    r1555 r1586  
    3939#include "core/CoreIncludes.h"
    4040#include "core/ConfigValueIncludes.h"
    41 #include "core/Debug.h"
    4241#include "core/CommandExecutor.h"
    4342#include "core/ConsoleCommand.h"
    4443#include "core/Shell.h"               // hack!
     44#include "util/Debug.h"
    4545
    4646#include "InputBuffer.h"
  • code/branches/core3/src/core/input/KeyBinder.cc

    r1567 r1586  
    3636#include <string>
    3737#include "util/Convert.h"
    38 #include "core/Debug.h"
     38#include "util/Debug.h"
    3939#include "core/ConfigValueIncludes.h"
    4040#include "core/CoreIncludes.h"
  • code/branches/core3/src/core/input/KeyDetector.cc

    r1535 r1586  
    3333
    3434#include "KeyDetector.h"
    35 #include "core/Debug.h"
     35#include "util/Debug.h"
    3636#include "core/CoreIncludes.h"
    3737#include "core/CommandExecutor.h"
Note: See TracChangeset for help on using the changeset viewer.