1 \documentclass[a4paper,11pt]{report}
10 {\Huge Developers' Guide}
13 \bbtk version \bbtkVersion
17 Last modified on : September 16, 2008 \\
21 Laurent Guigues, Jean-Pierre Roux
24 % ==========================================
26 % ==========================================
28 \chapter{Introduction}
33 \section{Displaying messages}
36 bbtkMessage("Kind",level,"message "<<"to "<<" display : i="<<i<<std::endl);
37 bbtkDebugMessage("Kind",level,"message "<<"to "<<" display : i="<<i<<std::endl);
40 \section{Types and RTTI}
44 In \bbtk the class conveying the information on a type is
48 which is simply a typedef on
52 Remember that all constructors of the std::type\_info class are private,
53 hence objects can only be created by the operator \texttt{typeid}
54 which returns a const reference on a type\_info.
55 Hence the \bbtk type TypeInfo conveys that const reference
56 and cannot be itself referenced.
57 Any function or method which takes or returns a TypeInfo must take
58 or return it \emph{by value} (see e.g. the TypeName function below).
59 To print the name of a type use one of the template functions
61 template <class T> std::string TypeName();
62 template <class T> std::string TypeName(const T&);
63 template <class T> std::string TypeName(bbtk::TypeInfo);
68 BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(std::string,"string");