Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBoxMacros.h,v $
Language: C++
- Date: $Date: 2008/02/07 11:06:37 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/03/03 14:15:52 $
+ 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
//============================================================================
/// Declares that the AtomicBlackBox is an adaptor (to be put inside the UBB description block)
-#define BBTK_ADAPTOR() SetKInd(bbtk::BlackBoxDescriptor::ADAPTOR)
+#define BBTK_ADAPTOR() \
+ SetKind(bbtk::BlackBoxDescriptor::ADAPTOR); \
+ AddToCategory("adaptor")
//============================================================================
//============================================================================
/// Declares that the AtomicBlackBox is the default adaptor of the package (to be put inside the UBB description block)
-#define BBTK_DEFAULT_ADAPTOR() SetKind(bbtk::BlackBoxDescriptor::DEFAULT_ADAPTOR)
+#define BBTK_DEFAULT_ADAPTOR() \
+ SetKind(bbtk::BlackBoxDescriptor::DEFAULT_ADAPTOR); \
+ AddToCategory("adaptor")
//============================================================================
//============================================================================
") into a typed itk image pointer ("+
bbtk::HumanTypeName<T>()+")");
BBTK_DEFAULT_ADAPTOR();
- BBTK_CATEGORY("adaptor");
BBTK_TEMPLATE_INPUT(AnyImageToTypedImage,In,
"Input generic image pointer",anyImagePointer);
BBTK_TEMPLATE_OUTPUT(AnyImageToTypedImage,Out,
BBTK_DESCRIPTION("Static cast from "+bbtk::HumanTypeName<T1>()+" ("
+bbtk::TypeName<T1>()+") to "+bbtk::HumanTypeName<T2>()
+" ("+bbtk::TypeName<T2>()+")");
- BBTK_CATEGORY("adaptor");
BBTK_DEFAULT_ADAPTOR();
BBTK_TEMPLATE2_INPUT(Cast,In,"Input",T1);
BBTK_TEMPLATE2_OUTPUT(Cast,Out,"Output",T2);
BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo);
BBTK_NAME("StringTo"+bbtk::HumanTypeName<T>());
BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
- BBTK_CATEGORY("adaptor");
BBTK_DEFAULT_ADAPTOR();
BBTK_DESCRIPTION("Converts the content of the input string to a "
+bbtk::HumanTypeName<T>()
BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(StringToVector);
BBTK_NAME("StringTo"+bbtk::HumanTypeName<std::vector<T> >());
BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
- BBTK_CATEGORY("adaptor");
BBTK_DEFAULT_ADAPTOR();
BBTK_DESCRIPTION("Converts the content of the input string to a "
+bbtk::HumanTypeName<std::vector<T> >()
BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(ToString);
BBTK_NAME(bbtk::HumanTypeName<T>()+"ToString");
BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
- BBTK_CATEGORY("adaptor");
BBTK_DEFAULT_ADAPTOR();
BBTK_DESCRIPTION("Converts a "+bbtk::HumanTypeName<T>()+" ("
+bbtk::TypeName<T>()+") into a string");
BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(VectorToString);
BBTK_NAME(bbtk::HumanTypeName<std::vector<T> >()+"ToString");
BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
- BBTK_CATEGORY("adaptor");
BBTK_DEFAULT_ADAPTOR();
BBTK_DESCRIPTION("Converts the content of the input vector ("+bbtk::TypeName<std::vector<T> >()+") to a string in which each item is separated by the value of the input 'Separator'");
- typedef std::vector<T> Tvector;
- BBTK_TEMPLATE_INPUT(VectorToString, In,"Input",Tvector);
- BBTK_TEMPLATE_INPUT(VectorToString, Separator,"Separator of item in the output string. Default is whitespace.",std::string);
- BBTK_TEMPLATE_OUTPUT(VectorToString, Out,"Output",std::string);
+ typedef std::vector<T> Tvector;
+ BBTK_TEMPLATE_INPUT(VectorToString, In,"Input",Tvector);
+ BBTK_TEMPLATE_INPUT(VectorToString, Separator,"Separator of item in the output string. Default is whitespace.",std::string);
+ BBTK_TEMPLATE_OUTPUT(VectorToString, Out,"Output",std::string);
BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(VectorToString);
//=================================================================