(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 :
(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 category which will be used to generate a message of this type)
-The second string is help string
where :
-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
which means that it generates a message of level 4 (0 : very important/always displayed ... 9 : deep debug message).
At run time, one is able to change the level of the messages displayed by using a command like :
which means that it generates a message of level 4 (0 : very important/always displayed ... 9 : deep debug message).
At run time, one is able to change the level of the messages displayed by using a command like :