ircproxy  The Ultimate Cyborg

debug::Indent Struct Reference

#include <debug.h>

List of all members.

Detailed Description

Interface for marking scopes with indented debug output.

Creation of the object increments the debug indentation. Destruction of the object automatically decrements the indentation again.

Definition at line 140 of file debug.h.

Public Member Functions

 Indent (int indent)
 Construct an Indent object.
 ~Indent ()

Public Attributes

int M_indent

Constructor & Destructor Documentation

debug::Indent::Indent ( int  indent  )  [inline]

Construct an Indent object.

Definition at line 143 of file debug.h.

References M_indent.

00143 : M_indent(indent) { if (M_indent > 0) libcwd::libcw_do.inc_indent(M_indent); }

debug::Indent::~Indent (  )  [inline]


Definition at line 145 of file debug.h.

References M_indent.

00145 { if (M_indent > 0) libcwd::libcw_do.dec_indent(M_indent); }

Member Data Documentation

The extra number of spaces that were added to the indentation.

Definition at line 141 of file debug.h.

Referenced by Indent(), and ~Indent().

The documentation for this struct was generated from the following file:

Copyright © 2005-2007 Carlo Wood.  All rights reserved.