X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkMessageManager.h;h=51d7da68c13c1fc0ae5198bcd2c6407b1e136586;hb=e269992d2d446784afc40073782311deaa25008f;hp=221c986f60c4d708ce60f1afb8c01659a9ff57dc;hpb=a26195c366a89795288009cf7e20f11afa494970;p=bbtk.git diff --git a/kernel/src/bbtkMessageManager.h b/kernel/src/bbtkMessageManager.h index 221c986..51d7da6 100644 --- a/kernel/src/bbtkMessageManager.h +++ b/kernel/src/bbtkMessageManager.h @@ -1,3 +1,41 @@ +/* + # --------------------------------------------------------------------- + # + # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image + # pour la SantÈ) + # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton + # Previous Authors : Laurent Guigues, Jean-Pierre Roux + # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil + # + # This software is governed by the CeCILL-B license under French law and + # abiding by the rules of distribution of free software. You can use, + # modify and/ or redistribute the software under the terms of the CeCILL-B + # license as circulated by CEA, CNRS and INRIA at the following URL + # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html + # or in the file LICENSE.txt. + # + # As a counterpart to the access to the source code and rights to copy, + # modify and redistribute granted by the license, users are provided only + # with a limited warranty and the software's author, the holder of the + # economic rights, and the successive licensors have only limited + # liability. + # + # The fact that you are presently reading this means that you have had + # knowledge of the CeCILL-B license and that you accept its terms. + # ------------------------------------------------------------------------ */ + + +/*========================================================================= + Program: bbtk + Module: $RCSfile: bbtkMessageManager.h,v $ + Language: C++ + Date: $Date: 2012/11/16 08:49:01 $ + Version: $Revision: 1.10 $ +=========================================================================*/ + + + + /*! \file @@ -9,12 +47,12 @@ - Warnings - Errors There are also "types" of messages which are strings which identify the nature of the message - (for example : "Core" messages are generated by the core classes of the librairy, there can be a type of + (for example : "Kernel" messages are generated by the core classes of the library, there can be a type of message for each type of Node, and so on...) A type of message must be declared by registering it into the MessageManager. This is done by a line like : - bbtk::MessageManager::RegisterMessageType("Core","Messages generated by the core classes of the library",5); + bbtk::MessageManager::RegisterMessageType("Kernel","Messages generated by the core classes of the library",5); where : - -The first string is the type of the message (the keyword which will be used to generate a message of this type) + -The first string is the type of the message (the category which will be used to generate a message of this type) -The second string is help string -The integer is the initial level for the messages of this type (see below). @@ -23,16 +61,16 @@ example : - bbtkMessage("Core",4,"problem with "< mMessageLevel; std::map mMessageHelp; unsigned int mMaxMessageLength; - int mAllLevel; }; //===========================================================