From 71376d8384d5d21b5c56d36ecc8cbf31315c039a Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Tue, 5 Feb 2008 13:23:45 +0000 Subject: [PATCH] No longer 'Core' messages but 'Kernel' ones --- kernel/appli/bbfy/bbfy.cpp | 10 +- kernel/src/bbtkBlackBox.cxx | 66 ++++++------ kernel/src/bbtkBlackBoxDescriptor.cxx | 32 +++--- kernel/src/bbtkBlackBoxInputConnector.cxx | 14 +-- kernel/src/bbtkBlackBoxOutputConnector.cxx | 16 +-- kernel/src/bbtkComplexBlackBox.cxx | 100 +++++++++--------- kernel/src/bbtkComplexBlackBoxDescriptor.cxx | 40 +++---- .../bbtkComplexBlackBoxInputDescriptor.cxx | 8 +- .../bbtkComplexBlackBoxOutputDescriptor.cxx | 8 +- kernel/src/bbtkConnection.cxx | 14 +-- kernel/src/bbtkExecuter.cxx | 24 ++--- kernel/src/bbtkFactory.cxx | 90 ++++++++-------- kernel/src/bbtkInterpreter.cxx | 10 +- kernel/src/bbtkMessageManager.cxx | 6 +- kernel/src/bbtkMessageManager.h | 10 +- kernel/src/bbtkPackage.cxx | 58 +++++----- kernel/src/bbtkUserBlackBox.cxx | 14 +-- kernel/src/bbtkUserBlackBoxGetSetFunctor.h | 6 +- .../src/bbtkUserBlackBoxInputDescriptor.cxx | 8 +- kernel/src/bbtkUserBlackBoxMacros.h | 38 +++---- .../src/bbtkUserBlackBoxOutputDescriptor.cxx | 8 +- kernel/src/bbtkWxBlackBox.cxx | 18 ++-- packages/wx/bbs/appli/testSplit.bbs | 2 +- packages/wx/src/bbwxSizer.cxx | 8 +- packages/wx/src/bbwxSplit.cxx | 8 +- 25 files changed, 308 insertions(+), 308 deletions(-) diff --git a/kernel/appli/bbfy/bbfy.cpp b/kernel/appli/bbfy/bbfy.cpp index 0c7972a..d5a6273 100644 --- a/kernel/appli/bbfy/bbfy.cpp +++ b/kernel/appli/bbfy/bbfy.cpp @@ -835,7 +835,7 @@ void bbfy::WriteGenericITKFilterHeader() mFile << "template \n" << "void "<()<<\",\"<()\"<bbUpdate();\n" << " this->bbSetOutputOut( new itkImage( f->bbGetOutputOut() ) );\n" << " f->UnRegister();\n" - << " bbtkDebugDecTab(\"Core\",9);\n" + << " bbtkDebugDecTab(\"Kernel\",9);\n" << "}\n\n"; //================================================================= @@ -938,19 +938,19 @@ void bbfy::CreateCode() // User constr / copy constr / destr implementation mFile <<"void "<bbDesallocateConnectors(); //printf("EED BlackBox::~BlackBox 02 \n"); - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); } //========================================================================= @@ -74,7 +74,7 @@ namespace bbtk /// Destruction method of a black box void BlackBox::bbDelete() { - bbtkDebugMessage("Core",5,"BlackBox::bbDelete() [" + bbtkDebugMessage("Kernel",5,"BlackBox::bbDelete() [" <bbUserDelete(); } @@ -149,13 +149,13 @@ namespace bbtk /// Returns true if the UserBlackBox has an input of name name bool BlackBox::bbHasInput(const std::string& name) const { - bbtkDebugMessageInc("Core",8, + bbtkDebugMessageInc("Kernel",8, "BlackBox::bbHasInput(\"" <GetInputDescriptorMap().find(name) != bbGetDescriptor()->GetInputDescriptorMap().end()); - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); return r; } //========================================================================= @@ -165,11 +165,11 @@ namespace bbtk /// Returns true if the UserBlackBox has an output of name name bool BlackBox::bbHasOutput(const std::string& name) const { - bbtkDebugMessageInc("Core",8,"BlackBox::bbHasOutput(\"" + bbtkDebugMessageInc("Kernel",8,"BlackBox::bbHasOutput(\"" <GetOutputDescriptorMap().find(name) != bbGetDescriptor()->GetOutputDescriptorMap().end()); - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); return r; } //========================================================================= @@ -179,11 +179,11 @@ namespace bbtk /// Gets the output type of a given name TypeInfo BlackBox::bbGetOutputType( const std::string &name ) const { - bbtkDebugMessageInc("Core",8, + bbtkDebugMessageInc("Kernel",8, "BlackBox::bbGetOutputType(\"" <GetOutputDescriptor(name)->GetTypeInfo(); - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); return r; } //========================================================================= @@ -192,11 +192,11 @@ namespace bbtk /// Gets the input type of a given name TypeInfo BlackBox::bbGetInputType( const std::string &name ) const { - bbtkDebugMessageInc("Core",8, + bbtkDebugMessageInc("Kernel",8, "BlackBox::bbGetInputType(\"" <GetInputDescriptor(name)->GetTypeInfo(); - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); return r; } //========================================================================= @@ -206,7 +206,7 @@ namespace bbtk /// Allocates the i/o connectors of the black box void BlackBox::bbAllocateConnectors() { - bbtkDebugMessageInc("Core",8, + bbtkDebugMessageInc("Kernel",8, "BlackBox::bbAllocateConnectors() [" <first<<"\""<first<<"\""<second->GetName()] = new BlackBoxInputConnector(this); } @@ -224,11 +224,11 @@ namespace bbtk BlackBoxDescriptor::OutputDescriptorMapType::const_iterator o; for ( o = omap.begin(); o != omap.end(); ++o ) { - bbtkDebugMessage("Core",8,"* Allocate \""<first<<"\""<first<<"\""<second->GetName()] = new BlackBoxOutputConnector(); } - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); } //========================================================================= @@ -237,7 +237,7 @@ namespace bbtk /// Desallocates the i/o connectors of the black box void BlackBox::bbDesallocateConnectors() { - bbtkDebugMessageInc("Core",8, + bbtkDebugMessageInc("Kernel",8, "BlackBox::bbDesallocateConnectors()" <first<<"\""<first<<"\""<second); } OutputConnectorMapType::const_iterator o; for ( o = bbGetOutputConnectorMap().begin(); o != bbGetOutputConnectorMap().end(); ++o ) { - bbtkDebugMessage("Core",8,"* Delete \""<first<<"\""<first<<"\""<second); } - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); } //========================================================================= @@ -266,7 +266,7 @@ namespace bbtk /// Copies the input / output values from another box void BlackBox::bbCopyIOValues(BlackBox& from) { - bbtkDebugMessageInc("Core",9, + bbtkDebugMessageInc("Kernel",9, "BlackBox::bbCopyIOValues(" <bbSetOutput(output, from.bbGetOutput(output) ); } - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } //========================================================================= @@ -551,7 +551,7 @@ namespace bbtk /// Connects the input to the connection c void BlackBox::bbConnectInput( const std::string& name, Connection* c) { - bbtkDebugMessageInc("Core",7, + bbtkDebugMessageInc("Kernel",7, "BlackBox::bbConnectInput(\""< to the connection c void BlackBox::bbConnectOutput( const std::string& name, Connection* c) { - bbtkDebugMessageInc("Core",7, + bbtkDebugMessageInc("Kernel",7, "BlackBox::bbConnectOutput(\""<second->SetConnection(c); - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); } //========================================================================= @@ -593,7 +593,7 @@ namespace bbtk /// Disconnects the input from the connection c void BlackBox::bbDisconnectInput( const std::string& name, Connection* c) { - bbtkDebugMessageInc("Core",7, + bbtkDebugMessageInc("Kernel",7, "BlackBox::bbDisconnectInput(\""<second->UnsetConnection(c); - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); } //========================================================================= @@ -615,7 +615,7 @@ namespace bbtk /// Disconnects the output from the connection c void BlackBox::bbDisconnectOutput( const std::string& name, Connection* c) { - bbtkDebugMessageInc("Core",7, + bbtkDebugMessageInc("Kernel",7, "BlackBox::bbDisconnectOutput(\""<second->UnsetConnection(c); - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); } //========================================================================= diff --git a/kernel/src/bbtkBlackBoxDescriptor.cxx b/kernel/src/bbtkBlackBoxDescriptor.cxx index be29eb4..d6d3a40 100644 --- a/kernel/src/bbtkBlackBoxDescriptor.cxx +++ b/kernel/src/bbtkBlackBoxDescriptor.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBoxDescriptor.cxx,v $ Language: C++ - Date: $Date: 2008/02/05 12:16:55 $ - Version: $Revision: 1.6 $ + Date: $Date: 2008/02/05 13:23:46 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -38,7 +38,7 @@ namespace bbtk mKind(STANDARD), mPackage(NULL) { - bbtkDebugMessage("Core",9, + bbtkDebugMessage("Kernel",9, "BlackBoxDescriptor::BlackBoxDescriptor()"<second; - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } //========================================================================= @@ -65,7 +65,7 @@ namespace bbtk /// Adds the string to the BlackBox description void BlackBoxDescriptor::AddToDescription( const std::string& s, bool clear) { - bbtkDebugMessage("Core",9,"BlackBoxDescriptor::AddToDescription(\""<second; } //========================================================================= @@ -117,7 +117,7 @@ namespace bbtk const BlackBoxDescriptor::OutputDescriptor* BlackBoxDescriptor::GetOutputDescriptor(const std::string & name) const { - bbtkDebugMessageInc("Core",9,"BlackBoxDescriptor::GetOutputDescriptor('" + bbtkDebugMessageInc("Kernel",9,"BlackBoxDescriptor::GetOutputDescriptor('" <second; } //========================================================================= @@ -134,7 +134,7 @@ namespace bbtk //========================================================================= void BlackBoxDescriptor::GetHelp(bool full) const { - bbtkDebugMessageInc("Core",9,"BlackBoxDescriptor::GetHelp() ["<second->GetDescription()<::iterator i; @@ -45,13 +45,13 @@ namespace bbtk { delete *i; } - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } /// void BlackBoxOutputConnector::SetConnection(Connection* c) { - bbtkDebugMessage("Core",9,"BlackBoxOutputConnector::SetConnection(" + bbtkDebugMessage("Kernel",9,"BlackBoxOutputConnector::SetConnection(" <::iterator i; @@ -76,7 +76,7 @@ namespace bbtk } mConnection.erase(i); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } diff --git a/kernel/src/bbtkComplexBlackBox.cxx b/kernel/src/bbtkComplexBlackBox.cxx index 2c09e31..ec6f1c3 100644 --- a/kernel/src/bbtkComplexBlackBox.cxx +++ b/kernel/src/bbtkComplexBlackBox.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkComplexBlackBox.cxx,v $ Language: C++ -Date: $Date: 2008/01/22 15:02:00 $ -Version: $Revision: 1.1 $ +Date: $Date: 2008/02/05 13:23:46 $ +Version: $Revision: 1.2 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -37,11 +37,11 @@ namespace bbtk : BlackBox(name), mDescriptor(desc) { - bbtkDebugMessageInc("Core",9, + bbtkDebugMessageInc("Kernel",9, "ComplexBlackBox::ComplexBlackBox(\"" <first<<"\""<first<<"\""<second->bbClone(i->second->bbGetName()); bbUnsafeAddBlackBox(B); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); - bbtkDebugMessageInc("Core",9,"* Cloning Connections"<GetFullName()<<"\""<GetBlackBoxFrom()->bbGetName() ); @@ -87,12 +87,12 @@ namespace bbtk bbAddConnection(c); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); bbAllocateConnectors(); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } //======================================================================= @@ -100,37 +100,37 @@ namespace bbtk /// Destructor ComplexBlackBox::~ComplexBlackBox() { - bbtkDebugMessageInc("Core",9, + bbtkDebugMessageInc("Kernel",9, "ComplexBlackBox::~ComplexBlackBox() [" <GetFullName()<<"\""<first<<"\""<first<<"\""<second->bbDelete(); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } - bbtkDebugDecTab("Core",9); - // bbtkDebugMessage("Core",9,"EO ComplexBlackBox::~ComplexBlackBox [" + bbtkDebugDecTab("Kernel",9); + // bbtkDebugMessage("Kernel",9,"EO ComplexBlackBox::~ComplexBlackBox [" // <bbDesallocateConnectors(); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } //======================================================================= @@ -138,7 +138,7 @@ namespace bbtk /// Allocates the i/o connectors of the black box void ComplexBlackBox::bbAllocateConnectors() { - bbtkDebugMessageInc("Core",8, + bbtkDebugMessageInc("Kernel",8, "ComplexBlackBox::bbAllocateConnectors() [" <first<<"\""<first<<"\""<first<<"\""<first<<"\""<second->GetName()] = c; //new BlackBoxOutputConnector(); } - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); } //========================================================================= @@ -191,7 +191,7 @@ namespace bbtk /// Desallocates the i/o connectors of the black box void ComplexBlackBox::bbDesallocateConnectors() { - bbtkDebugMessageInc("Core",8, + bbtkDebugMessageInc("Kernel",8, "ComplexBlackBox::DesallocateConnectors()" <bbGetName() <<"\") [" <bbSetParent(this); mBlackBoxMap[b->bbGetName()] = b; - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); } //================================================================== @@ -482,7 +482,7 @@ namespace bbtk /// Adds the black box to the complex box (unsafe) void ComplexBlackBox::bbUnsafeAddBlackBox( BlackBox* b) { - bbtkDebugMessageInc("Core",7, + bbtkDebugMessageInc("Kernel",7, "ComplexBlackBox::UnsafeAddBlackBox(\""<bbGetName() <<"\") [" <bbSetParent(this); mBlackBoxMap[b->bbGetName()] = b; - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); } //================================================================== @@ -498,13 +498,13 @@ namespace bbtk /// Removes the black box from the complex box void ComplexBlackBox::bbRemoveBlackBox( const std::string& name ) { - bbtkDebugMessageInc("Core",7, + bbtkDebugMessageInc("Kernel",7, "ComplexBlackBox::RemoveBlackBox(\""< BlackBox* ComplexBlackBox::bbGetBlackBox( const std::string& name ) { - bbtkDebugMessageInc("Core",9, + bbtkDebugMessageInc("Kernel",9, "ComplexBlackBox::GetBlackBox(\""<second; } //================================================================== @@ -547,7 +547,7 @@ namespace bbtk /// if it does not exist but return a null pointer BlackBox* ComplexBlackBox::bbUnsafeGetBlackBox( const std::string& name ) { - bbtkDebugMessageInc("Core",9, + bbtkDebugMessageInc("Kernel",9, "ComplexBlackBox::UnsafeGetBlackBox(\""<second; } @@ -568,7 +568,7 @@ namespace bbtk //================================================================== void ComplexBlackBox::bbPrintBlackBoxes() { - bbtkDebugMessageInc("Core",9, + bbtkDebugMessageInc("Kernel",9, "ComplexBlackBox::PrintBlackBoxes() [" <second->bbGetFullName()<bbClone(name); - bbtkDebugDecTab("Core",5); + bbtkDebugDecTab("Kernel",5); } //======================================================================= @@ -81,7 +81,7 @@ namespace bbtk const std::string& name ) { - bbtkDebugMessageInc("Core",5, + bbtkDebugMessageInc("Kernel",5, "ComplexBlackBoxDescriptor::Add(\"" <bbAddBlackBox ( /*mFactory->Create*/ NewBlackBox(type,name) ); - bbtkDebugDecTab("Core",5); + bbtkDebugDecTab("Kernel",5); } //======================================================================= @@ -103,7 +103,7 @@ namespace bbtk /// Adds a black box to the execution list void ComplexBlackBoxDescriptor::AddToExecutionList ( const std::string& box) { - bbtkDebugMessageInc("Core",5, + bbtkDebugMessageInc("Kernel",5, "ComplexBlackBoxDescriptor::AddToExecutionList(\"" <bbAddToExecutionList ( box ); - bbtkDebugDecTab("Core",5); + bbtkDebugDecTab("Kernel",5); } @@ -128,7 +128,7 @@ namespace bbtk const std::string& input ) { - bbtkDebugMessageInc("Core",5, + bbtkDebugMessageInc("Kernel",5, "ComplexBlackBoxDescriptor::Connect(\"" <bbAddConnection(c); - bbtkDebugDecTab("Core",5); + bbtkDebugDecTab("Kernel",5); } //======================================================================= @@ -162,7 +162,7 @@ namespace bbtk const std::string& input, const std::string& help) { - bbtkDebugMessageInc("Core",5, + bbtkDebugMessageInc("Kernel",5, "ComplexBlackBoxDescriptor::DefineInput(\"" <bbGetInputType(input))); - bbtkDebugDecTab("Core",5); + bbtkDebugDecTab("Kernel",5); } //======================================================================= @@ -199,7 +199,7 @@ namespace bbtk const std::string& output, const std::string& help) { - bbtkDebugMessageInc("Core",5, + bbtkDebugMessageInc("Kernel",5, "ComplexBlackBoxDescriptor::DefineOutput(\"" <bbGetOutputType(output))); - bbtkDebugDecTab("Core",5); + bbtkDebugDecTab("Kernel",5); } //======================================================================= @@ -256,7 +256,7 @@ namespace bbtk int detail, int level, const std::string& output_dir, bool relative_link) { - bbtkDebugMessageInc("Core",9, + bbtkDebugMessageInc("Kernel",9, "ComplexBlackBoxDescriptor::InsertHtmlHelp() [" <bbGetName()<<"\",\""<bbGetName()<<"\",\""<bbGetInputType(input) == typeid(Data) ) { - bbtkDebugMessage("Core",8," -> '"< '"<()<<" : can receive any data" <bbConnectOutput(output,this); to->bbConnectInput(input,this); - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); } //================================================================== @@ -125,7 +125,7 @@ namespace bbtk /// Dtor Connection::~Connection() { - bbtkDebugMessageInc("Core",7, + bbtkDebugMessageInc("Kernel",7, "Connection::~Connection() [" <bbDisconnectInput(mInput,this); if (mAdaptor) mAdaptor->bbDelete(); - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); } //================================================================== diff --git a/kernel/src/bbtkExecuter.cxx b/kernel/src/bbtkExecuter.cxx index fe1e36d..8348d06 100644 --- a/kernel/src/bbtkExecuter.cxx +++ b/kernel/src/bbtkExecuter.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkExecuter.cxx,v $ $ Language: C++ - Date: $Date: 2008/02/05 12:16:55 $ - Version: $Revision: 1.6 $ + Date: $Date: 2008/02/05 13:23:46 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -47,9 +47,9 @@ namespace bbtk { //VirtualExec(); - bbtkDebugMessageInc("Core",9,"Executer::Executer()" <UnRegisterBlackBox("workspace"); @@ -67,7 +67,7 @@ namespace bbtk { GetGlobalFactory()->UnLoadPackage("user"); } - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } @@ -76,7 +76,7 @@ namespace bbtk */ void Executer::Reset() { - bbtkDebugMessageInc("Core",9,"Executer::Reset()" <SetScriptFileName(scriptfilename); mOpenDefinition.push_back( CBBDefinition( b, pack ) ); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } void Executer::EndDefine () { - bbtkDebugMessageInc("Core",9,"Executer::EndDefine(\"" + bbtkDebugMessageInc("Kernel",9,"Executer::EndDefine(\"" <GetTypeName()<<"\")" <GetDescription()<second.mPackage->GetName() <<"\")"< void Factory::HelpBlackBox(const std::string& name, bool full) const { - bbtkDebugMessageInc("Core",9,"Factory::HelpBlackBox(\""<GetName()<<"\")"<GetName()] = pack; - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } //=================================================================== @@ -630,7 +630,7 @@ namespace bbtk /// Removes a package from the factory (and deletes it) void Factory::RemovePackage( Package* p ) { - bbtkDebugMessageInc("Core",9,"Factory::RemovePackage(\""<< + bbtkDebugMessageInc("Kernel",9,"Factory::RemovePackage(\""<< p->GetName()<<"\")"<GetName()<<"\") : package absent from factory"); } - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } //=================================================================== @@ -659,7 +659,7 @@ namespace bbtk BlackBox* Factory::NewBlackBox(const std::string& type, const std::string& name) const { - bbtkDebugMessageInc("Core",7,"Factory::NewBlackBox(\"" + bbtkDebugMessageInc("Kernel",7,"Factory::NewBlackBox(\"" <,<" <,\"" < adaptor available"); } - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); return b; } //=================================================================== @@ -718,7 +718,7 @@ namespace bbtk BlackBox* to, const std::string& input) const { - bbtkDebugMessage("Core",7,"Factory::NewConnection(\"" + bbtkDebugMessage("Kernel",7,"Factory::NewConnection(\"" <bbGetName()<<"\",\""<bbGetName()<<"\",\""<second.mPackage; } else { - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); bbtkError("package \""<second.mPackage; } else { - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); bbtkError("package \""<first.c_str(),url.c_str(),";" ); } fprintf( ff , "}\n\n"); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } //=================================================================== @@ -881,7 +881,7 @@ namespace bbtk } } - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); if (!found) { bbtkError("No package of the factory contains any black box <" @@ -895,7 +895,7 @@ namespace bbtk void Factory::CreateHtmlIndex(IndexEntryType type, const std::string& filename) { - bbtkDebugMessageInc("Core",9,"Factory::CreateHtmlIndex(\"" + bbtkDebugMessageInc("Kernel",9,"Factory::CreateHtmlIndex(\"" <& words) /// Displays the Configuration void Interpreter::Config() const { - bbtkDebugMessageInc("Core",9,"Factory::Config"<& words) bbtkMessage("Help",1,"--- ["<<*i<<"]"<second; } */ - bbtkDebugDecTab("Core",7); + bbtkDebugDecTab("Kernel",7); } //========================================================================== @@ -100,16 +100,16 @@ namespace bbtk BlackBox* Package::NewBlackBox(const std::string& type, const std::string& name) const { - bbtkDebugMessageInc("Core",8,"Package<"<::NewBlackBox(\""<::NewBlackBox(\""<second->CreateInstance(name); - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); return bb; } @@ -124,7 +124,7 @@ namespace bbtk TypeInfo typeout, const std::string& name) const { - bbtkDebugMessageInc("Core",8,"Package<"<::NewAdaptor(<" <,<" <,\"" @@ -134,11 +134,11 @@ namespace bbtk AdaptorMapType::const_iterator i = mAdaptorMap.find(key); if (i == mAdaptorMap.end()) { - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); return 0; } BlackBox* bb =i->second->CreateInstance(name); - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); return bb; } @@ -151,7 +151,7 @@ namespace bbtk /// Registers a black box descriptor in the package bool Package::RegisterBlackBox(BlackBoxDescriptor* d) { - bbtkDebugMessageInc("Core",8,"Package<"<::RegisterBlackBox(\""<GetTypeName()<<"\")"<::RegisterBlackBox(\""<GetTypeName()<<"\")"<GetTypeName()] = d; d->SetPackage(this); @@ -165,7 +165,7 @@ namespace bbtk AdaptorMapType::const_iterator i = mAdaptorMap.find(key); if (i == mAdaptorMap.end()) { - bbtkDebugMessage("Core",8,"The box is an adaptor, inserting it in adaptors map ..."<::UnRegisterBlackBox(\""<::UnRegisterBlackBox(\""< does not contains the black box <"<"); } mBlackBoxMap.erase(i); @@ -207,7 +207,7 @@ namespace bbtk mAdaptorMap.erase(j); } */ - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); } //========================================================================== @@ -215,12 +215,12 @@ namespace bbtk /// Changes the name of a black box type void Package::ChangeBlackBoxName( const std::string& oldname, const std::string& newname ) { - bbtkDebugMessageInc("Core",8,"Package<"<::ChangeBlackBoxName(\""<::ChangeBlackBoxName(\""< does not contains the black box <"<"); } @@ -228,7 +228,7 @@ namespace bbtk mBlackBoxMap[newname] = i->second; mBlackBoxMap.erase(i); - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); } //========================================================================== @@ -238,7 +238,7 @@ namespace bbtk /// Registers an adaptor descriptor in the package bool Package::RegisterAdaptor(BlackBoxDescriptor* d) { - bbtkDebugMessage("Core",8,"Package<"<::RegisterAdaptor(\""<GetTypeName()<<"\")"<::RegisterAdaptor(\""<GetTypeName()<<"\")"<GetInputDescriptor("In")->GetTypeInfo(); TypeInfo typeout = d->GetOutputDescriptor("Out")->GetTypeInfo(); @@ -374,18 +374,18 @@ namespace bbtk /// Prints help on a black box void Package::HelpBlackBox(const std::string& name, bool full) const { - bbtkDebugMessageInc("Core",8,"Package<"<::HelpBlackBox(\"" + bbtkDebugMessageInc("Kernel",8,"Package<"<::HelpBlackBox(\"" < does not contains the black box <"<"); } // bbtkMessage("Help",1,"["<second->GetHelp(full); - bbtkDebugDecTab("Core",8); + bbtkDebugDecTab("Kernel",8); } //========================================================================== @@ -395,16 +395,16 @@ namespace bbtk /// Returns true iff the package contains the box of name boxname bool Package::ContainsBlackBox(const std::string& name) const { - bbtkDebugMessageInc("Core",8,"Package<"<::HelpBlackBox(\"" + bbtkDebugMessageInc("Kernel",8,"Package<"<::HelpBlackBox(\"" <::CreateHtmlPage(\"" + bbtkDebugMessageInc("Kernel",9,"Package<"<::CreateHtmlPage(\"" <(); (((UBB*)o)->*mSetMethodPointer)(t); - // bbtkDebugMessage("Core",9,"SetOK"<bbGetFullName()<<"]"< \ @@ -425,14 +425,14 @@ } \ CLASS ## Descriptor() \ { \ - bbtkDebugMessageInc("Core",9,#CLASS<<"Descriptor::"<<#CLASS \ + bbtkDebugMessageInc("Kernel",9,#CLASS<<"Descriptor::"<<#CLASS \ <<"Descriptor()"< \ @@ -458,14 +458,14 @@ } \ CLASS ## Descriptor() \ { \ - bbtkDebugMessageInc("Core",9,#CLASS<<"Descriptor::"<<#CLASS \ + bbtkDebugMessageInc("Kernel",9,#CLASS<<"Descriptor::"<<#CLASS \ <<"Descriptor()"< \ diff --git a/kernel/src/bbtkUserBlackBoxOutputDescriptor.cxx b/kernel/src/bbtkUserBlackBoxOutputDescriptor.cxx index 7b46e64..df4d588 100644 --- a/kernel/src/bbtkUserBlackBoxOutputDescriptor.cxx +++ b/kernel/src/bbtkUserBlackBoxOutputDescriptor.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkUserBlackBoxOutputDescriptor.cxx,v $ Language: C++ - Date: $Date: 2008/01/22 15:02:00 $ - Version: $Revision: 1.1 $ + Date: $Date: 2008/02/05 13:23:46 $ + Version: $Revision: 1.2 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -38,7 +38,7 @@ namespace bbtk mSetFunctor(setfunctor) { - bbtkDebugMessage("Core",9, + bbtkDebugMessage("Kernel",9, "UserBlackBoxOutputDescriptor::UserBlackBoxOutputDescriptor(\"" <bbGetFullName()<<")"<bbGetFullName()<<")"<bbGetInputConnectorMap().find("WinParent"); if (i==b->bbGetInputConnectorMap().end()) @@ -436,7 +436,7 @@ namespace bbtk Connection* c = i->second->GetConnection(); if (!c) { - bbtkDebugMessage("Core",9, + bbtkDebugMessage("Kernel",9, "-> The input 'Parent' of the box " <bbGetFullName() <<" is not connected."<second; } //========================================================================= @@ -473,7 +473,7 @@ namespace bbtk //========================================================================= void WxBlackBox::bbUserConstructor() { - bbtkDebugMessage("Core",9,"WxBlackBox::bbUserConstructor()"<SetSizer(this); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); Setmwxcontainer(wxwidgetsizer); diff --git a/packages/wx/src/bbwxSplit.cxx b/packages/wx/src/bbwxSplit.cxx index 7386ef3..bf8dbea 100644 --- a/packages/wx/src/bbwxSplit.cxx +++ b/packages/wx/src/bbwxSplit.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbwxSplit.cxx,v $ Language: C++ - Date: $Date: 2008/01/22 15:41:35 $ - Version: $Revision: 1.2 $ + Date: $Date: 2008/02/05 13:23:47 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -147,7 +147,7 @@ namespace bbwx bbtk::WxBlackBoxWidget *Split::bbUserCreateWidget(wxWindow *parent) { //printf("EED Split::CreateWxWindow \n" ); - bbtkDebugMessageInc("Core",9,"Split::bbUserCreateWidget("<