Program: bbtk
Module: $RCSfile: bbtkPackage.cxx,v $
Language: C++
- Date: $Date: 2008/01/30 12:14:43 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/02/05 12:16:55 $
+ 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
d->SetPackage(this);
// If it is a default adaptor, also register it in the adaptors map
- if ( d->GetCategory() == BlackBoxDescriptor::DEFAULT_ADAPTOR)
+ if ( d->GetKind() == BlackBoxDescriptor::DEFAULT_ADAPTOR)
{
TypeInfo typein = d->GetInputDescriptor("In")->GetTypeInfo();
TypeInfo typeout = d->GetOutputDescriptor("Out")->GetTypeInfo();
{
unsigned int lmax = 0;
std::vector<std::string> names;
- std::vector<std::string> categs;
+ std::vector<std::string> kinds;
std::vector<std::string> descrs;
BlackBoxMapType::const_iterator i;
++i)
{
if ( adaptors ||
- ( i->second->GetCategory() == BlackBoxDescriptor::STANDARD) )
+ ( i->second->GetKind() == BlackBoxDescriptor::STANDARD) )
{
std::string name(" ");
name += i->second->GetTypeName();
names.push_back(name);
- std::string categ;
- if ( i->second->GetCategory() == BlackBoxDescriptor::ADAPTOR )
+ std::string kind;
+ if ( i->second->GetKind() == BlackBoxDescriptor::ADAPTOR )
{
- categ = std::string("[A]");
+ kind = std::string("[A]");
}
- else if ( i->second->GetCategory() ==
+ else if ( i->second->GetKind() ==
BlackBoxDescriptor::DEFAULT_ADAPTOR )
{
- categ = std::string("[DA]");
+ kind = std::string("[DA]");
}
- categs.push_back(categ);
+ kinds.push_back(kind);
- unsigned int l = name.size()+categ.size();
+ unsigned int l = name.size()+kind.size();
if (l>lmax) lmax = l;
std::string descr;
std::string offs;
offs.append(lmax+3,' ');
std::vector<std::string>::iterator ni,ci,di;
- for (ni = names.begin(), ci = categs.begin(), di = descrs.begin();
+ for (ni = names.begin(), ci = kinds.begin(), di = descrs.begin();
ni != names.end(); ++ni, ++ci, ++di)
{
std::string space;
i!=mBlackBoxMap.end();
++i)
{
- if ( i->second->GetCategory() != BlackBoxDescriptor::STANDARD )
+ if ( i->second->GetKind() != BlackBoxDescriptor::STANDARD )
{
bbtkMessage("Help",1,
" "<<i->second->GetTypeName());
- if ( i->second->GetCategory() ==
+ if ( i->second->GetKind() ==
BlackBoxDescriptor::DEFAULT_ADAPTOR )
{
bbtkMessage("Help",1,
s << "<TR><TD style='vertical-align: top;'><b> Author(s) </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> "
<< GetAuthor() << "</TD></TR>\n";
s << "<TR><TD style='vertical-align: top;'><b> Author(s) </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> "
- << GetKeyword() << "</TD></TR>\n";
+ << GetCategory() << "</TD></TR>\n";
s << "<TR><TD style='vertical-align: top;'><b> Version </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> "
<< GetVersion() << "</TD></TR>\n";
s << "<TR><TD style='vertical-align: top;'><b> bbtk Version </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> "
BlackBoxMapType::const_iterator i;
for (i=mBlackBoxMap.begin(); i!=mBlackBoxMap.end(); ++i)
{
- if ( i->second->GetCategory() != BlackBoxDescriptor::STANDARD)
+ if ( i->second->GetKind() != BlackBoxDescriptor::STANDARD)
continue;
std::string name = i->second->GetTypeName();
s << "<p><TABLE cellspacing=0 cellpadding=3>\n";
for (i=mBlackBoxMap.begin(); i!=mBlackBoxMap.end();++i)
{
- if ( i->second->GetCategory() == BlackBoxDescriptor::STANDARD)
+ if ( i->second->GetKind() == BlackBoxDescriptor::STANDARD)
continue;
std::string name = i->second->GetTypeName();