Program: bbtk
Module: $RCSfile: bbtkExecuter.cxx,v $
Language: C++
- Date: $Date: 2009/05/28 08:12:05 $
- Version: $Revision: 1.30 $
+ Date: $Date: 2009/06/08 14:50:03 $
+ Version: $Revision: 1.31 $
=========================================================================*/
/* ---------------------------------------------------------------------
{
bbtkDebugMessage("kernel",9,"==> Executer::Reset()" <<std::endl);
- GetFactory()->CheckPackages();
+ // GetFactory()->Check();
mOpenDefinition.clear();
mOpenPackage.clear();
r->AddToDescription("User's workspace");
mOpenDefinition.push_back(CBBDefinition(r,"user"));
// Register it into the user package
- p->RegisterBlackBox(r);
+ p->Register(r);
mRootCBB = r;
// Object::PrintObjectListInfo();
/// changes the workspace name
void Executer::SetWorkspaceName( const std::string& n )
{
- GetUserPackage()->ChangeBlackBoxName( GetWorkspace()->GetTypeName(), n );
+ GetUserPackage()->ChangeDescriptorName( GetWorkspace()->GetTypeName(), n );
}
//=======================================================================
{
p = mOpenPackage.back().lock();
}
- p->RegisterBlackBox(GetCurrentDescriptor());
+ // Register the descriptor in the current package
+ p->Register(GetCurrentDescriptor());
bbtkDebugMessage("kernel",9,"<== Executer::EndDefine(\""
<<GetCurrentDescriptor()->GetTypeName()<<"\")"
}
//=======================================================================
+
+
//=======================================================================
/// prints the list of the boxes of the current descriptor
- void Executer::PrintBoxes()
+ void Executer::PrintHelpListBoxes()
{
bbtkMessage("help",1,"The black box descriptor \""
<<GetCurrentDescriptor()->GetTypeName()<<"\" contains : "<<std::endl);
//=======================================================================
//=======================================================================
- void Executer::ShowRelations(const std::string &nameblackbox,
+ void Executer::PrintHelpBlackBox(const std::string &nameblackbox,
const std::string &detailStr,
const std::string &levelStr)
{
if (blackbox)
{
found=true;
- blackbox->bbShowRelations(blackbox,detail,level); //,mFactory);
+ blackbox->bbPrintHelp(blackbox,detail,level); //,mFactory);
}
if (!found)
{
- bbtkError("Blackbox Name not found.. <" <<nameblackbox<<">");
+ bbtkError("box with name '" <<nameblackbox<<"' unknown");
}
}
//=======================================================================