1 \documentclass[a4paper,11pt]{report}
13 {\Huge Developers' Guide}
16 \bbtk version \bbtkVersion
20 Last modified on : September 16, 2008 \\
25 Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
28 CREATIS-LRMN, Centre de Recherche en Imagerie Medicale \\ CNRS UMR 5220, INSERM U620\\
30 Universit\'e Claude-Bernard Lyon 1
35 % ==========================================
37 % ==========================================
39 \chapter{Introduction}
44 \section{Displaying messages}
47 bbtkMessage("Kind",level,"message "<<"to "<<" display : i="<<i<<std::endl);
48 bbtkDebugMessage("Kind",level,"message "<<"to "<<" display : i="<<i<<std::endl);
51 \section{Types and RTTI}
55 In \bbtk the class conveying the information on a type is
59 which is simply a typedef on
63 Remember that all constructors of the std::type\_info class are private,
64 hence objects can only be created by the operator \texttt{typeid}
65 which returns a const reference on a type\_info.
66 Hence the \bbtk type TypeInfo conveys that const reference
67 and cannot be itself referenced.
68 Any function or method which takes or returns a TypeInfo must take
69 or return it \emph{by value} (see e.g. the TypeName function below).
70 To print the name of a type use one of the template functions
72 template <class T> std::string TypeName();
73 template <class T> std::string TypeName(const T&);
74 template <class T> std::string TypeName(bbtk::TypeInfo);
79 BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(std::string,"string");