The Black Box Toolkit

Developers' Guide

bbtk version 0.9.0
Last modified on : September 16, 2008
Generated on : Nov 12, 2008
Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
CREATIS-LRMN, Centre de Recherche en Imagerie Medicale
CNRS UMR 5220, INSERM U620
INSA Lyon
Université Claude-Bernard Lyon 1

Chapter 1
Introduction

Chapter 2
Misc

2.1  Displaying messages

bbtkMessage("Kind",level,"message "<<"to "<<" display : i="<<i<<std::endl);
bbtkDebugMessage("Kind",level,"message "<<"to "<<" display : i="<<i<<std::endl);

2.2  Types and RTTI

In bbtk the class conveying the information on a type is
bbtk::TypeInfo

which is simply a typedef on
const std::type_info&

Remember that all constructors of the std::type_info class are private, hence objects can only be created by the operator typeid which returns a const reference on a type_info. Hence the bbtk type TypeInfo conveys that const reference and cannot be itself referenced. Any function or method which takes or returns a TypeInfo must take or return it by value (see e.g. the TypeName function below). To print the name of a type use one of the template functions
template <class T> std::string TypeName();
template <class T> std::string TypeName(const T&);
template <class T> std::string TypeName(bbtk::TypeInfo);

BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(std::string,"string");




File translated from TEX by TTH, version 3.81.
On 12 Nov 2008, 11:39.