mFile << "template <class T, unsigned int D>\n"
<< "void "<<mName<<"Generic::Process()\n"
<< "{\n"
- << " bbtkDebugMessageInc(\"Core\",9,\n"
+ << " bbtkDebugMessageInc(\"Kernel\",9,\n"
<< " \""<<mName
<< "Generic::Process<\"<<TypeName<T>()<<\",\"<<D<<\">()\"<<std::endl);\n"
mFile << " f->bbUpdate();\n"
<< " this->bbSetOutputOut( new itkImage( f->bbGetOutputOut() ) );\n"
<< " f->UnRegister();\n"
- << " bbtkDebugDecTab(\"Core\",9);\n"
+ << " bbtkDebugDecTab(\"Kernel\",9);\n"
<< "}\n\n";
//=================================================================
// User constr / copy constr / destr implementation
mFile <<"void "<<mName<<"::bbUserConstructor()"<<std::endl;
mFile << "{"<<std::endl;
- //mFile<<"bbtkDebugMessage(\"Core\",9,\""<<mName<<::bbUserConstructor()"<<std::endl);"<<std::endl;
+ //mFile<<"bbtkDebugMessage(\"Kernel\",9,\""<<mName<<::bbUserConstructor()"<<std::endl);"<<std::endl;
mFile << mUserConstructor << std::endl;
mFile << "}" << std::endl;
mFile <<"void "<<mName<<"::bbUserCopyConstructor()"<<std::endl;
mFile << "{"<<std::endl;
- //mFile<<"bbtkDebugMessage(\"Core\",9,\""<<mName<<::bbUserCopyConstructor()"<<std::endl);"<<std::endl;
+ //mFile<<"bbtkDebugMessage(\"Kernel\",9,\""<<mName<<::bbUserCopyConstructor()"<<std::endl);"<<std::endl;
mFile << mUserCopyConstructor << std::endl;
mFile << "}" << std::endl;
mFile <<"void "<<mName<<"::bbUserDestructor()"<<std::endl;
mFile << "{"<<std::endl;
- //mFile<<"bbtkDebugMessage(\"Core\",9,\""<<mName<<::bbUserDestructor()"<<std::endl);"<<std::endl;
+ //mFile<<"bbtkDebugMessage(\"Kernel\",9,\""<<mName<<::bbUserDestructor()"<<std::endl);"<<std::endl;
mFile << mUserDestructor << std::endl;
mFile << "}" << std::endl;
Program: bbtk
Module: $RCSfile: bbtkBlackBox.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
: bbmName(name), bbmStatus(MODIFIED),
bbmBoxProcessMode("Pipeline"),bbmParent(NULL)
{
- bbtkDebugMessage("Core",7,"BlackBox::BlackBox(\""
+ bbtkDebugMessage("Kernel",7,"BlackBox::BlackBox(\""
<<name<<"\")"<<std::endl);
}
//=========================================================================
bbmStatus(from.bbmStatus),
bbmBoxProcessMode(from.bbmBoxProcessMode),bbmParent(NULL)
{
- bbtkDebugMessage("Core",7,"BlackBox::BlackBox("
+ bbtkDebugMessage("Kernel",7,"BlackBox::BlackBox("
<<from.bbGetFullName()<<",\""
<<name<<"\")"<<std::endl);
}
BlackBox::~BlackBox()
{
// std::cout << "EED BlackBox::~BlackBox 01 [" << bbGetName()<<"]\n";
- bbtkDebugMessageInc("Core",7,"BlackBox::~BlackBox()"<<std::endl);
+ bbtkDebugMessageInc("Kernel",7,"BlackBox::~BlackBox()"<<std::endl);
this->bbDesallocateConnectors();
//printf("EED BlackBox::~BlackBox 02 \n");
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//=========================================================================
/// Destruction method of a black box
void BlackBox::bbDelete()
{
- bbtkDebugMessage("Core",5,"BlackBox::bbDelete() ["
+ bbtkDebugMessage("Kernel",5,"BlackBox::bbDelete() ["
<<bbGetFullName()<<"]"<<std::endl);
this->bbUserDelete();
}
/// 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(\""
<<name<<"\") ["<<bbGetFullName()<<"]"
<<std::endl);
bool r = ( bbGetDescriptor()->GetInputDescriptorMap().find(name)
!= bbGetDescriptor()->GetInputDescriptorMap().end());
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
return r;
}
//=========================================================================
/// 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(\""
<<name<<"\") ["<<bbGetFullName()<<"]"<<std::endl);
bool r = ( bbGetDescriptor()->GetOutputDescriptorMap().find(name)
!= bbGetDescriptor()->GetOutputDescriptorMap().end());
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
return r;
}
//=========================================================================
/// Gets the output type of a given name
TypeInfo BlackBox::bbGetOutputType( const std::string &name ) const
{
- bbtkDebugMessageInc("Core",8,
+ bbtkDebugMessageInc("Kernel",8,
"BlackBox::bbGetOutputType(\""
<<name<<"\") ["<<bbGetFullName()<<"]"<<std::endl);
TypeInfo r = bbGetDescriptor()->GetOutputDescriptor(name)->GetTypeInfo();
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
return r;
}
//=========================================================================
/// Gets the input type of a given name
TypeInfo BlackBox::bbGetInputType( const std::string &name ) const
{
- bbtkDebugMessageInc("Core",8,
+ bbtkDebugMessageInc("Kernel",8,
"BlackBox::bbGetInputType(\""
<<name<<"\") ["<<bbGetFullName()<<"]"<<std::endl);
TypeInfo r = bbGetDescriptor()->GetInputDescriptor(name)->GetTypeInfo();
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
return r;
}
//=========================================================================
/// Allocates the i/o connectors of the black box
void BlackBox::bbAllocateConnectors()
{
- bbtkDebugMessageInc("Core",8,
+ bbtkDebugMessageInc("Kernel",8,
"BlackBox::bbAllocateConnectors() ["
<<bbGetFullName()<<"]"
<<std::endl);
BlackBoxDescriptor::InputDescriptorMapType::const_iterator i;
for ( i = imap.begin(); i != imap.end(); ++i )
{
- bbtkDebugMessage("Core",8,"* Allocate \""<<i->first<<"\""<<std::endl);
+ bbtkDebugMessage("Kernel",8,"* Allocate \""<<i->first<<"\""<<std::endl);
bbGetInputConnectorMap()[i->second->GetName()]
= new BlackBoxInputConnector(this);
}
BlackBoxDescriptor::OutputDescriptorMapType::const_iterator o;
for ( o = omap.begin(); o != omap.end(); ++o )
{
- bbtkDebugMessage("Core",8,"* Allocate \""<<o->first<<"\""<<std::endl);
+ bbtkDebugMessage("Kernel",8,"* Allocate \""<<o->first<<"\""<<std::endl);
bbGetOutputConnectorMap()[o->second->GetName()]
= new BlackBoxOutputConnector();
}
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
}
//=========================================================================
/// Desallocates the i/o connectors of the black box
void BlackBox::bbDesallocateConnectors()
{
- bbtkDebugMessageInc("Core",8,
+ bbtkDebugMessageInc("Kernel",8,
"BlackBox::bbDesallocateConnectors()"
<<std::endl);
for ( i = bbGetInputConnectorMap().begin();
i != bbGetInputConnectorMap().end(); ++i )
{
- bbtkDebugMessage("Core",8,"* Delete \""<<i->first<<"\""<<std::endl);
+ bbtkDebugMessage("Kernel",8,"* Delete \""<<i->first<<"\""<<std::endl);
delete (i->second);
}
OutputConnectorMapType::const_iterator o;
for ( o = bbGetOutputConnectorMap().begin();
o != bbGetOutputConnectorMap().end(); ++o )
{
- bbtkDebugMessage("Core",8,"* Delete \""<<o->first<<"\""<<std::endl);
+ bbtkDebugMessage("Kernel",8,"* Delete \""<<o->first<<"\""<<std::endl);
delete (o->second);
}
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
}
//=========================================================================
/// Copies the input / output values from another box
void BlackBox::bbCopyIOValues(BlackBox& from)
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"BlackBox::bbCopyIOValues("
<<from.bbGetFullName()<<") ["
<<bbGetFullName()<<"]"<<std::endl);
this->bbSetOutput(output, from.bbGetOutput(output) );
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=========================================================================
/// Connects the input <name> to the connection c
void BlackBox::bbConnectInput( const std::string& name, Connection* c)
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"BlackBox::bbConnectInput(\""<<name<<"\","<<c<<") ["
<<bbGetFullName()<<"]"
<<std::endl);
// bbSetModifiedStatus();
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//=========================================================================
/// Connects the output <name> to the connection c
void BlackBox::bbConnectOutput( const std::string& name, Connection* c)
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"BlackBox::bbConnectOutput(\""<<name<<"\","<<c<<") ["
<<bbGetFullName()<<"]"<<std::endl);
}
i->second->SetConnection(c);
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//=========================================================================
/// Disconnects the input <name> from the connection c
void BlackBox::bbDisconnectInput( const std::string& name, Connection* c)
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"BlackBox::bbDisconnectInput(\""<<name
<<"\","<<c<<") ["
<<bbGetFullName()<<"]"
}
i->second->UnsetConnection(c);
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//=========================================================================
/// Disconnects the output <name> from the connection c
void BlackBox::bbDisconnectOutput( const std::string& name, Connection* c)
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"BlackBox::bbDisconnectOutput(\""<<name
<<"\","<<c<<") ["
<<bbGetFullName()<<"]"
}
i->second->UnsetConnection(c);
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//=========================================================================
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
mKind(STANDARD),
mPackage(NULL)
{
- bbtkDebugMessage("Core",9,
+ bbtkDebugMessage("Kernel",9,
"BlackBoxDescriptor::BlackBoxDescriptor()"<<std::endl);
}
//=========================================================================
/// Dtor
BlackBoxDescriptor::~BlackBoxDescriptor()
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"BlackBoxDescriptor::~BlackBoxDescriptor() ["
<<mTypeName<<"]"<<std::endl);
OutputDescriptorMapType::iterator o;
for (o=mOutput.begin(); o!=mOutput.end(); ++o) delete o->second;
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=========================================================================
/// Adds the string to the BlackBox description
void BlackBoxDescriptor::AddToDescription( const std::string& s, bool clear)
{
- bbtkDebugMessage("Core",9,"BlackBoxDescriptor::AddToDescription(\""<<s<<
+ bbtkDebugMessage("Kernel",9,"BlackBoxDescriptor::AddToDescription(\""<<s<<
"\") ["<<GetTypeName()<<"]"<<std::endl);
if (clear) mDescription = s;
else mDescription += s;
/// Adds the string to the BlackBox author list
void BlackBoxDescriptor::AddToAuthor( const std::string& s, bool clear)
{
- bbtkDebugMessage("Core",9,"BlackBoxDescriptor::AddToAuthor(\""<<s<<"\") ["
+ bbtkDebugMessage("Kernel",9,"BlackBoxDescriptor::AddToAuthor(\""<<s<<"\") ["
<<GetTypeName()<<"]"<<std::endl);
if (clear) mAuthor = s;
else mAuthor += s;
/// Adds the string to the BlackBox category list
void BlackBoxDescriptor::AddToCategory( const std::string& s, bool clear)
{
- bbtkDebugMessage("Core",9,"BlackBoxDescriptor::AddToCategory(\""<<s<<"\") ["
+ bbtkDebugMessage("Kernel",9,"BlackBoxDescriptor::AddToCategory(\""<<s<<"\") ["
<<GetTypeName()<<"]"<<std::endl);
if (clear) mCategory = s;
else mCategory += s;
const BlackBoxDescriptor::InputDescriptor*
BlackBoxDescriptor::GetInputDescriptor(const std::string & name) const
{
- bbtkDebugMessageInc("Core",9,"BlackBoxDescriptor::GetInputDescriptor('"
+ bbtkDebugMessageInc("Kernel",9,"BlackBoxDescriptor::GetInputDescriptor('"
<<name<<"') ["<<GetTypeName()<<"]"<<std::endl);
InputDescriptorMapType::const_iterator i;
{
bbtkError("input '"<<name<<"' does not exist");
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return i->second;
}
//=========================================================================
const BlackBoxDescriptor::OutputDescriptor*
BlackBoxDescriptor::GetOutputDescriptor(const std::string & name) const
{
- bbtkDebugMessageInc("Core",9,"BlackBoxDescriptor::GetOutputDescriptor('"
+ bbtkDebugMessageInc("Kernel",9,"BlackBoxDescriptor::GetOutputDescriptor('"
<<name<<"') ["<<GetTypeName()<<"]"<<std::endl);
OutputDescriptorMapType::const_iterator i;
{
bbtkError("output '"<<name<<"' does not exist");
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return i->second;
}
//=========================================================================
//=========================================================================
void BlackBoxDescriptor::GetHelp(bool full) const
{
- bbtkDebugMessageInc("Core",9,"BlackBoxDescriptor::GetHelp() ["<<GetTypeName()<<"]"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"BlackBoxDescriptor::GetHelp() ["<<GetTypeName()<<"]"<<std::endl);
if (GetPackage())
{
bbtkMessage("Help",1,"Black Box <"<<
<<" : "<<o->second->GetDescription()<<std::endl);
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
const std::string& output_dir,
bool relative_link )
{
- bbtkDebugMessageInc("Core",9,"BlackBoxDescriptor::InsertHtmlHelp() ["<<GetTypeName()<<"]"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"BlackBoxDescriptor::InsertHtmlHelp() ["<<GetTypeName()<<"]"<<std::endl);
//-------------
// General info
//------------
// End
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=========================================================================
Program: bbtk
Module: $RCSfile: bbtkBlackBoxInputConnector.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
BlackBoxInputConnector::BlackBoxInputConnector(BlackBox* b)
: mBox(b), mConnection(0), mStatus(MODIFIED)
{
- bbtkDebugMessage("Core",9,"BlackBoxInputConnector::BlackBoxInputConnector()"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::BlackBoxInputConnector()"<<std::endl);
}
BlackBoxInputConnector::~BlackBoxInputConnector()
{
- bbtkDebugMessageInc("Core",9,"BlackBoxInputConnector::~BlackBoxInputConnector()"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"BlackBoxInputConnector::~BlackBoxInputConnector()"<<std::endl);
if (mConnection) delete mConnection;
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
void BlackBoxInputConnector::SetConnection(Connection* c)
{
- bbtkDebugMessage("Core",9,"BlackBoxInputConnector::SetConnection("<<c<<")"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::SetConnection("<<c<<")"<<std::endl);
mConnection = c;
}
void BlackBoxInputConnector::UnsetConnection(Connection* c)
{
- bbtkDebugMessage("Core",9,"BlackBoxInputConnector::UnsetConnection("
+ bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::UnsetConnection("
<<c<<")"<<std::endl);
mConnection = 0;
}
Program: bbtk
Module: $RCSfile: bbtkBlackBoxOutputConnector.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
BlackBoxOutputConnector::BlackBoxOutputConnector()
// : mStatus(MODIFIED)
{
- bbtkDebugMessage("Core",9,"BlackBoxOutputConnector::BlackBoxOutputConnector()"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"BlackBoxOutputConnector::BlackBoxOutputConnector()"<<std::endl);
}
BlackBoxOutputConnector::~BlackBoxOutputConnector()
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"BlackBoxOutputConnector::~BlackBoxOutputConnector()"
<<std::endl);
std::vector<Connection*>::iterator i;
{
delete *i;
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
///
void BlackBoxOutputConnector::SetConnection(Connection* c)
{
- bbtkDebugMessage("Core",9,"BlackBoxOutputConnector::SetConnection("
+ bbtkDebugMessage("Kernel",9,"BlackBoxOutputConnector::SetConnection("
<<c<<")"<<std::endl);
mConnection.push_back(c);
}
///
void BlackBoxOutputConnector::UnsetConnection(Connection* c)
{
- bbtkDebugMessageInc("Core",9,"BlackBoxOutputConnector::UnsetConnection("
+ bbtkDebugMessageInc("Kernel",9,"BlackBoxOutputConnector::UnsetConnection("
<<c<<")"<<std::endl);
std::vector<Connection*>::iterator i;
}
mConnection.erase(i);
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
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
: BlackBox(name),
mDescriptor(desc)
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"ComplexBlackBox::ComplexBlackBox(\""
<<name<<"\")"<<std::endl);
bbAllocateConnectors();
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=======================================================================
mDescriptor(from.mDescriptor),
mExecutionList(from.mExecutionList)
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"ComplexBlackBox::ComplexBlackBox(\""
<<from.bbGetName()<<"\",\""
<<name<<"\")"<<std::endl);
- bbtkDebugMessageInc("Core",9,"* Cloning Black Boxes"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"* Cloning Black Boxes"<<std::endl);
BlackBoxMapType::const_iterator i;
for ( i = from.mBlackBoxMap.begin(); i != from.mBlackBoxMap.end(); ++i )
{
- bbtkDebugMessageInc("Core",9,"* Cloning \""<<i->first<<"\""<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"* Cloning \""<<i->first<<"\""<<std::endl);
BlackBox* B = i->second->bbClone(i->second->bbGetName());
bbUnsafeAddBlackBox(B);
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
- bbtkDebugMessageInc("Core",9,"* Cloning Connections"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"* Cloning Connections"<<std::endl);
ConnectionListType::const_iterator j;
for ( j = from.mConnectionList.begin(); j != from.mConnectionList.end(); ++j )
{
- bbtkDebugMessageInc("Core",9,"* Cloning \""<<
+ bbtkDebugMessageInc("Kernel",9,"* Cloning \""<<
(*j)->GetFullName()<<"\""<<std::endl);
BlackBox* bbfrom = bbGetBlackBox( (*j)->GetBlackBoxFrom()->bbGetName() );
bbAddConnection(c);
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
bbAllocateConnectors();
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=======================================================================
/// Destructor
ComplexBlackBox::~ComplexBlackBox()
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"ComplexBlackBox::~ComplexBlackBox() ["
<<bbGetFullName()<<"]"<<std::endl);
- bbtkDebugMessageInc("Core",9,"* Delete Connections"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"* Delete Connections"<<std::endl);
ConnectionListType::iterator j;
for ( j = mConnectionList.begin(); j != mConnectionList.end(); ++j )
{
- bbtkDebugMessageInc("Core",9,"* Delete \""<<
+ bbtkDebugMessageInc("Kernel",9,"* Delete \""<<
(*j)->GetFullName()<<"\""<<std::endl);
delete *j;
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
- bbtkDebugMessageInc("Core",9,"* Delete Black Boxes"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"* Delete Black Boxes"<<std::endl);
BlackBoxMapType::iterator i;
for ( i = mBlackBoxMap.begin(); i != mBlackBoxMap.end(); ++i )
{
- bbtkDebugMessageInc("Core",9,"* Delete \""<<i->first<<"\""<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"* Delete \""<<i->first<<"\""<<std::endl);
i->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 ["
// <<bbGetFullName()<<"]"<<std::endl);
this->bbDesallocateConnectors();
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=======================================================================
/// Allocates the i/o connectors of the black box
void ComplexBlackBox::bbAllocateConnectors()
{
- bbtkDebugMessageInc("Core",8,
+ bbtkDebugMessageInc("Kernel",8,
"ComplexBlackBox::bbAllocateConnectors() ["
<<bbGetFullName()<<"]"
<<std::endl);
BlackBoxDescriptor::InputDescriptorMapType::const_iterator i;
for ( i = imap.begin(); i != imap.end(); ++i )
{
- bbtkDebugMessage("Core",8,"* Allocate \""<<i->first<<"\""<<std::endl);
+ bbtkDebugMessage("Kernel",8,"* Allocate \""<<i->first<<"\""<<std::endl);
// Redirect the connector to the internal box connector
// Cast the BBInputDescriptor into a ComplexBBInputDescriptor
ComplexBlackBoxInputDescriptor* d =
BlackBoxDescriptor::OutputDescriptorMapType::const_iterator o;
for ( o = omap.begin(); o != omap.end(); ++o )
{
- bbtkDebugMessage("Core",8,"* Allocate \""<<o->first<<"\""<<std::endl);
+ bbtkDebugMessage("Kernel",8,"* Allocate \""<<o->first<<"\""<<std::endl);
// Redirect the connector to the internal box connector
// Cast the BBOutputDescriptor into a ComplexBBOutputDescriptor
ComplexBlackBoxOutputDescriptor* d =
bbGetOutputConnectorMap()[o->second->GetName()] = c;
//new BlackBoxOutputConnector();
}
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
}
//=========================================================================
/// Desallocates the i/o connectors of the black box
void ComplexBlackBox::bbDesallocateConnectors()
{
- bbtkDebugMessageInc("Core",8,
+ bbtkDebugMessageInc("Kernel",8,
"ComplexBlackBox::DesallocateConnectors()"
<<std::endl);
bbGetInputConnectorMap().clear();
bbGetOutputConnectorMap().clear();
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
}
//=========================================================================
//=======================================================================
BlackBox* ComplexBlackBox::bbClone(const std::string& name)
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"ComplexBlackBox::bbClone(\""<<name<<"\") ["
<<bbGetFullName()<<"]"<<std::endl);
ComplexBlackBox* CBB = new ComplexBlackBox(*this,name);
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return CBB;
}
//==================================================================
void ComplexBlackBox::bbAddToExecutionList( const std::string& name )
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"ComplexBlackBox::bbAddToExecutionList(\""
<<name<<"\") ["
<<bbGetFullName()<<"]"<<std::endl);
mExecutionList.push_back( name );
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//==================================================================
/// Adds the black box to the complex box
void ComplexBlackBox::bbAddBlackBox( BlackBox* b)
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"ComplexBlackBox::AddBlackBox(\""<<b->bbGetName()
<<"\") ["
<<bbGetFullName()<<"]"<<std::endl);
b->bbSetParent(this);
mBlackBoxMap[b->bbGetName()] = b;
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//==================================================================
/// Adds the black box to the complex box (unsafe)
void ComplexBlackBox::bbUnsafeAddBlackBox( BlackBox* b)
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"ComplexBlackBox::UnsafeAddBlackBox(\""<<b->bbGetName()
<<"\") ["
<<bbGetFullName()<<"]"<<std::endl);
b->bbSetParent(this);
mBlackBoxMap[b->bbGetName()] = b;
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//==================================================================
/// Removes the black box from the complex box
void ComplexBlackBox::bbRemoveBlackBox( const std::string& name )
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"ComplexBlackBox::RemoveBlackBox(\""<<name<<"\") ["
<<bbGetFullName()<<"]"<<std::endl);
bbtkError("ComplexBlackBox::RemoveBlackBox not implemented");
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//==================================================================
/// Adds the connection to the complex box
void ComplexBlackBox::bbAddConnection( Connection* c)
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"ComplexBlackBox::AddConnection(\""<<"..."<<"\") ["
<<bbGetFullName()<<"]"<<std::endl);
mConnectionList.push_back(c);
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//==================================================================
// void RemoveConnection( );
/// Returns the black box with name <name>
BlackBox* ComplexBlackBox::bbGetBlackBox( const std::string& name )
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"ComplexBlackBox::GetBlackBox(\""<<name<<"\") ["
<<bbGetFullName()<<"]"<<std::endl);
bbtkError("the black box \""<<name<<"\" does not exist");
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return i->second;
}
//==================================================================
/// 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(\""<<name<<"\") ["
<<bbGetFullName()<<"]"
<<std::endl);
BlackBoxMapType::iterator i = mBlackBoxMap.find(name);
if ( i == mBlackBoxMap.end() )
{
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return 0;
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return i->second;
}
//==================================================================
void ComplexBlackBox::bbPrintBlackBoxes()
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"ComplexBlackBox::PrintBlackBoxes() ["
<<bbGetFullName()<<"]"
<<std::endl);
bbtkMessage("Help",1,i->second->bbGetFullName()<<std::endl);
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//==================================================================
Program: bbtk
Module: $RCSfile: bbtkComplexBlackBoxDescriptor.cxx,v $
Language: C++
- Date: $Date: 2008/02/05 12:16:55 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/02/05 13:23:46 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
ComplexBlackBoxDescriptor::ComplexBlackBoxDescriptor(const std::string& name)
: BlackBoxDescriptor()
{
- bbtkDebugMessageInc("Core",9,"ComplexBlackBoxDescriptor::ComplexBlackBoxDescriptor(\""<<name<<"\")"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"ComplexBlackBoxDescriptor::ComplexBlackBoxDescriptor(\""<<name<<"\")"<<std::endl);
SetTypeName(name);
mPrototype = new ComplexBlackBox(name+std::string("Prototype"),this);
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=======================================================================
/// Default dtor
ComplexBlackBoxDescriptor::~ComplexBlackBoxDescriptor()
{
- bbtkDebugMessageInc("Core",9,"ComplexBlackBoxDescriptor::~ComplexBlackBoxDescriptor(\""<<GetTypeName()<<"\")"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"ComplexBlackBoxDescriptor::~ComplexBlackBoxDescriptor(\""<<GetTypeName()<<"\")"<<std::endl);
delete mPrototype;
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=======================================================================
BlackBox* ComplexBlackBoxDescriptor::CreateInstance(const std::string& name)
{
//bbtkError("ComplexBlackBoxDescriptor::CreateInstance not implemented");
- bbtkDebugMessageInc("Core",5,
+ bbtkDebugMessageInc("Kernel",5,
"ComplexBlackBoxDescriptor::CreateInstance(\""
<<name<<"\") ["
<<GetTypeName()<<"]"<<std::endl);
return mPrototype->bbClone(name);
- bbtkDebugDecTab("Core",5);
+ bbtkDebugDecTab("Kernel",5);
}
//=======================================================================
const std::string& name
)
{
- bbtkDebugMessageInc("Core",5,
+ bbtkDebugMessageInc("Kernel",5,
"ComplexBlackBoxDescriptor::Add(\""
<<type<<"\",\""<<name<<"\") ["
<<GetTypeName()<<"]"<<std::endl);
// ok : create new one
mPrototype->bbAddBlackBox ( /*mFactory->Create*/ NewBlackBox(type,name) );
- bbtkDebugDecTab("Core",5);
+ bbtkDebugDecTab("Kernel",5);
}
//=======================================================================
/// Adds a black box to the execution list
void ComplexBlackBoxDescriptor::AddToExecutionList ( const std::string& box)
{
- bbtkDebugMessageInc("Core",5,
+ bbtkDebugMessageInc("Kernel",5,
"ComplexBlackBoxDescriptor::AddToExecutionList(\""
<<box<<"\" ["
<<GetTypeName()<<"]"<<std::endl);
// ok
mPrototype->bbAddToExecutionList ( box );
- bbtkDebugDecTab("Core",5);
+ bbtkDebugDecTab("Kernel",5);
}
const std::string& input
)
{
- bbtkDebugMessageInc("Core",5,
+ bbtkDebugMessageInc("Kernel",5,
"ComplexBlackBoxDescriptor::Connect(\""
<<from<<"\",\""<<output<<"\",\""
<<to<<"\",\""<<input
mPrototype->bbAddConnection(c);
- bbtkDebugDecTab("Core",5);
+ bbtkDebugDecTab("Kernel",5);
}
//=======================================================================
const std::string& input,
const std::string& help)
{
- bbtkDebugMessageInc("Core",5,
+ bbtkDebugMessageInc("Kernel",5,
"ComplexBlackBoxDescriptor::DefineInput(\""
<<name<<"\",\""<<box<<"\",\""
<<input<<"\",\""<<help
bb->bbGetInputType(input)));
- bbtkDebugDecTab("Core",5);
+ bbtkDebugDecTab("Kernel",5);
}
//=======================================================================
const std::string& output,
const std::string& help)
{
- bbtkDebugMessageInc("Core",5,
+ bbtkDebugMessageInc("Kernel",5,
"ComplexBlackBoxDescriptor::DefineOutput(\""
<<name<<"\",\""<<box<<"\",\""
<<output<<"\",\""<<help
bb->bbGetOutputType(output)));
- bbtkDebugDecTab("Core",5);
+ bbtkDebugDecTab("Kernel",5);
}
//=======================================================================
int detail, int level,
const std::string& output_dir, bool relative_link)
{
- bbtkDebugMessageInc("Core",9,
+ bbtkDebugMessageInc("Kernel",9,
"ComplexBlackBoxDescriptor::InsertHtmlHelp() ["
<<GetTypeName()<<"]"<<std::endl);
//------------
// End
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=========================================================================
Program: bbtk
Module: $RCSfile: bbtkComplexBlackBoxInputDescriptor.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
mType(type)
{
- bbtkDebugMessage("Core",9,"ComplexBlackBoxInputDescriptor::ComplexBlackBoxInputDescriptor(\""<<name<<"\",\""<<description<<"\",\""<<target<<"\",\""<<input<<"\")"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"ComplexBlackBoxInputDescriptor::ComplexBlackBoxInputDescriptor(\""<<name<<"\",\""<<description<<"\",\""<<target<<"\",\""<<input<<"\")"<<std::endl);
}
ComplexBlackBoxInputDescriptor::~ComplexBlackBoxInputDescriptor()
{
- bbtkDebugMessage("Core",9,"ComplexBlackBoxInputDescriptor::~ComplexBlackBoxInputDescriptor(\""<<GetName()<<"\",\""<<GetDescription()<<"\",\""<<GetTarget()<<"\",\""<<GetInput()<<"\")"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"ComplexBlackBoxInputDescriptor::~ComplexBlackBoxInputDescriptor(\""<<GetName()<<"\",\""<<GetDescription()<<"\",\""<<GetTarget()<<"\",\""<<GetInput()<<"\")"<<std::endl);
}
}
Program: bbtk
Module: $RCSfile: bbtkComplexBlackBoxOutputDescriptor.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
mType(type)
{
- bbtkDebugMessage("Core",9,"ComplexBlackBoxOutputDescriptor::ComplexBlackBoxOutputDescriptor(\""<<name<<"\",\""<<description<<"\",\""<<target<<"\",\""<<output<<"\")"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"ComplexBlackBoxOutputDescriptor::ComplexBlackBoxOutputDescriptor(\""<<name<<"\",\""<<description<<"\",\""<<target<<"\",\""<<output<<"\")"<<std::endl);
}
ComplexBlackBoxOutputDescriptor::~ComplexBlackBoxOutputDescriptor()
{
- bbtkDebugMessage("Core",9,"ComplexBlackBoxOutputDescriptor::~ComplexBlackBoxOutputDescriptor(\""<<GetName()<<"\",\""<<GetDescription()<<"\",\""<<GetTarget()<<"\",\""<<GetOutput()<<"\")"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"ComplexBlackBoxOutputDescriptor::~ComplexBlackBoxOutputDescriptor(\""<<GetName()<<"\",\""<<GetDescription()<<"\",\""<<GetTarget()<<"\",\""<<GetOutput()<<"\")"<<std::endl);
}
}
Program: bbtk
Module: $RCSfile: bbtkConnection.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
mFromAny(false),
mToAny(false)
{
- bbtkDebugMessageInc("Core",7,"Connection::Connection(\""
+ bbtkDebugMessageInc("Kernel",7,"Connection::Connection(\""
<<from->bbGetName()<<"\",\""<<output<<"\",\""
<<to->bbGetName()<<"\",\""<<input<<"\")"
<<std::endl);
}
else if ( to->bbGetInputType(input) == typeid(Data) )
{
- bbtkDebugMessage("Core",8," -> '"<<input<<"' type is "
+ bbtkDebugMessage("Kernel",8," -> '"<<input<<"' type is "
<<TypeName<Data>()<<" : can receive any data"
<<std::endl);
mToAny = true;
from->bbConnectOutput(output,this);
to->bbConnectInput(input,this);
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//==================================================================
/// Dtor
Connection::~Connection()
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"Connection::~Connection() ["
<<GetFullName()<<"]"<<std::endl);
mTo->bbDisconnectInput(mInput,this);
if (mAdaptor) mAdaptor->bbDelete();
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//==================================================================
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
{
//VirtualExec();
- bbtkDebugMessageInc("Core",9,"Executer::Executer()" <<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"Executer::Executer()" <<std::endl);
Reset();
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
/**
*/
Executer::~Executer()
{
- bbtkDebugMessageInc("Core",9,"Executer::~Executer()" <<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"Executer::~Executer()" <<std::endl);
if (mRoot)
{
mPackage->UnRegisterBlackBox("workspace");
{
GetGlobalFactory()->UnLoadPackage("user");
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
*/
void Executer::Reset()
{
- bbtkDebugMessageInc("Core",9,"Executer::Reset()" <<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"Executer::Reset()" <<std::endl);
// The 'user' package must be closed before all other
// because box destructors must not be unloaded when bb are deleted!
// Insert the user package in the factory
InsertPackage(mPackage);
mOpenPackage.push_back(mPackage);
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
/// changes the workspace name
void Executer::BeginPackage (const std::string &name)
{
- bbtkDebugMessageInc("Core",9,"Executer::BeginPackage(\""<<name<<"\")"
+ bbtkDebugMessageInc("Kernel",9,"Executer::BeginPackage(\""<<name<<"\")"
<<std::endl);
Package* p;
try
const std::string &pack,
const std::string &scriptfilename)
{
- bbtkDebugMessageInc("Core",9,"Executer::Define(\""<<name<<
+ bbtkDebugMessageInc("Kernel",9,"Executer::Define(\""<<name<<
","<<pack<<"\")"
<<std::endl);
b->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(\""
<<Current()->GetTypeName()<<"\")"
<<std::endl);
// Does current package exist ?
Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
-Date: $Date: 2008/02/05 12:16:55 $
-Version: $Revision: 1.13 $
+Date: $Date: 2008/02/05 13:23:46 $
+Version: $Revision: 1.14 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
/// Default ctor
Factory::Factory()
{
- bbtkDebugMessage("Core",7,"Factory::Factory()"<<std::endl);
+ bbtkDebugMessage("Kernel",7,"Factory::Factory()"<<std::endl);
}
//===================================================================
/// Dtor
Factory::~Factory()
{
- bbtkDebugMessageInc("Core",7,"Factory::~Factory()"<<std::endl);
+ bbtkDebugMessageInc("Kernel",7,"Factory::~Factory()"<<std::endl);
CloseAllPackages();
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//===================================================================
//===================================================================
void Factory::CloseAllPackages()
{
- bbtkDebugMessageInc("Core",7,"Factory::CloseAllPackages()"<<std::endl);
+ bbtkDebugMessageInc("Kernel",7,"Factory::CloseAllPackages()"<<std::endl);
while (mPackageMap.begin() != mPackageMap.end())
{
PackageMapType::iterator i = mPackageMap.begin();
ClosePackage(i);
}
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//===================================================================
//===================================================================
void Factory::Reset()
{
- bbtkDebugMessageInc("Core",7,"Factory::Reset()"<<std::endl);
+ bbtkDebugMessageInc("Kernel",7,"Factory::Reset()"<<std::endl);
CloseAllPackages();
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//===================================================================
bbtkMessage("Output",2,pack.mPackage->GetDescription()<<std::endl);
//===================================================================
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
return true;
}
//
// lastname : string before the last / (if any), or user supplied name
- bbtkDebugMessageInc("Core",7,"Factory::LoadPackage(\""<<name<<"\")"<<std::endl);
+ bbtkDebugMessageInc("Kernel",7,"Factory::LoadPackage(\""<<name<<"\")"<<std::endl);
bbtkMessage("Debug",1,"Factory::LoadPackage(\""<<name<<"\")"<<std::endl);
bbtkMessage("Debug",1,"use_configuration_file ["
<< use_configuration_file << "]" << std::endl);
/// If the entry is found in the map, calls ClosePackage
void Factory::UnLoadPackage( const std::string& name )
{
- bbtkDebugMessageInc("Core",7,"Factory::UnLoadPackage(\""
+ bbtkDebugMessageInc("Kernel",7,"Factory::UnLoadPackage(\""
<<name<<"\")"<<std::endl);
PackageMapType::iterator i;
<<"\" : package not loaded !");
}
ClosePackage(i);
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//===================================================================
/// Else simply erases the package entry in the packages map
void Factory::ClosePackage(PackageMapType::iterator& i)
{
- bbtkDebugMessageInc("Core",7,"Factory::ClosePackage(\""
+ bbtkDebugMessageInc("Kernel",7,"Factory::ClosePackage(\""
<<i->second.mPackage->GetName()
<<"\")"<<std::endl);
// remove the entry in the map
mPackageMap.erase(i);
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//===================================================================
/// Displays the list of packages loaded
void Factory::PrintPackages(bool details, bool adaptors) const
{
- bbtkDebugMessageInc("Core",9,"Factory::PrintPackages"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"Factory::PrintPackages"<<std::endl);
PackageMapType::const_iterator i;
for (i = mPackageMap.begin(); i!=mPackageMap.end(); ++i )
}
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//===================================================================
/// Displays help on a package
void Factory::HelpPackage(const std::string& name, bool adaptors) const
{
- bbtkDebugMessageInc("Core",9,"Factory::HelpPackage(\""<<name<<"\")"
+ bbtkDebugMessageInc("Kernel",9,"Factory::HelpPackage(\""<<name<<"\")"
<<std::endl);
PackageMapType::const_iterator i = mPackageMap.find(name);
}
else
{
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
bbtkError("package \""<<name<<"\" unknown");
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//===================================================================
/// Prints help on the black box of type <name>
void Factory::HelpBlackBox(const std::string& name, bool full) const
{
- bbtkDebugMessageInc("Core",9,"Factory::HelpBlackBox(\""<<name<<"\")"
+ bbtkDebugMessageInc("Kernel",9,"Factory::HelpBlackBox(\""<<name<<"\")"
<<std::endl);
bool found = false;
}
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
if (!found)
{
bbtkError("No package of the factory contains any black box <"
/// Inserts a package in the factory
void Factory::InsertPackage( Package* p )
{
- bbtkDebugMessageInc("Core",9,"Factory::InsertPackage(\""<<
+ bbtkDebugMessageInc("Kernel",9,"Factory::InsertPackage(\""<<
p->GetName()<<"\")"<<std::endl);
PackageInfoType pack;
pack.mPackage = p;
mPackageMap[p->GetName()] = pack;
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//===================================================================
/// 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()<<"\")"<<std::endl);
PackageMapType::iterator i;
p->GetName()<<"\") : package absent from factory");
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//===================================================================
BlackBox* Factory::NewBlackBox(const std::string& type,
const std::string& name) const
{
- bbtkDebugMessageInc("Core",7,"Factory::NewBlackBox(\""
+ bbtkDebugMessageInc("Kernel",7,"Factory::NewBlackBox(\""
<<type<<"\",\""<<name<<"\")"<<std::endl);
BlackBox* b = 0;
bbtkError("black box type \""<<type<<"\" unknown");
}
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
return b;
}
//===================================================================
TypeInfo typeout,
const std::string& name) const
{
- bbtkDebugMessageInc("Core",8,"Factory::NewAdaptor(<"
+ bbtkDebugMessageInc("Kernel",8,"Factory::NewAdaptor(<"
<<TypeName(typein)<<">,<"
<<TypeName(typeout)<<">,\""
<<name<<"\")"<<bbtkendl);
<<"> adaptor available");
}
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
return b;
}
//===================================================================
BlackBox* to,
const std::string& input) const
{
- bbtkDebugMessage("Core",7,"Factory::NewConnection(\""
+ bbtkDebugMessage("Kernel",7,"Factory::NewConnection(\""
<<from->bbGetName()<<"\",\""<<output<<"\",\""
<<to->bbGetName()<<"\",\""<<input
<<"\")"<<std::endl);
}
c = new AdaptiveConnection(from,output,to,input,b);
}
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
return c;
*/
//===================================================================
const Package* Factory::GetPackage(const std::string& name) const
{
- bbtkDebugMessageInc("Core",9,"Factory::GetPackage(\""<<name<<"\")"
+ bbtkDebugMessageInc("Kernel",9,"Factory::GetPackage(\""<<name<<"\")"
<<std::endl);
PackageMapType::const_iterator i = mPackageMap.find(name);
if ( i != mPackageMap.end() )
{
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return i->second.mPackage;
}
else
{
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
bbtkError("package \""<<name<<"\" unknown");
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//===================================================================
//===================================================================
Package* Factory::GetPackage(const std::string& name)
{
- bbtkDebugMessageInc("Core",9,"Factory::GetPackage(\""<<name<<"\")"
+ bbtkDebugMessageInc("Kernel",9,"Factory::GetPackage(\""<<name<<"\")"
<<std::endl);
PackageMapType::const_iterator i = mPackageMap.find(name);
if ( i != mPackageMap.end() )
{
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return i->second.mPackage;
}
else
{
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
bbtkError("package \""<<name<<"\" unknown");
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//===================================================================
//===================================================================
void Factory::WriteDotFilePackagesList(FILE *ff)
{
- bbtkDebugMessageInc("Core",9,"Factory::WriteDotFilePackagesList()"
+ bbtkDebugMessageInc("Kernel",9,"Factory::WriteDotFilePackagesList()"
<<std::endl);
fprintf( ff , "\n");
fprintf(ff," %s [shape=ellipse, URL=\"%s\"]%s\n",i->first.c_str(),url.c_str(),";" );
}
fprintf( ff , "}\n\n");
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//===================================================================
}
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
if (!found)
{
bbtkError("No package of the factory contains any black box <"
void Factory::CreateHtmlIndex(IndexEntryType type,
const std::string& filename)
{
- bbtkDebugMessageInc("Core",9,"Factory::CreateHtmlIndex(\""
+ bbtkDebugMessageInc("Kernel",9,"Factory::CreateHtmlIndex(\""
<<filename<<"\")"<<bbtkendl);
std::string title;
//----------------------
// End
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/02/05 12:16:55 $
- Version: $Revision: 1.24 $
+ Date: $Date: 2008/02/05 13:23:46 $
+ Version: $Revision: 1.25 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
info.syntax = "index [<filename> ['Initials'(default)|'Packages'|'Categories']]";
info.help = "Creates an html index of known boxes. If filename is provided then save it to the file 'filename'. The default index entries are the initial letters of the names of the boxes. If 'Packages' or 'Categories' is provided then the entries are either the packages names or the categories";
- mCommandDict[info.keyword] = info;
+ mCommandDict[info.category] = info;
info.category = "reset"; //EED
info.argmin = 0;
/// Displays the Configuration
void Interpreter::Config() const
{
- bbtkDebugMessageInc("Core",9,"Factory::Config"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"Factory::Config"<<std::endl);
ConfigurationFile cf = ConfigurationFile::GetInstance();
bbtkMessage("Help",1,"--- ["<<*i<<"]"<<std::endl);
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//=======================================================================
Program: bbtk
Module: $RCSfile: bbtkMessageManager.cxx,v $
Language: C++
- Date: $Date: 2008/02/05 11:07:42 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/02/05 13:23:46 $
+ 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
{
std::string key;
- key ="Core";
+ key ="Kernel";
mMessageLevel[key] = 0;
mMessageHelp[key] = "Messages generated by the core classes of the lib";
if (mMaxMessageLength<key.length()) mMaxMessageLength = key.length();
(for example : "Kernel" messages are generated by the core classes of the library, there can be a type of
message for each type of Node, and so on...)
A type of message must be declared by registering it into the MessageManager. This is done by a line like :
- bbtk::MessageManager::RegisterMessageType("Core","Messages generated by the core classes of the library",5);
+ bbtk::MessageManager::RegisterMessageType("Kernel","Messages generated by the core classes of the library",5);
where :
-The first string is the type of the message (the category which will be used to generate a message of this type)
-The second string is help string
example :
- bbtkMessage("Core",4,"problem with "<<GetName()<<bbtkendl);
+ bbtkMessage("Kernel",4,"problem with "<<GetName()<<bbtkendl);
- will push the 3rd argument in std::cout if the message level of "Core" messages is greater or equal to 4.
+ 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("Core",5);
+ bbtk::MessageManager::SetMessageLevel("Kernel",5);
- which tells the manager to display all Core messages of level up to 5.
+ which tells the manager to display all Kernel messages of level up to 5.
Variants :
Program: bbtk
Module: $RCSfile: bbtkPackage.cxx,v $
Language: C++
- Date: $Date: 2008/02/05 12:16:55 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/02/05 13:23:46 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
// std::cout << " url=["<<url<<"]"<<std::endl;
// std::cout << "relurl=["<<relurl<<"]"<<std::endl;
- bbtkDebugMessage("Core",7,"Package::Package(\""<<name<<"\")"<<bbtkendl);
+ bbtkDebugMessage("Kernel",7,"Package::Package(\""<<name<<"\")"<<bbtkendl);
}
//==========================================================================
/// Dtor
Package::~Package()
{
- bbtkDebugMessageInc("Core",7,"Package::~Package(\""<<mName<<"\")"<<bbtkendl);
+ bbtkDebugMessageInc("Kernel",7,"Package::~Package(\""<<mName<<"\")"<<bbtkendl);
BlackBoxMapType::const_iterator i;
for (i=mBlackBoxMap.begin();
i!=mBlackBoxMap.end();
delete j->second;
}
*/
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//==========================================================================
BlackBox* Package::NewBlackBox(const std::string& type,
const std::string& name) const
{
- bbtkDebugMessageInc("Core",8,"Package<"<<GetName()<<">::NewBlackBox(\""<<type<<"\",\""<<name<<"\")"<<bbtkendl);
+ bbtkDebugMessageInc("Kernel",8,"Package<"<<GetName()<<">::NewBlackBox(\""<<type<<"\",\""<<name<<"\")"<<bbtkendl);
BlackBoxMapType::const_iterator i = mBlackBoxMap.find(type);
if (i == mBlackBoxMap.end())
{
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
return 0;
}
BlackBox* bb =i->second->CreateInstance(name);
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
return bb;
}
TypeInfo typeout,
const std::string& name) const
{
- bbtkDebugMessageInc("Core",8,"Package<"<<GetName()<<
+ bbtkDebugMessageInc("Kernel",8,"Package<"<<GetName()<<
">::NewAdaptor(<"
<<TypeName(typein)<<">,<"
<<TypeName(typeout)<<">,\""
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;
}
/// Registers a black box descriptor in the package
bool Package::RegisterBlackBox(BlackBoxDescriptor* d)
{
- bbtkDebugMessageInc("Core",8,"Package<"<<GetName()<<">::RegisterBlackBox(\""<<d->GetTypeName()<<"\")"<<std::endl);
+ bbtkDebugMessageInc("Kernel",8,"Package<"<<GetName()<<">::RegisterBlackBox(\""<<d->GetTypeName()<<"\")"<<std::endl);
mBlackBoxMap[d->GetTypeName()] = d;
d->SetPackage(this);
AdaptorMapType::const_iterator i = mAdaptorMap.find(key);
if (i == mAdaptorMap.end())
{
- bbtkDebugMessage("Core",8,"The box is an adaptor, inserting it in adaptors map ..."<<std::endl);
+ bbtkDebugMessage("Kernel",8,"The box is an adaptor, inserting it in adaptors map ..."<<std::endl);
mAdaptorMap[key] = d;
}
// If already an adaptor registered : error
}
}
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
return true;
}
/// UnRegisters a black box descriptor from the package
void Package::UnRegisterBlackBox(const std::string& name)
{
- bbtkDebugMessageInc("Core",8,"Package<"<<GetName()<<">::UnRegisterBlackBox(\""<<name<<"\")"<<std::endl);
+ bbtkDebugMessageInc("Kernel",8,"Package<"<<GetName()<<">::UnRegisterBlackBox(\""<<name<<"\")"<<std::endl);
// Looking into the bb map
BlackBoxMapType::iterator i = mBlackBoxMap.find(name);
if (i == mBlackBoxMap.end())
{
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
bbtkError("UnRegister : The package <"<<GetName()<<"> does not contains the black box <"<<name<<">");
}
mBlackBoxMap.erase(i);
mAdaptorMap.erase(j);
}
*/
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
}
//==========================================================================
/// Changes the name of a black box type
void Package::ChangeBlackBoxName( const std::string& oldname, const std::string& newname )
{
- bbtkDebugMessageInc("Core",8,"Package<"<<GetName()<<">::ChangeBlackBoxName(\""<<oldname<<"\",\""<<newname<<"\")"<<std::endl);
+ bbtkDebugMessageInc("Kernel",8,"Package<"<<GetName()<<">::ChangeBlackBoxName(\""<<oldname<<"\",\""<<newname<<"\")"<<std::endl);
// Looking into the bb map
BlackBoxMapType::iterator i = mBlackBoxMap.find(oldname);
if (i == mBlackBoxMap.end())
{
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
bbtkError("ChangeBlackBoxName : The package <"<<GetName()<<"> does not contains the black box <"<<oldname<<">");
}
mBlackBoxMap[newname] = i->second;
mBlackBoxMap.erase(i);
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
}
//==========================================================================
/// Registers an adaptor descriptor in the package
bool Package::RegisterAdaptor(BlackBoxDescriptor* d)
{
- bbtkDebugMessage("Core",8,"Package<"<<GetName()<<">::RegisterAdaptor(\""<<d->GetTypeName()<<"\")"<<std::endl);
+ bbtkDebugMessage("Kernel",8,"Package<"<<GetName()<<">::RegisterAdaptor(\""<<d->GetTypeName()<<"\")"<<std::endl);
TypeInfo typein = d->GetInputDescriptor("In")->GetTypeInfo();
TypeInfo typeout = d->GetOutputDescriptor("Out")->GetTypeInfo();
/// Prints help on a black box
void Package::HelpBlackBox(const std::string& name, bool full) const
{
- bbtkDebugMessageInc("Core",8,"Package<"<<GetName()<<">::HelpBlackBox(\""
+ bbtkDebugMessageInc("Kernel",8,"Package<"<<GetName()<<">::HelpBlackBox(\""
<<name<<"\")"<<bbtkendl);
BlackBoxMapType::const_iterator i = mBlackBoxMap.find(name);
if (i == mBlackBoxMap.end())
{
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
bbtkError("The package <"<<GetName()<<"> does not contains the black box <"<<name<<">");
}
// bbtkMessage("Help",1,"["<<GetName()<<"] ");
i->second->GetHelp(full);
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
}
//==========================================================================
/// Returns true iff the package contains the box of name boxname
bool Package::ContainsBlackBox(const std::string& name) const
{
- bbtkDebugMessageInc("Core",8,"Package<"<<GetName()<<">::HelpBlackBox(\""
+ bbtkDebugMessageInc("Kernel",8,"Package<"<<GetName()<<">::HelpBlackBox(\""
<<name<<"\")"<<bbtkendl);
BlackBoxMapType::const_iterator i = mBlackBoxMap.find(name);
if (i == mBlackBoxMap.end())
{
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
return false;
}
- bbtkDebugDecTab("Core",8);
+ bbtkDebugDecTab("Kernel",8);
return true;
}
//==========================================================================
int level,
bool relative_link ) const
{
- bbtkDebugMessageInc("Core",9,"Package<"<<GetName()<<">::CreateHtmlPage(\""
+ bbtkDebugMessageInc("Kernel",9,"Package<"<<GetName()<<">::CreateHtmlPage(\""
<<filename<<"\")"<<bbtkendl);
//---------------------
//----------------------
// End
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
}
//==========================================================================
}
Program: bbtk
Module: $RCSfile: bbtkUserBlackBox.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
UserBlackBox::UserBlackBox(const std::string &name, bool alloc)
: BlackBox(name)
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"UserBlackBox::UserBlackBox(\""
<<name<<"\")"<<std::endl);
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//=========================================================================
bool alloc)
: BlackBox(from,name)
{
- bbtkDebugMessageInc("Core",7,
+ bbtkDebugMessageInc("Kernel",7,
"UserBlackBox::UserBlackBox("
<<from.bbGetFullName()<<",\""
<<name<<"\")"<<std::endl);
- bbtkDebugDecTab("Core",7);
+ bbtkDebugDecTab("Kernel",7);
}
//=========================================================================
/// Destructor
UserBlackBox::~UserBlackBox()
{
- bbtkDebugMessage("Core",7,"UserBlackBox::~UserBlackBox()"
+ bbtkDebugMessage("Kernel",7,"UserBlackBox::~UserBlackBox()"
<<std::endl);
}
//=========================================================================
Program: bbtk
Module: $RCSfile: bbtkUserBlackBoxGetSetFunctor.h,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
// bbtkAssert( bbtkEqualTypes( d.type(), typeid(T) ) );
T t = d.unsafe_get<T>();
(((UBB*)o)->*mSetMethodPointer)(t);
- // bbtkDebugMessage("Core",9,"SetOK"<<std::endl);
+ // bbtkDebugMessage("Kernel",9,"SetOK"<<std::endl);
}
///
Program: bbtk
Module: $RCSfile: bbtkUserBlackBoxInputDescriptor.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
mGetFunctor(getfunctor),
mSetFunctor(setfunctor)
{
- bbtkDebugMessage("Core",9,
+ bbtkDebugMessage("Kernel",9,
"UserBlackBoxInputDescriptor::"
<<"UserBlackBoxInputDescriptor(\""
<<name<<"\",\""<<description<<"\","
UserBlackBoxInputDescriptor::~UserBlackBoxInputDescriptor()
{
- bbtkDebugMessage("Core",9,
+ bbtkDebugMessage("Kernel",9,
"UserBlackBoxInputDescriptor::"
<<"~UserBlackBoxInputDescriptor(\""
<<GetName()<<"\",\""<<GetDescription()<<"\","
Program: bbtk
Module: $RCSfile: bbtkUserBlackBoxMacros.h,v $
Language: C++
- Date: $Date: 2008/02/05 12:16:55 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/02/05 13:23:46 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
public: \
inline static CLASS* bbNew(const std::string& name) \
{ \
- bbtkDebugMessageInc("Core",9,#CLASS<<"::bbNew(\""<<name<<"\")"<<std::endl); \
+ bbtkDebugMessageInc("Kernel",9,#CLASS<<"::bbNew(\""<<name<<"\")"<<std::endl); \
bbCreateDescriptorIfNeeded(); \
CLASS* c = new CLASS(name); \
- bbtkDebugDecTab("Core",9); \
+ bbtkDebugDecTab("Kernel",9); \
return c; \
} \
inline bbtk::BlackBox* bbClone(const std::string& name) \
{ \
- bbtkDebugMessageInc("Core",9,#CLASS<<"::bbClone(\""<<name<<"\")"<<std::endl); \
+ bbtkDebugMessageInc("Kernel",9,#CLASS<<"::bbClone(\""<<name<<"\")"<<std::endl); \
bbCreateDescriptorIfNeeded(); \
CLASS* c = new CLASS(*this,name); \
- bbtkDebugDecTab("Core",9); \
+ bbtkDebugDecTab("Kernel",9); \
return c; \
} \
bbtk::BlackBoxDescriptor* bbGetDescriptor() const \
//============================================================================
#define BBTK_BEGIN_BLACK_BOX_CONSTRUCTOR(CLASS,ALLOC) \
- bbtkDebugMessageInc("Core",7,#CLASS<<"::"<<#CLASS \
+ bbtkDebugMessageInc("Kernel",7,#CLASS<<"::"<<#CLASS \
<<"(\""<<bbGetName()<<"\")"<<std::endl); \
if (ALLOC) bbAllocateConnectors();
//============================================================================
//============================================================================
#define BBTK_BEGIN_BLACK_BOX_COPY_CONSTRUCTOR(CLASS,FROM,ALLOC) \
- bbtkDebugMessageInc("Core",7,#CLASS<<"::"<<#CLASS \
+ bbtkDebugMessageInc("Kernel",7,#CLASS<<"::"<<#CLASS \
<<"("<<FROM.bbGetFullName()<<",\"" \
<<bbGetName()<<"\")"<<std::endl); \
if (ALLOC) \
//============================================================================
#define BBTK_END_BLACK_BOX_CONSTRUCTOR \
- bbtkDebugDecTab("Core",7)
+ bbtkDebugDecTab("Kernel",7)
//============================================================================
//============================================================================
#define BBTK_BEGIN_BLACK_BOX_DESTRUCTOR(CLASS) \
- bbtkDebugMessageInc("Core",7,#CLASS <<"::~"<< #CLASS \
+ bbtkDebugMessageInc("Kernel",7,#CLASS <<"::~"<< #CLASS \
<<"() ["<<this->bbGetFullName()<<"]"<<std::endl);
//============================================================================
//============================================================================
#define BBTK_END_BLACK_BOX_DESTRUCTOR \
- bbtkDebugDecTab("Core",7)
+ bbtkDebugDecTab("Kernel",7)
//============================================================================
} \
CLASS ## Descriptor() \
{ \
- bbtkDebugMessageInc("Core",9,#CLASS<<"Descriptor::"<<#CLASS \
+ bbtkDebugMessageInc("Kernel",9,#CLASS<<"Descriptor::"<<#CLASS \
<<"Descriptor()"<<std::endl)
//============================================================================
//============================================================================
/// Ends the UserBlackBox description block
#define BBTK_END_DESCRIBE_BLACK_BOX(CLASS) \
- bbtkDecTab("Core",9); \
+ bbtkDecTab("Kernel",9); \
} \
}; \
void CLASS::bbCreateDescriptorIfNeeded() \
} \
CLASS ## Descriptor() \
{ \
- bbtkDebugMessageInc("Core",9,#CLASS<<"Descriptor::"<<#CLASS \
+ bbtkDebugMessageInc("Kernel",9,#CLASS<<"Descriptor::"<<#CLASS \
<<"Descriptor()"<<std::endl)
//============================================================================
//============================================================================
/// Ends a template UserBlackBox of template param T description block
#define BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(CLASS) \
- bbtkDecTab("Core",9); \
+ bbtkDecTab("Kernel",9); \
} \
}; \
template <class T> \
} \
CLASS ## Descriptor() \
{ \
- bbtkDebugMessageInc("Core",9,#CLASS<<"Descriptor::"<<#CLASS \
+ bbtkDebugMessageInc("Kernel",9,#CLASS<<"Descriptor::"<<#CLASS \
<<"Descriptor()"<<std::endl)
//============================================================================
//============================================================================
/// Ends a template UserBlackBox description block of template param T1 and T2
#define BBTK_END_DESCRIBE_TEMPLATE2_BLACK_BOX(CLASS) \
- bbtkDecTab("Core",9); \
+ bbtkDecTab("Kernel",9); \
} \
}; \
template <class T1, class T2> \
} \
CLASS ## Descriptor() \
{ \
- bbtkDebugMessageInc("Core",9,#CLASS<<"Descriptor::"<<#CLASS \
+ bbtkDebugMessageInc("Kernel",9,#CLASS<<"Descriptor::"<<#CLASS \
<<"Descriptor()"<<std::endl)
//============================================================================
//============================================================================
/// Ends a template UserBlackBox description block of template param T1 and T2
#define BBTK_END_DESCRIBE_TEMPLATE2_WITH_TYPES_BLACK_BOX(CLASS,TYPE1,TYPE2) \
- bbtkDecTab("Core",9); \
+ bbtkDecTab("Kernel",9); \
} \
}; \
template <TYPE1 T1, TYPE2 T2> \
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
mSetFunctor(setfunctor)
{
- bbtkDebugMessage("Core",9,
+ bbtkDebugMessage("Kernel",9,
"UserBlackBoxOutputDescriptor::UserBlackBoxOutputDescriptor(\""
<<name<<"\",\""<<description
<<"\""<<getfunctor<<","<<setfunctor
UserBlackBoxOutputDescriptor::~UserBlackBoxOutputDescriptor()
{
- bbtkDebugMessage("Core",9,"UserBlackBoxOutputDescriptor::~UserBlackBoxOutputDescriptor(\""<<GetName()<<"\",\""<<GetDescription()<<"\""<<mGetFunctor<<","<<mSetFunctor<<")"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"UserBlackBoxOutputDescriptor::~UserBlackBoxOutputDescriptor(\""<<GetName()<<"\",\""<<GetDescription()<<"\""<<mGetFunctor<<","<<mSetFunctor<<")"<<std::endl);
}
}
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/01/28 14:32:54 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/02/05 13:23:46 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
wxWindow* WxParentToChildData::GetWindowInWhichToInsert( const BlackBox* b)
const
{
- bbtkDebugMessageInc("Core",9,"WxParentToChildData::GetWindowInWhichToInsert("<<b->bbGetFullName()<<")"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"WxParentToChildData::GetWindowInWhichToInsert("<<b->bbGetFullName()<<")"<<std::endl);
BlackBox::InputConnectorMapType::const_iterator i = b->bbGetInputConnectorMap().find("WinParent");
if (i==b->bbGetInputConnectorMap().end())
Connection* c = i->second->GetConnection();
if (!c)
{
- bbtkDebugMessage("Core",9,
+ bbtkDebugMessage("Kernel",9,
"-> The input 'Parent' of the box "
<<b->bbGetFullName()
<<" is not connected."<<std::endl);
<<") no window provided by parent ?!?");
}
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return j->second;
}
//=========================================================================
//=========================================================================
void WxBlackBox::bbUserConstructor()
{
- bbtkDebugMessage("Core",9,"WxBlackBox::bbUserConstructor()"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"WxBlackBox::bbUserConstructor()"<<std::endl);
bbInitAttributes();
}
//=========================================================================
//=========================================================================
void WxBlackBox::bbUserCopyConstructor()
{
- bbtkDebugMessage("Core",9,"WxBlackBox::bbUserCopyConstructor()"
+ bbtkDebugMessage("Kernel",9,"WxBlackBox::bbUserCopyConstructor()"
<<std::endl);
bbInitAttributes();
}
//=========================================================================
void WxBlackBox::bbUserDestructor()
{
- bbtkDebugMessage("Core",9,"WxBlackBox::bbUserDestructor()"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"WxBlackBox::bbUserDestructor()"<<std::endl);
if (bbGetWindow()) {
delete bbGetWindow();
// bbSetWindow(0);
}
- bbtkDebugMessage("Core",9,"EO WxBlackBox::bbUserDestructor()"<<std::endl);
+ bbtkDebugMessage("Kernel",9,"EO WxBlackBox::bbUserDestructor()"<<std::endl);
}
//=========================================================================
description "Simple test of wx::Split widget"
author "laurent.guigues@creatis.insa-lyon.fr"
-keyword "test;wx"
+category "test"
load wx
Program: bbtk
Module: $RCSfile: bbwxSizer.cxx,v $
Language: C++
- Date: $Date: 2008/02/04 16:42:10 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/02/05 13:23:47 $
+ 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
/*
wxWindow *Sizer::CreateWxWindow(wxWindow *parent)
{
- bbtkDebugMessageInc("Core",9,"Sizer::CreateWxWindow("<<parent<<")"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"Sizer::CreateWxWindow("<<parent<<")"<<std::endl);
wxWidgetSizer *wxwidgetsizer = new wxWidgetSizer(parent,bbGetInputOrientation() );
//
wxwidgetsizer->SetSizer(this);
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
Setmwxcontainer(wxwidgetsizer);
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
bbtk::WxBlackBoxWidget *Split::bbUserCreateWidget(wxWindow *parent)
{
//printf("EED Split::CreateWxWindow \n" );
- bbtkDebugMessageInc("Core",9,"Split::bbUserCreateWidget("<<parent<<")"<<std::endl);
+ bbtkDebugMessageInc("Kernel",9,"Split::bbUserCreateWidget("<<parent<<")"<<std::endl);
SplitWidget *wxwidgetsplit = new SplitWidget(this, parent ,
bbGetInputOrientation() );
//
- bbtkDebugDecTab("Core",9);
+ bbtkDebugDecTab("Kernel",9);
return wxwidgetsplit;