bbtkMessageManager.h File Reference

Class bbtkMessageManager and Macros for outputing messages in bbtk. More...

#include "bbtkSystem.h"
#include "bbtkRTTI.h"
#include <string>
#include <map>
#include <iostream>
#include <sstream>
#include "bbtkException.h"

Include dependency graph for bbtkMessageManager.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  bbtk

Classes

class  bbtk::MessageManager
 Manages the messages displayed by bbtk. More...

Defines

#define bbtkOnMessageLevel(key, value)
#define bbtkMessageCode   ""
#define bbtkMessageTab   ""
#define BBTK_PREPEND_MESSAGE_WITH_SPACE
#define bbtkMessageSpace(value)   bbtk::MessageManager::GetSpace(value)
#define bbtkMessage(key, value, MESSAGE)
#define bbtkMessageCont(key, value, MESSAGE)
#define bbtkMessageInc(key, value, MESSAGE)
#define bbtkMessageDec(key, value, MESSAGE)
#define bbtkDecTab(key, value)
#define bbtkIncTab(key, value)
#define bbtkResetTab()
#define bbtkDebugMessage(key, value, MESSAGE)
#define bbtkDebugMessageCont(key, value, MESSAGE)
#define bbtkDebugMessageInc(key, value, MESSAGE)
#define bbtkDebugMessageDec(key, value, MESSAGE)
#define bbtkDebugDecTab(key, value)
#define bbtkDebugIncTab(key, value)
#define bbtkDebugResetTab()
#define bbtkWarning(MESSAGE)
#define bbtkError(MESSAGE)
#define bbtkGlobalError(MESSAGE)
#define BBTK_INTERNAL_ERROR_MESSAGE   "\n\n***********************************************\n**** THIS IS AN INTERNAL ERROR TO BBTK ****\n**** Please send a full bug report to : ****\n**** bbtk-developers@creatis.insa-lyon.fr ****\n***********************************************\n\n"
#define bbtkInternalError(MESSAGE)
#define bbtkendl   std::endl


Detailed Description

Class bbtkMessageManager and Macros for outputing messages in bbtk.

There are 4 kinds of messages :

To generate a message of a known type then use one of the macros : bbtkMessage, bbtkDebugMessage, bbtkWarning, bbtkError or their variants.

example :

bbtkMessage("Kernel",4,"problem with "<<GetName()<<bbtkendl);

will push the 3rd argument in std::cout if the message level of "Kernel" messages is greater or equal to 4. which means that it generates a message of level 4 (0 : very important/always displayed ... 9 : deep debug message).

At run time, one is able to change the level of the messages displayed by using a command like :

bbtk::MessageManager::SetMessageLevel("Kernel",5);

which tells the manager to display all Kernel messages of level up to 5.

Variants :

bbtk*Cont : continues a previous bbtkMessage on the same line (without rewriting the type and level) bbtk*Inc / Dec : displays the message and then increments/decrement the messages tabulation

Definition in file bbtkMessageManager.h.


Define Documentation

#define BBTK_INTERNAL_ERROR_MESSAGE   "\n\n***********************************************\n**** THIS IS AN INTERNAL ERROR TO BBTK ****\n**** Please send a full bug report to : ****\n**** bbtk-developers@creatis.insa-lyon.fr ****\n***********************************************\n\n"

Definition at line 379 of file bbtkMessageManager.h.

Referenced by bbtk::Package::UnLoadDynamicLibrary().

#define BBTK_PREPEND_MESSAGE_WITH_SPACE

Definition at line 125 of file bbtkMessageManager.h.

#define bbtkDebugDecTab ( key,
value   ) 

Value:

do                                              \
    {                                           \
      bbtkOnMessageLevel(key,value)             \
        {                                       \
          bbtk::MessageManager::DecTab();       \
        }                                       \
    }                                           \
  while (0)

Definition at line 287 of file bbtkMessageManager.h.

Referenced by bbtk::ComplexBlackBoxDescriptor::Add(), bbtk::ComplexBlackBoxDescriptor::AddToExecutionList(), bbtk::ComplexBlackBox::bbAddBlackBox(), bbtk::ComplexBlackBox::bbAddConnection(), bbtk::ComplexBlackBox::bbAddToExecutionList(), bbtk::ComplexBlackBox::bbAllocateConnectors(), bbtk::BlackBox::bbAllocateConnectors(), bbtk::ComplexBlackBox::bbBruteForceSetInputPointer(), bbtk::AtomicBlackBox::bbBruteForceSetInputPointer(), bbtk::BlackBox::bbCopyIOValues(), bbtk::ComplexBlackBox::bbDesallocateConnectors(), bbtk::BlackBox::bbDesallocateConnectors(), bbtk::ComplexBlackBox::bbGetBlackBox(), bbtk::ComplexBlackBox::bbGetInput(), bbtk::AtomicBlackBox::bbGetInput(), bbtk::BlackBox::bbGetInputType(), bbtk::ComplexBlackBox::bbGetOutput(), bbtk::AtomicBlackBox::bbGetOutput(), bbtk::BlackBox::bbGetOutputType(), bbtk::BlackBox::bbHasInput(), bbtk::BlackBox::bbHasOutput(), bbtk::ComplexBlackBox::bbPrintBlackBoxes(), bbtk::ComplexBlackBox::bbRemoveBlackBox(), bbtk::ComplexBlackBox::bbSetInput(), bbtk::AtomicBlackBox::bbSetInput(), bbtk::ComplexBlackBox::bbSetOutput(), bbtk::AtomicBlackBox::bbSetOutput(), bbtk::ComplexBlackBox::bbUnsafeAddBlackBox(), bbtk::ComplexBlackBox::bbUnsafeGetBlackBox(), bbtk::Package::ChangeBlackBoxName(), bbtk::Factory::CloseAllPackages(), bbtk::Factory::ClosePackage(), bbtk::Interpreter::CommandLineInterpreter(), bbtk::ComplexBlackBoxDescriptor::Connect(), bbtk::Package::ContainsBlackBox(), bbtk::Factory::CreateHtmlIndex(), bbtk::Package::CreateHtmlPage(), bbtk::Executer::Define(), bbtk::ComplexBlackBoxDescriptor::DefineInput(), bbtk::ComplexBlackBoxDescriptor::DefineOutput(), bbtk::Executer::Executer(), bbtk::Package::FindAdaptor(), bbtk::Factory::FindAdaptor(), bbtk::Package::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor2(), bbtk::ConfigurationFile::GetHelp(), bbtk::BlackBoxDescriptor::GetHelp(), bbtk::BlackBoxDescriptor::GetInputDescriptor(), bbtk::BlackBoxDescriptor::GetOutputDescriptor(), bbtk::Factory::GetPackage(), bbtk::Package::HelpBlackBox(), bbtk::Factory::HelpBlackBox(), bbtk::Factory::HelpPackage(), bbtk::Interpreter::Init(), bbtk::ComplexBlackBoxDescriptor::InsertHtmlHelp(), bbtk::BlackBoxDescriptor::InsertHtmlHelp(), bbtk::Factory::InsertPackage(), bbtk::Interpreter::InterpretLine(), bbtk::Package::NewAdaptor(), bbtk::Factory::NewAdaptor(), bbtk::Package::NewBlackBox(), bbtk::Factory::NewBlackBox(), bbtk::ComplexBlackBoxDescriptor::NewBlackBox(), bbtk::Package::NewWidgetAdaptor(), bbtk::Factory::NewWidgetAdaptor(), bbtk::Factory::PrintPackages(), bbtk::Package::RegisterBlackBox(), bbtk::Factory::RemovePackage(), bbtk::Factory::Reset(), bbtk::Executer::Reset(), bbtk::Factory::ShowGraphTypes(), bbtk::Interpreter::SplitLine(), bbtk::Transcriptor::Transcriptor(), bbtk::Factory::UnLoadPackage(), bbtk::BlackBoxOutputConnector::UnsetConnection(), bbtk::Factory::WriteDotFilePackagesList(), bbtk::BlackBoxInputConnector::~BlackBoxInputConnector(), bbtk::Executer::~Executer(), bbtk::Factory::~Factory(), and bbtk::Transcriptor::~Transcriptor().

#define bbtkDebugIncTab ( key,
value   ) 

Value:

do                                              \
      {                                         \
        bbtkOnMessageLevel(key,value)           \
          {                                     \
            bbtk::MessageManager::IncTab();     \
          }                                     \
      }                                         \
    while (0)

Definition at line 297 of file bbtkMessageManager.h.

#define bbtkDebugMessage ( key,
value,
MESSAGE   ) 

Value:

do                                                      \
    {                                                   \
      bbtkOnMessageLevel(key,value)                     \
        {                                               \
          std::cout << bbtkMessageCode                  \
                    << bbtkMessageTab                   \
                    << bbtkMessageSpace(value)          \
                    << MESSAGE;                         \
        }                                               \
    }                                                   \
  while (0)

Definition at line 234 of file bbtkMessageManager.h.

Referenced by bbtk::ConfigurationFile::AddPackagePathsAndWrite(), bbtk::BlackBoxDescriptor::AddToAuthor(), bbtk::BlackBoxDescriptor::AddToCategory(), bbtk::BlackBoxDescriptor::AddToDescription(), bbtk::any< TypeTraits >::any(), bbtk::AtomicBlackBox::AtomicBlackBox(), bbtk::AtomicBlackBoxDescriptor::AtomicBlackBoxDescriptor(), bbtk::AtomicBlackBoxInputDescriptor::AtomicBlackBoxInputDescriptor(), bbtk::AtomicBlackBoxOutputDescriptor::AtomicBlackBoxOutputDescriptor(), bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::AtomicBlackBoxTGetFunctor(), bbtk::AtomicBlackBoxTSetFunctor< UBB, T *, TACCESS * >::AtomicBlackBoxTSetFunctor(), bbtk::AtomicBlackBoxTSetFunctor< UBB, T, TACCESS >::AtomicBlackBoxTSetFunctor(), bbtk::Connection::BackwardUpdate(), bbtk::BlackBoxInputConnector::BackwardUpdate(), bbtk::ComplexBlackBox::bbAllocateConnectors(), bbtk::BlackBox::bbAllocateConnectors(), bbtk::WxBlackBox::bbBackwardUpdate(), bbtk::AtomicBlackBox::bbBackwardUpdate(), bbtk::WxBlackBoxFrame::bbClose(), bbtk::WxBlackBoxDialog::bbClose(), bbtk::ComplexBlackBox::bbConnectInput(), bbtk::BlackBox::bbConnectInput(), bbtk::ComplexBlackBox::bbConnectOutput(), bbtk::BlackBox::bbConnectOutput(), bbtk::BlackBox::bbDesallocateConnectors(), bbtk::BlackBox::bbDisconnectInput(), bbtk::BlackBox::bbDisconnectOutput(), bbtk::WxBlackBox::bbExecute(), bbtk::ComplexBlackBox::bbExecute(), bbtk::BlackBox::bbExecute(), bbtk::BlackBox::bbGlobalProcessExecutionList(), bbtk::WxBlackBoxFrame::bbHide(), bbtk::WxBlackBoxDialog::bbHide(), bbtk::WxBlackBoxWindow::bbHide(), bbtk::ComplexBlackBox::bbSetModifiedStatus(), bbtk::BlackBox::bbSetModifiedStatus(), bbtk::WxBlackBoxFrame::bbShow(), bbtk::WxBlackBoxDialog::bbShow(), bbtk::WxBlackBoxWindow::bbShow(), bbtk::WxBlackBox::bbShowWindow(), bbtk::WxBlackBox::bbUserConstructor(), bbtk::WxBlackBox::bbUserCopyConstructor(), bbtk::BlackBox::bbUserDelete(), bbtk::WxBlackBox::bbUserDestructor(), bbtk::BlackBox::BlackBox(), bbtk::BlackBoxDescriptor::BlackBoxDescriptor(), bbtk::BlackBoxOutputConnector::BlackBoxOutputConnector(), bbtk::AtomicBlackBoxTSetFunctor< UBB, T *, TACCESS * >::BruteForceSetPointer(), bbtk::Wx::BusyCursor::BusyCursor(), bbtk::Interpreter::CloseAllFiles(), bbtk::Interpreter::CloseCurrentFile(), bbtk::ComplexBlackBox::ComplexBlackBox(), bbtk::ComplexBlackBoxDescriptor::ComplexBlackBoxDescriptor(), bbtk::ComplexBlackBoxInputDescriptor::ComplexBlackBoxInputDescriptor(), bbtk::ComplexBlackBoxOutputDescriptor::ComplexBlackBoxOutputDescriptor(), bbtk::ConfigurationFile::CreateConfigXML(), bbtk::Package::CreateFromDynamicLibrary(), bbtk::Wx::CreateTopWindowIfNeeded(), bbtk::Wx::CreateWxAppIfNeeded(), bbtk::Wx::DecNbWindowsAlive(), bbtk::Wx::DecNbWindowsShown(), bbtk::BlackBox::Deleter::Delete(), bbtk::Wx::DestroyTopWindowIfNeeded(), bbtk::Wx::DestroyWxAppIfNeeded(), bbtk::Factory::Factory(), bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::Get(), bbtk::any< TypeTraits >::get(), bbtk::any< TypeTraits >::get_pointer(), bbtk::any< TypeTraits >::get_pointer_to(), bbtk::Wx::IncNbWindowsAlive(), bbtk::Wx::IncNbWindowsShown(), bbtk::Object::InsertInObjectList(), bbtk::Object::InsertInPackageList(), bbtk::Interpreter::InterpretBuffer(), bbtk::Interpreter::InterpretFile(), bbtk::Interpreter::InterpretLine(), bbtk::Wx::LoopUntilAllWindowsClose(), bbtk::Package::New(), bbtk::Interpreter::New(), bbtk::Factory::New(), bbtk::Executer::New(), bbtk::ComplexBlackBoxDescriptor::New(), bbtk::ComplexBlackBox::New(), bbtk::Factory::NewConnection(), bbtk::WxGUICommand::OnBtnConfig(), bbtk::WxGUICommand::OnBtnGo(), bbtk::WxGUICommand::OnBtnGraphD(), bbtk::WxGUICommand::OnBtnGraphS(), bbtk::WxGUICommand::OnBtnHelp(), bbtk::WxGUICommand::OnBtnInclude(), bbtk::WxGUICommand::OnBtnReset(), bbtk::WxGUICommand::OnCommandEnter(), bbtk::WxBlackBoxWidgetEventHandler::OnWindowDestroy(), bbtk::WxGUIConsole::OnWxSignal(), bbtk::Package::OpenDynamicLibrary(), bbtk::Object::Deleter::operator()(), bbtk::any< TypeTraits >::operator=(), bbtk::Package::Package(), bbtk::PackageReleaseBlackBoxDescriptorInternal(), bbtk::ConfigurationFile::Read(), bbtk::Package::RegisterBlackBox(), bbtk::Package::Release(), bbtk::Package::ReleaseBlackBoxDescriptor(), bbtk::Object::ReleasePackages(), bbtk::Object::RemoveFromObjectList(), bbtk::run_time_up_or_down_cast(), bbtk::AtomicBlackBoxTSetFunctor< UBB, T *, TACCESS * >::Set(), bbtk::AtomicBlackBoxTSetFunctor< UBB, T, TACCESS >::Set(), bbtk::BlackBoxOutputConnector::SetConnection(), bbtk::BlackBoxInputConnector::SetConnection(), bbtk::Connection::SetModifiedStatus(), bbtk::BlackBoxOutputConnector::SetModifiedStatus(), bbtk::Interpreter::SplitLine(), bbtk::Connection::TransferData(), bbtk::Package::UnLoad(), bbtk::Package::UnLoadDynamicLibrary(), bbtk::Package::UnLoadReleasedDynamicallyLoadedPackages(), bbtk::any< TypeTraits >::unsafe_get(), bbtk::BlackBoxInputConnector::UnsetConnection(), bbtk::WxBlackBoxDialog::WxBlackBoxDialog(), bbtk::WxBlackBoxFrame::WxBlackBoxFrame(), bbtk::WxBlackBoxWidgetEventHandler::WxBlackBoxWidgetEventHandler(), bbtk::WxBlackBoxWindow::WxBlackBoxWindow(), bbtk::AtomicBlackBox::~AtomicBlackBox(), bbtk::AtomicBlackBoxDescriptor::~AtomicBlackBoxDescriptor(), bbtk::AtomicBlackBoxInputDescriptor::~AtomicBlackBoxInputDescriptor(), bbtk::AtomicBlackBoxOutputDescriptor::~AtomicBlackBoxOutputDescriptor(), bbtk::BlackBox::~BlackBox(), bbtk::BlackBoxDescriptor::~BlackBoxDescriptor(), bbtk::BlackBoxOutputConnector::~BlackBoxOutputConnector(), bbtk::ComplexBlackBox::~ComplexBlackBox(), bbtk::ComplexBlackBoxDescriptor::~ComplexBlackBoxDescriptor(), bbtk::ComplexBlackBoxInputDescriptor::~ComplexBlackBoxInputDescriptor(), bbtk::ComplexBlackBoxOutputDescriptor::~ComplexBlackBoxOutputDescriptor(), bbtk::Connection::~Connection(), bbtk::Package::~Package(), bbtk::WxBlackBoxWidgetEventHandler::~WxBlackBoxWidgetEventHandler(), and bbtk::WxBlackBoxWindow::~WxBlackBoxWindow().

#define bbtkDebugMessageCont ( key,
value,
MESSAGE   ) 

Value:

do                                              \
    {                                           \
      bbtkOnMessageLevel(key,value)             \
        {                                       \
          std::cout << MESSAGE;                 \
        }                                       \
    }                                           \
  while (0)

Definition at line 249 of file bbtkMessageManager.h.

Referenced by bbtk::Interpreter::SplitLine().

#define bbtkDebugMessageDec ( key,
value,
MESSAGE   ) 

#define bbtkDebugMessageInc ( key,
value,
MESSAGE   ) 

Value:

do                                                      \
    {                                                   \
      bbtkOnMessageLevel(key,value)                     \
        {                                               \
          std::cout << bbtkMessageCode                  \
                    << bbtkMessageTab                   \
                    << bbtkMessageSpace(value)          \
                    << MESSAGE;                         \
          bbtk::MessageManager::IncTab();               \
        }                                               \
    }                                                   \
  while (0)

Definition at line 259 of file bbtkMessageManager.h.

Referenced by bbtk::ComplexBlackBoxDescriptor::Add(), bbtk::ConfigurationFile::AddPackagePathsAndWrite(), bbtk::ComplexBlackBoxDescriptor::AddToExecutionList(), bbtk::ComplexBlackBox::bbAddBlackBox(), bbtk::ComplexBlackBox::bbAddConnection(), bbtk::ComplexBlackBox::bbAddToExecutionList(), bbtk::ComplexBlackBox::bbAllocateConnectors(), bbtk::BlackBox::bbAllocateConnectors(), bbtk::ComplexBlackBox::bbBackwardUpdate(), bbtk::AtomicBlackBox::bbBackwardUpdate(), bbtk::ComplexBlackBox::bbBruteForceSetInputPointer(), bbtk::AtomicBlackBox::bbBruteForceSetInputPointer(), bbtk::ComplexBlackBox::bbClone(), bbtk::WxBlackBox::bbCloseWindow(), bbtk::BlackBox::bbCopyIOValues(), bbtk::ComplexBlackBox::bbDesallocateConnectors(), bbtk::BlackBox::bbDesallocateConnectors(), bbtk::WxBlackBox::bbExecute(), bbtk::ComplexBlackBox::bbExecute(), bbtk::BlackBox::bbExecute(), bbtk::ComplexBlackBox::bbGetBlackBox(), bbtk::ComplexBlackBox::bbGetInput(), bbtk::AtomicBlackBox::bbGetInput(), bbtk::BlackBox::bbGetInputType(), bbtk::ComplexBlackBox::bbGetOutput(), bbtk::AtomicBlackBox::bbGetOutput(), bbtk::BlackBox::bbGetOutputType(), bbtk::BlackBox::bbGlobalProcessExecutionList(), bbtk::BlackBox::bbHasInput(), bbtk::BlackBox::bbHasOutput(), bbtk::WxBlackBox::bbHideWindow(), bbtk::ComplexBlackBox::bbPrintBlackBoxes(), bbtk::ComplexBlackBox::bbRemoveBlackBox(), bbtk::ComplexBlackBox::bbSetInput(), bbtk::AtomicBlackBox::bbSetInput(), bbtk::ComplexBlackBox::bbSetOutput(), bbtk::AtomicBlackBox::bbSetOutput(), bbtk::WxBlackBox::bbShowWindow(), bbtk::BlackBox::bbSignalOutputModification(), bbtk::ComplexBlackBox::bbUnsafeAddBlackBox(), bbtk::ComplexBlackBox::bbUnsafeGetBlackBox(), bbtk::BlackBox::bbUpdateInputs(), bbtk::Executer::BeginPackage(), bbtk::Package::ChangeBlackBoxName(), bbtk::Factory::CloseAllPackages(), bbtk::Factory::ClosePackage(), bbtk::Interpreter::CommandLineInterpreter(), bbtk::ComplexBlackBox::ComplexBlackBox(), bbtk::ComplexBlackBoxDescriptor::Connect(), bbtk::Package::ContainsBlackBox(), bbtk::Factory::CreateHtmlIndex(), bbtk::Package::CreateHtmlPage(), bbtk::Executer::Define(), bbtk::ComplexBlackBoxDescriptor::DefineInput(), bbtk::ComplexBlackBoxDescriptor::DefineOutput(), bbtk::Executer::EndDefine(), bbtk::Executer::Executer(), bbtk::Package::FindAdaptor(), bbtk::Factory::FindAdaptor(), bbtk::Package::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor2(), bbtk::ConfigurationFile::GetHelp(), bbtk::BlackBoxDescriptor::GetHelp(), bbtk::BlackBoxDescriptor::GetInputDescriptor(), bbtk::BlackBoxDescriptor::GetOutputDescriptor(), bbtk::Factory::GetPackage(), bbtk::Package::HelpBlackBox(), bbtk::Factory::HelpBlackBox(), bbtk::Factory::HelpPackage(), bbtk::Interpreter::Init(), bbtk::ComplexBlackBoxDescriptor::InsertHtmlHelp(), bbtk::BlackBoxDescriptor::InsertHtmlHelp(), bbtk::Factory::InsertPackage(), bbtk::Interpreter::InterpretBuffer(), bbtk::Interpreter::InterpretCommand(), bbtk::Interpreter::InterpretFile(), bbtk::Interpreter::InterpretLine(), bbtk::Factory::LoadPackage(), bbtk::Package::NewAdaptor(), bbtk::Factory::NewAdaptor(), bbtk::Package::NewBlackBox(), bbtk::Factory::NewBlackBox(), bbtk::ComplexBlackBoxDescriptor::NewBlackBox(), bbtk::Package::NewWidgetAdaptor(), bbtk::Factory::NewWidgetAdaptor(), bbtk::Executer::Print(), bbtk::Factory::PrintPackages(), bbtk::Package::RegisterBlackBox(), bbtk::Factory::RemovePackage(), bbtk::Factory::Reset(), bbtk::Executer::Reset(), bbtk::Interpreter::SplitLine(), bbtk::Interpreter::SwitchToFile(), bbtk::Transcriptor::Transcriptor(), bbtk::Connection::TransferData(), bbtk::Factory::UnLoadPackage(), bbtk::BlackBoxOutputConnector::UnsetConnection(), bbtk::Factory::WriteDotFilePackagesList(), bbtk::BlackBoxInputConnector::~BlackBoxInputConnector(), bbtk::Executer::~Executer(), bbtk::Factory::~Factory(), bbtk::Interpreter::~Interpreter(), and bbtk::Transcriptor::~Transcriptor().

 
#define bbtkDebugResetTab (  ) 

Value:

do                                              \
      {                                         \
        bbtk::MessageManager::ResetTab();       \
      }                                         \
    while (0)

Definition at line 307 of file bbtkMessageManager.h.

#define bbtkDecTab ( key,
value   ) 

#define bbtkendl   std::endl

#define bbtkError ( MESSAGE   ) 

Value:

do                                                      \
    {                                                   \
      std::ostringstream s;                             \
      s << MESSAGE;                                     \
      std::ostringstream f;                             \
      f << __FILE__ << " (l."<<__LINE__<<")";           \
      bbtk::Exception e( BBTK_GET_CURRENT_OBJECT_NAME,  \
                        f.str(),                        \
                        s.str());                       \
      throw e;                                          \
    }                                                   \
  while (0)

Definition at line 351 of file bbtkMessageManager.h.

Referenced by bbtk::ComplexBlackBoxDescriptor::Add(), bbtk::ConfigurationFile::AddPackagePathsAndWrite(), bbtk::ComplexBlackBoxDescriptor::AddToExecutionList(), bbtk::any< TypeTraits >::any(), bbtk::ComplexBlackBox::bbAddBlackBox(), bbtk::ComplexBlackBox::bbBackwardUpdate(), bbtk::BlackBox::bbConnectInput(), bbtk::BlackBox::bbConnectOutput(), bbtk::BlackBox::bbDisconnectInput(), bbtk::BlackBox::bbDisconnectOutput(), bbtk::ComplexBlackBox::bbGetBlackBox(), bbtk::BlackBox::bbGetBoxProcessModeValue(), bbtk::ComplexBlackBox::bbRemoveBlackBox(), bbtk::WxBlackBox::bbShowWindow(), bbtk::BlackBox::bbSignalOutputModification(), bbtk::WxBlackBox::bbUserCreateWidget(), bbtk::Package::ChangeBlackBoxName(), bbtk::Connection::Check(), bbtk::ComplexBlackBoxDescriptor::Connect(), bbtk::Factory::CreateHtmlIndex(), bbtk::Package::CreateHtmlPage(), bbtk::ComplexBlackBoxDescriptor::DefineInput(), bbtk::ComplexBlackBoxDescriptor::DefineOutput(), bbtk::Utilities::ExtractPackageName(), bbtk::Executer::Get(), bbtk::any< TypeTraits >::get(), bbtk::BlackBoxDescriptor::GetInputDescriptor(), bbtk::BlackBoxDescriptor::GetOutputDescriptor(), bbtk::any< TypeTraits >::getP(), bbtk::Factory::GetPackage(), bbtk::Interpreter::Help(), bbtk::Package::HelpBlackBox(), bbtk::Factory::HelpBlackBox(), bbtk::Interpreter::HelpCommand(), bbtk::Factory::HelpPackage(), bbtk::Interpreter::InterpretCommand(), bbtk::Executer::Kind(), bbtk::Factory::LoadPackage(), bbtk::Interpreter::LoadScript(), bbtk::Factory::NewAdaptor(), bbtk::Factory::NewBlackBox(), bbtk::Interpreter::NewGUI(), bbtk::Factory::NewWidgetAdaptor(), bbtk::Package::OpenDynamicLibrary(), bbtk::any< TypeTraits >::operator=(), bbtk::ConfigurationFile::Read(), bbtk::Package::RegisterBlackBox(), bbtk::Factory::RemovePackage(), bbtk::Executer::Set(), bbtk::Factory::ShowGraphTypes(), bbtk::Executer::ShowRelations(), bbtk::Interpreter::SwitchToFile(), bbtk::Connection::TransferData(), bbtk::Factory::UnLoadPackage(), and bbtk::any< TypeTraits >::unsafe_get().

#define bbtkGlobalError ( MESSAGE   ) 

Value:

do                                                      \
    {                                                   \
      std::ostringstream s;                             \
      s << MESSAGE;                                     \
      std::ostringstream f;                             \
      f << __FILE__ << " (l."<<__LINE__<<")";           \
      bbtk::Exception e( "global scope",                \
                        f.str(),                        \
                        s.str());                       \
      throw e;                                          \
    }                                                   \
  while (0)

Definition at line 365 of file bbtkMessageManager.h.

Referenced by bbtk::Wx::CreateWxAppIfNeeded(), bbtk::Wx::SetTopWindow(), bbtk::Wx::SetTopWindowParent(), and bbtk::Package::UnLoadDynamicLibrary().

#define bbtkIncTab ( key,
value   ) 

Value:

do                                              \
    {                                           \
      bbtkOnMessageLevel(key,value)             \
        {                                       \
          bbtk::MessageManager::IncTab();       \
        }                                       \
    }                                           \
  while (0)

Definition at line 200 of file bbtkMessageManager.h.

Referenced by bbtk::Factory::HelpPackage().

#define bbtkInternalError ( MESSAGE   ) 

Value:

do                                                      \
    {                                                   \
      std::ostringstream s;                             \
      s << MESSAGE << BBTK_INTERNAL_ERROR_MESSAGE;      \
      std::ostringstream f;                             \
      f << __FILE__ << " (l."<<__LINE__<<")";           \
      bbtk::Exception e( BBTK_GET_CURRENT_OBJECT_NAME,  \
                         f.str(),                       \
                         s.str());                      \
      throw e;                                          \
    }                                                   \
  while (0)

Definition at line 382 of file bbtkMessageManager.h.

Referenced by bbtk::ComplexBlackBox::bbBackwardUpdate(), bbtk::AtomicBlackBoxTSetFunctor< UBB, T, TACCESS >::BruteForceSetPointer(), bbtk::BlackBox::Deleter::Delete(), bbtk::Interpreter::InterpretLine(), bbtk::BlackBoxOutputConnector::UnsetConnection(), and bbtk::Connection::~Connection().

#define bbtkMessage ( key,
value,
MESSAGE   ) 

#define bbtkMessageCode   ""

Definition at line 115 of file bbtkMessageManager.h.

#define bbtkMessageCont ( key,
value,
MESSAGE   ) 

Value:

do                                              \
    {                                           \
      bbtkOnMessageLevel(key,value)             \
        {                                       \
          std::cout << MESSAGE;                 \
        }                                       \
    }                                           \
  while (0)

Definition at line 152 of file bbtkMessageManager.h.

Referenced by bbtk::Factory::HelpPackage(), and bbtk::MessageManager::PrintInfo().

#define bbtkMessageDec ( key,
value,
MESSAGE   ) 

Value:

do                                                      \
    {                                                   \
      bbtkOnMessageLevel(key,value)                     \
        {                                               \
          bbtk::MessageManager::DecTab();               \
          std::cout << bbtkMessageCode                  \
                    << bbtkMessageTab                   \
                    << bbtkMessageSpace(value)          \
                    << MESSAGE;                         \
        }                                               \
    }                                                   \
  while (0)

Definition at line 176 of file bbtkMessageManager.h.

#define bbtkMessageInc ( key,
value,
MESSAGE   ) 

Value:

do                                                      \
    {                                                   \
      bbtkOnMessageLevel(key,value)                     \
        {                                               \
          std::cout << bbtkMessageCode                  \
                    << bbtkMessageTab                   \
                    << bbtkMessageSpace(value)          \
                    << MESSAGE;                         \
          bbtk::MessageManager::IncTab();               \
        }                                               \
    }                                                   \
  while (0)

Definition at line 162 of file bbtkMessageManager.h.

Referenced by bbtk::Executer::PrintBoxes(), and bbtk::Executer::ShowGraphInstances().

#define bbtkMessageSpace ( value   )     bbtk::MessageManager::GetSpace(value)

Definition at line 127 of file bbtkMessageManager.h.

#define bbtkMessageTab   ""

Definition at line 122 of file bbtkMessageManager.h.

#define bbtkOnMessageLevel ( key,
value   ) 

Value:

int __bbtkOnMessageLevelVariable =                      \
    bbtk::MessageManager::GetMessageLevel(key);         \
  if ( __bbtkOnMessageLevelVariable<0)                  \
    {                                                   \
      bbtkWarning("message type '"<<key<<"' unknown");  \
    }                                                   \
  else if (value<= __bbtkOnMessageLevelVariable)

Definition at line 102 of file bbtkMessageManager.h.

 
#define bbtkResetTab (  ) 

Value:

do                                              \
    {                                           \
      bbtk::MessageManager::ResetTab();         \
    }                                           \
  while (0)

Definition at line 210 of file bbtkMessageManager.h.

#define bbtkWarning ( MESSAGE   ) 

Value:

do                                                                      \
    {                                                                   \
      int lev = bbtk::MessageManager::GetMessageLevel("Warning");       \
      if (lev >0)                                                       \
        {                                                               \
          std::cerr << "!! WARNING !! " << MESSAGE << std::endl;        \
          if (lev >1)                                                   \
            {                                                           \
              std::cerr << "!! WARNING !! In file '"<<__FILE__          \
                        <<"' ; Line "<<__LINE__<<std::endl;             \
            }                                                           \
        }                                                               \
    }                                                                   \
  while (0)

Definition at line 326 of file bbtkMessageManager.h.

Referenced by bbtk::AtomicBlackBox::bbUserProcess(), bbtk::Package::RegisterBlackBox(), bbtk::run_time_up_or_down_cast(), and bbtk::MessageManager::SetMessageLevel().


Generated on Wed Nov 12 11:37:50 2008 for BBTK by  doxygen 1.5.6