Program: bbtk
Module: $RCSfile: bbtkBlackBoxDescriptor.cxx,v $
Language: C++
- Date: $Date: 2008/01/22 15:02:00 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/01/30 09:28:15 $
+ 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
: mTypeName("Unknown"),
mDescription(""),
mAuthor(""),
+ mKeyword(""),
mCategory(STANDARD),
mPackage(NULL)
{
//=========================================================================
//=========================================================================
- /// Adds the string to the BlackBox's description
+ /// Adds the string to the BlackBox description
void BlackBoxDescriptor::AddToDescription( const std::string& s, bool clear)
{
bbtkDebugMessage("Core",9,"BlackBoxDescriptor::AddToDescription(\""<<s<<
if (clear) mDescription = s;
else mDescription += s;
}
- /// Adds the string to the BlackBox's author list
+ //=========================================================================
+
+ //=========================================================================
+ /// Adds the string to the BlackBox author list
void BlackBoxDescriptor::AddToAuthor( const std::string& s, bool clear)
{
bbtkDebugMessage("Core",9,"BlackBoxDescriptor::AddToAuthor(\""<<s<<"\") ["
}
//=========================================================================
+ //=========================================================================
+ /// Adds the string to the BlackBox keyword list
+ void BlackBoxDescriptor::AddToKeyword( const std::string& s, bool clear)
+ {
+ bbtkDebugMessage("Core",9,"BlackBoxDescriptor::AddToKeyword(\""<<s<<"\") ["
+ <<GetTypeName()<<"]"<<std::endl);
+ if (clear) mKeyword = s;
+ else mKeyword += s;
+ }
+ //=========================================================================
+
//=========================================================================
const BlackBoxDescriptor::InputDescriptor*
BlackBoxDescriptor::GetInputDescriptor(const std::string & name) const
InputDescriptorMapType::const_iterator i;
i = mInput.find(name);
if ( i == mInput.end() )
- {
- bbtkError("input '"<<name<<"' does not exist");
- }
+ {
+ bbtkError("input '"<<name<<"' does not exist");
+ }
bbtkDebugDecTab("Core",9);
return i->second;
}
OutputDescriptorMapType::const_iterator i;
i = mOutput.find(name);
if ( i == mOutput.end() )
- {
- bbtkError("output '"<<name<<"' does not exist");
- }
+ {
+ bbtkError("output '"<<name<<"' does not exist");
+ }
bbtkDebugDecTab("Core",9);
return i->second;
}
bbtkDebugMessageInc("Core",9,"BlackBoxDescriptor::GetHelp() ["<<GetTypeName()<<"]"<<std::endl);
if (GetPackage())
{
- bbtkMessage("Help",1,"Black Box <"<<
- GetPackage()->GetName()<<"::"<<GetTypeName()<<">"<<std::endl);
- }
- else
- {
+ bbtkMessage("Help",1,"Black Box <"<<
+ GetPackage()->GetName()<<"::"<<GetTypeName()<<">"<<std::endl);
+ }
+ else
+ {
bbtkMessage("Help",1,"Black Box <::"<<GetTypeName()<<">"<<std::endl);
}
bbtkMessage("Help",1," "<<GetDescription()<<std::endl);