#include "bbtkSystem.h"
#include "bbtkRTTI.h"
#include <string>
#include <map>
#include <iostream>
#include <sstream>
#include "bbtkException.h"
Go to the source code of this file.
Classes | |
class | bbtk::MessageManager |
Manages the messages displayed by bbtk. More... | |
Namespaces | |
namespace | bbtk |
Defines | |
#define | bbtkOnMessageLevel(key, value) |
#define | BBTK_PREPEND_MESSAGE_WITH_CODE |
#define | bbtkMessageCode(key, value) bbtk::MessageManager::FormatKey(key,value) |
#define | bbtkMessageTab "" |
#define | bbtkMessageSpace(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 |
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 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 380 of file bbtkMessageManager.h.
Referenced by bbtk::Package::UnLoadDynamicLibrary().
#define BBTK_PREPEND_MESSAGE_WITH_CODE |
Definition at line 111 of file bbtkMessageManager.h.
#define bbtkDebugDecTab | ( | key, | |||
value | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ bbtk::MessageManager::DecTab(); \ } \ } \ while (0)
Definition at line 288 of file bbtkMessageManager.h.
Referenced by bbtk::BlackBox::bbCopyIOValues(), bbtk::BlackBox::bbDesallocateConnectors(), bbtk::BlackBox::bbGetInputType(), bbtk::BlackBox::bbGetOutputType(), bbtk::BlackBox::bbHasInput(), bbtk::BlackBox::bbHasOutput(), bbtk::AtomicBlackBox::bbSetOutput(), bbtk::Package::ChangeDescriptorName(), bbtk::Factory::CloseAllPackages(), bbtk::Factory::ClosePackage(), bbtk::InterpreterVirtual::CommandLineInterpreter(), bbtk::Package::ContainsDescriptor(), bbtk::Factory::CreateHtmlIndex(), bbtk::Package::CreateHtmlPage(), bbtk::InterpreterVirtual::DoInterpretLine(), bbtk::Package::FindAdaptor(), bbtk::Factory::FindAdaptor(), bbtk::Package::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor2(), bbtk::ConfigurationFile::GetHelp(), bbtk::Factory::GetPackage(), bbtk::Factory::InsertPackage(), bbtk::Package::NewAdaptor(), bbtk::Factory::NewAdaptor(), bbtk::Package::NewBlackBox(), bbtk::Factory::NewBlackBox(), bbtk::Package::NewWidgetAdaptor(), bbtk::Factory::NewWidgetAdaptor(), bbtk::Package::PrintHelpDescriptor(), bbtk::Factory::PrintHelpDescriptor(), bbtk::Factory::PrintHelpListPackages(), bbtk::Factory::PrintHelpPackage(), bbtk::Package::Register(), bbtk::Factory::RemovePackage(), bbtk::Factory::ShowGraphTypes(), bbtk::Transcriptor::Transcriptor(), bbtk::Factory::UnLoadPackage(), bbtk::Factory::WriteDotFilePackagesList(), and bbtk::Transcriptor::~Transcriptor().
#define bbtkDebugIncTab | ( | key, | |||
value | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ bbtk::MessageManager::IncTab(); \ } \ } \ while (0)
Definition at line 298 of file bbtkMessageManager.h.
#define bbtkDebugMessage | ( | key, | |||
value, | |||||
MESSAGE | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ std::cout << bbtkMessageCode(key,value) \ << bbtkMessageTab \ << bbtkMessageSpace(value) \ << MESSAGE; \ } \ } \ while (0)
Definition at line 235 of file bbtkMessageManager.h.
Referenced by bbtk::ConfigurationFile::AddPackagePathsAndWrite(), bbtk::any< TypeTraits >::any(), 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::WidgetBlackBoxWindow< W >::bbDestroy(), bbtk::BlackBox::bbGlobalAddToExecutionList(), bbtk::BlackBox::bbGlobalProcessExecutionList(), bbtk::WidgetBlackBoxWindow< W >::bbHide(), bbtk::WidgetBlackBoxWindow< W >::bbShow(), bbtk::Executer::BeginPackage(), bbtk::AtomicBlackBoxTSetFunctor< UBB, T *, TACCESS * >::BruteForceSetPointer(), bbtk::Wx::BusyCursor::BusyCursor(), bbtk::Executer::Clear(), bbtk::InterpreterVirtual::CloseAllFiles(), bbtk::Factory::CloseAllPackages(), bbtk::InterpreterVirtual::CloseCurrentFile(), bbtk::ComplexBlackBoxInputDescriptor::ComplexBlackBoxInputDescriptor(), bbtk::ComplexBlackBoxOutputDescriptor::ComplexBlackBoxOutputDescriptor(), bbtk::ConfigurationFile::CreateConfigXML(), bbtk::Package::CreateFromDynamicLibrary(), bbtk::Qt::CreateQtAppIfNeeded(), bbtk::Wx::CreateWxAppIfNeeded(), bbtk::Wx::DecNbWindowsAlive(), bbtk::Qt::DecNbWindowsAlive(), bbtk::Qt::DecNbWindowsShown(), bbtk::Executer::Define(), bbtk::BlackBox::Deleter::Delete(), bbtk::InterpreterVirtual::DoInterpretLine(), bbtk::Executer::EndDefine(), bbtk::Executer::Executer(), 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::Qt::IncNbWindowsAlive(), bbtk::Qt::IncNbWindowsShown(), bbtk::ConfigurationFile::InitializeDotBbtkStructure(), bbtk::Object::InsertInObjectList(), bbtk::Object::InsertInPackageList(), bbtk::InterpreterVirtual::InterpretBuffer(), bbtk::InterpreterVirtual::InterpretCommand(), bbtk::InterpreterVirtual::InterpretCurrentStreams(), bbtk::Interpreter::Interpreter(), bbtk::InterpreterVirtual::InterpretFile(), bbtk::InterpreterVirtual::InterpretLine(), bbtk::InterpreterVirtual::LoadScript(), bbtk::Package::New(), bbtk::InterpreterVirtual::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::WxGUIScriptingInterface::OnClose(), bbtk::WxGUIConsole::OnClose(), bbtk::WxDialog::OnCloseWindow(), bbtk::WxFrame::OnCloseWindow(), bbtk::WxGUICommand::OnCommandEnter(), bbtk::WxGUIConsole::OnWxSignal(), bbtk::Package::OpenDynamicLibrary(), bbtk::Object::Deleter::operator()(), bbtk::any< TypeTraits >::operator=(), bbtk::Package::Package(), bbtk::PackageReleaseBlackBoxDescriptorInternal(), bbtk::BlackBoxOutputConnector::PimplDestruct(), bbtk::BlackBoxInputConnector::PimplDestruct(), bbtk::Executer::Print(), bbtk::QtBlackBoxDialog::QtBlackBoxDialog(), bbtk::ConfigurationFile::Read(), bbtk::BlackBoxInputConnector::RecursiveExecute(), bbtk::Package::Register(), bbtk::Package::Release(), bbtk::Package::ReleaseBlackBoxDescriptor(), bbtk::Object::ReleasePackages(), bbtk::Object::RemoveFromObjectList(), bbtk::Factory::Reset(), bbtk::Executer::Reset(), 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::BlackBoxOutputConnector::SignalChange(), bbtk::InterpreterVirtual::SplitLine(), bbtk::InterpreterVirtual::SwitchToFile(), bbtk::InterpreterVirtual::SwitchToStream(), bbtk::Package::UnLoad(), bbtk::Package::UnLoadDynamicLibrary(), bbtk::Package::UnLoadReleasedDynamicallyLoadedPackages(), bbtk::any< TypeTraits >::unsafe_get(), bbtk::BlackBoxOutputConnector::UnsetConnection(), bbtk::BlackBoxInputConnector::UnsetConnection(), bbtk::WxDialog::WxDialog(), bbtk::WxFrame::WxFrame(), bbtk::AtomicBlackBoxInputDescriptor::~AtomicBlackBoxInputDescriptor(), bbtk::AtomicBlackBoxOutputDescriptor::~AtomicBlackBoxOutputDescriptor(), bbtk::BlackBoxInputConnector::~BlackBoxInputConnector(), bbtk::BlackBoxOutputConnector::~BlackBoxOutputConnector(), bbtk::Wx::BusyCursor::~BusyCursor(), bbtk::ComplexBlackBoxInputDescriptor::~ComplexBlackBoxInputDescriptor(), bbtk::ComplexBlackBoxOutputDescriptor::~ComplexBlackBoxOutputDescriptor(), bbtk::Executer::~Executer(), bbtk::Factory::~Factory(), bbtk::Interpreter::~Interpreter(), bbtk::InterpreterVirtual::~InterpreterVirtual(), bbtk::Package::~Package(), bbtk::QtBlackBoxDialog::~QtBlackBoxDialog(), bbtk::WidgetBlackBoxWindow< W >::~WidgetBlackBoxWindow(), bbtk::WxDialog::~WxDialog(), bbtk::WxFrame::~WxFrame(), and bbtk::WxGUIScriptingInterface::~WxGUIScriptingInterface().
#define bbtkDebugMessageCont | ( | key, | |||
value, | |||||
MESSAGE | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ std::cout << MESSAGE; \ } \ } \ while (0)
Definition at line 250 of file bbtkMessageManager.h.
#define bbtkDebugMessageDec | ( | key, | |||
value, | |||||
MESSAGE | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ bbtk::MessageManager::DecTab(); \ std::cout << bbtkMessageCode(key,value) \ << bbtkMessageTab \ << bbtkMessageSpace(value) \ << MESSAGE; \ } \ } \ while (0)
Definition at line 274 of file bbtkMessageManager.h.
#define bbtkDebugMessageInc | ( | key, | |||
value, | |||||
MESSAGE | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ std::cout << bbtkMessageCode(key,value) \ << bbtkMessageTab \ << bbtkMessageSpace(value) \ << MESSAGE; \ bbtk::MessageManager::IncTab(); \ } \ } \ while (0)
Definition at line 260 of file bbtkMessageManager.h.
Referenced by bbtk::ConfigurationFile::AddPackagePathsAndWrite(), bbtk::Package::ChangeDescriptorName(), bbtk::Factory::CloseAllPackages(), bbtk::Factory::ClosePackage(), bbtk::InterpreterVirtual::CommandLineInterpreter(), bbtk::Package::ContainsDescriptor(), bbtk::Factory::CreateHtmlIndex(), bbtk::Package::CreateHtmlPage(), bbtk::Package::FindAdaptor(), bbtk::Factory::FindAdaptor(), bbtk::Package::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor2(), bbtk::ConfigurationFile::GetHelp(), bbtk::Factory::GetPackage(), bbtk::InterpreterVirtual::Init(), bbtk::Factory::InsertPackage(), bbtk::Factory::LoadPackage(), bbtk::Package::NewAdaptor(), bbtk::Factory::NewAdaptor(), bbtk::Package::NewBlackBox(), bbtk::Factory::NewBlackBox(), bbtk::Package::NewWidgetAdaptor(), bbtk::Factory::NewWidgetAdaptor(), bbtk::Package::PrintHelpDescriptor(), bbtk::Factory::PrintHelpDescriptor(), bbtk::Factory::PrintHelpListPackages(), bbtk::Factory::PrintHelpPackage(), bbtk::Package::Register(), bbtk::Factory::RemovePackage(), bbtk::Transcriptor::Transcriptor(), bbtk::Factory::UnLoadPackage(), bbtk::Factory::WriteDotFilePackagesList(), and bbtk::Transcriptor::~Transcriptor().
#define bbtkDebugResetTab | ( | ) |
Value:
do \ { \ bbtk::MessageManager::ResetTab(); \ } \ while (0)
Definition at line 308 of file bbtkMessageManager.h.
#define bbtkDecTab | ( | key, | |||
value | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ bbtk::MessageManager::DecTab(); \ } \ } \ while (0)
Definition at line 191 of file bbtkMessageManager.h.
Referenced by bbtk::Factory::PrintHelpPackage().
#define bbtkendl std::endl |
Definition at line 405 of file bbtkMessageManager.h.
Referenced by bbtk::Package::ContainsDescriptor(), bbtk::Factory::CreateHtmlIndex(), bbtk::Package::CreateHtmlPage(), bbtk::Package::FindAdaptor(), bbtk::Factory::FindAdaptor(), bbtk::Package::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor(), bbtk::Factory::FindWidgetAdaptor2(), bbtk::Package::New(), bbtk::ComplexBlackBox::New(), bbtk::Package::NewAdaptor(), bbtk::Factory::NewAdaptor(), bbtk::Package::NewBlackBox(), bbtk::Package::NewWidgetAdaptor(), bbtk::Factory::NewWidgetAdaptor(), bbtk::Package::Package(), bbtk::PackageReleaseBlackBoxDescriptorInternal(), bbtk::Package::PrintHelpDescriptor(), bbtk::MessageManager::PrintInfo(), bbtk::Package::Release(), bbtk::Package::ReleaseBlackBoxDescriptor(), and bbtk::Package::~Package().
#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 352 of file bbtkMessageManager.h.
Referenced by bbtk::ComplexBlackBoxDescriptor::Add(), bbtk::ConfigurationFile::AddPackagePathsAndWrite(), bbtk::ComplexBlackBoxDescriptor::AddToExecutionList(), bbtk::any< TypeTraits >::any(), bbtk::ComplexBlackBox::bbAddBlackBox(), bbtk::BlackBox::bbConnectInput(), bbtk::BlackBox::bbConnectOutput(), bbtk::WidgetBlackBox< wxWindow >::bbCreateDialogWindow(), bbtk::WidgetBlackBox< wxWindow >::bbCreateFrameWindow(), bbtk::BlackBox::bbDisconnectInput(), bbtk::BlackBox::bbDisconnectOutput(), bbtk::ComplexBlackBox::bbGetBlackBox(), bbtk::BlackBox::bbGetBoxProcessModeValue(), bbtk::BlackBox::bbProcess(), bbtk::ComplexBlackBox::bbRemoveBlackBox(), bbtk::BlackBox::bbRemoveOutputObserver(), bbtk::BlackBox::bbSetStatusAndPropagate(), bbtk::BlackBox::bbSignalOutputModification(), bbtk::WidgetBlackBox< wxWindow >::bbUserCreateWidget(), bbtk::Package::ChangeDescriptorName(), bbtk::Connection::Check(), bbtk::Interpreter::commandBreak(), bbtk::Interpreter::commandHelp(), bbtk::Interpreter::commandNewGUI(), bbtk::Interpreter::commandQuit(), 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::InterpreterVirtual::InterpretCommand(), bbtk::Executer::Kind(), bbtk::Factory::LoadPackage(), bbtk::InterpreterVirtual::LoadScript(), bbtk::Factory::NewAdaptor(), bbtk::Factory::NewBlackBox(), bbtk::Factory::NewWidgetAdaptor(), bbtk::Package::OpenDynamicLibrary(), bbtk::any< TypeTraits >::operator=(), bbtk::Executer::PrintHelpBlackBox(), bbtk::Package::PrintHelpDescriptor(), bbtk::Factory::PrintHelpDescriptor(), bbtk::Factory::PrintHelpPackage(), bbtk::ConfigurationFile::Read(), bbtk::Package::Register(), bbtk::BlackBoxOutputConnector::RemoveChangeObserver(), bbtk::Factory::RemovePackage(), bbtk::Executer::Set(), bbtk::Factory::ShowGraphTypes(), bbtk::InterpreterVirtual::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 366 of file bbtkMessageManager.h.
Referenced by bbtk::BlackBox::bbGlobalProcessExecutionList(), bbtk::Qt::CreateQtAppIfNeeded(), bbtk::Wx::CreateWxAppIfNeeded(), bbtk::Utilities::GetExecutablePath(), bbtk::Wx::SetTopWindow(), bbtk::Utilities::SplitAroundFirstDot(), and bbtk::Package::UnLoadDynamicLibrary().
#define bbtkIncTab | ( | key, | |||
value | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ bbtk::MessageManager::IncTab(); \ } \ } \ while (0)
Definition at line 201 of file bbtkMessageManager.h.
Referenced by bbtk::Factory::PrintHelpPackage().
#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 383 of file bbtkMessageManager.h.
Referenced by bbtk::AtomicBlackBoxTSetFunctor< UBB, T, TACCESS >::BruteForceSetPointer(), bbtk::BlackBox::Deleter::Delete(), bbtk::InterpreterVirtual::DoInterpretLine(), bbtk::BlackBoxOutputConnector::UnsetConnection(), and bbtk::Connection::~Connection().
#define bbtkMessage | ( | key, | |||
value, | |||||
MESSAGE | ) |
Value:
do { \ bbtkOnMessageLevel(key,value) \ { \ std::cout << bbtkMessageCode(key,value) \ << bbtkMessageTab \ << bbtkMessageSpace(value) \ << MESSAGE; \ } \ } \ while (0)
Definition at line 139 of file bbtkMessageManager.h.
Referenced by bbtk::ComplexBlackBox::bbPrintBlackBoxes(), bbtk::Package::Check(), bbtk::Factory::Check(), bbtk::Connection::Check(), bbtk::ComplexBlackBox::Check(), bbtk::ConfigurationFile::ConfigurationFile(), bbtk::InterpreterVirtual::DoInterpretLine(), bbtk::Factory::DoLoadPackage(), bbtk::WxGUIScriptingInterface::DoRegenerateBoxesLists(), bbtk::WxGUIScriptingInterface::DoRegeneratePackageDoc(), bbtk::Factory::FindWidgetAdaptor2(), bbtk::ConfigurationFile::GetHelp(), bbtk::ComplexBlackBoxDescriptor::GetHelp(), bbtk::BlackBoxDescriptor::GetHelp(), bbtk::ConfigurationFile::InstallPath(), bbtk::Factory::LoadPackage(), bbtk::InterpreterVirtual::LoadScript(), bbtk::WxGUIScriptingInterface::OnMenuCreateBlackBox(), bbtk::WxGUIConsole::OnMenuCreateBlackBox(), bbtk::WxGUIScriptingInterface::OnMenuCreatePackage(), bbtk::WxGUIConsole::OnMenuCreatePackage(), bbtk::Package::OpenDynamicLibrary(), bbtk::Executer::Print(), bbtk::Package::PrintHelpListAdaptors(), bbtk::Executer::PrintHelpListBoxes(), bbtk::Package::PrintHelpListDescriptors(), bbtk::Factory::PrintHelpListPackages(), bbtk::Factory::PrintHelpPackage(), bbtk::MessageManager::PrintInfo(), bbtk::Executer::ShowGraphInstances(), and bbtk::InterpreterVirtual::SwitchToFile().
#define bbtkMessageCode | ( | key, | |||
value | ) | bbtk::MessageManager::FormatKey(key,value) |
Definition at line 113 of file bbtkMessageManager.h.
#define bbtkMessageCont | ( | key, | |||
value, | |||||
MESSAGE | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ std::cout << MESSAGE; \ } \ } \ while (0)
Definition at line 153 of file bbtkMessageManager.h.
Referenced by bbtk::Factory::PrintHelpPackage(), and bbtk::MessageManager::PrintInfo().
#define bbtkMessageDec | ( | key, | |||
value, | |||||
MESSAGE | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ bbtk::MessageManager::DecTab(); \ std::cout << bbtkMessageCode(key,value) \ << bbtkMessageTab \ << bbtkMessageSpace(value) \ << MESSAGE; \ } \ } \ while (0)
Definition at line 177 of file bbtkMessageManager.h.
#define bbtkMessageInc | ( | key, | |||
value, | |||||
MESSAGE | ) |
Value:
do \ { \ bbtkOnMessageLevel(key,value) \ { \ std::cout << bbtkMessageCode(key,value) \ << bbtkMessageTab \ << bbtkMessageSpace(value) \ << MESSAGE; \ bbtk::MessageManager::IncTab(); \ } \ } \ while (0)
Definition at line 163 of file bbtkMessageManager.h.
#define bbtkMessageSpace | ( | value | ) | "" |
Definition at line 131 of file bbtkMessageManager.h.
#define bbtkMessageTab "" |
Definition at line 123 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 211 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 327 of file bbtkMessageManager.h.
Referenced by bbtk::BlackBox::bbRecursiveExecute(), bbtk::AtomicBlackBox::bbUserProcess(), bbtk::Interpreter::CatchBbtkException(), bbtk::Interpreter::CatchInterpreterException(), bbtk::Interpreter::CatchStdException(), bbtk::Interpreter::CatchUnknownException(), bbtk::Object::Deleter::operator()(), bbtk::Package::Register(), bbtk::run_time_up_or_down_cast(), bbtk::MessageManager::SetMessageLevel(), and bbtk::Package::UnLoad().