struct prefix

Used so that you can produce a prefix in your diagnostic output in the same way that the debugging library does. More...

Full namedbg::prefix
Definition#include <dbg.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

Used so that you can produce a prefix in your diagnostic output in the same way that the debugging library does.

You can use it in one of two ways: with or without a diagnostic level. For the latter, if level prefixing is enabled (see enable_level_prefix) then produces a prefix including the specified diagnostic level text.

Examples of use:


     dbg::out(dbg::info) << dbg::prefix()
                         << "A Bad Thing happened\n";

     dbg::out(dbg::info) << dbg::prefix(dbg::info)
                         << "A Bad Thing happened\n";

See also: indent, set_prefix, enable_level_prefix, enable_time_prefix

 prefix ()

prefix

Creates a prefix with no specified diagnostic level. No diagnostic level text will be included in the prefix.

 prefix (level lvl)

prefix

Parameters:
lvlDiagnostic level to include in prefix

level l

l

 prefix ()

prefix


Generated by: pg1 on imgpc030 on Tue Sep 16 13:46:16 2003, using kdoc 2.0a54.