• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

  • KDebug
  • Block
Public Member Functions

KDebug::Block Class Reference
Debug message generators

Use this to label sections of your code. More...

#include <kdebug.h>

List of all members.

Public Member Functions

 Block (const char *label, int area=KDE_DEFAULT_DEBUG_AREA)
 ~Block ()

Detailed Description

Use this to label sections of your code.

Since:
4.6

Usage: void function() { KDebug::Block myBlock( "section" );

debug() << "output1" << endl; debug() << "output2" << endl; }

Will output:

app: BEGIN: section app: [prefix] output1 app: [prefix] output2 app: END: section - Took 0.1s

Alternatively, use the KDEBUG_BLOCK macro, for automatic naming.

Definition at line 354 of file kdebug.h.


Constructor & Destructor Documentation

KDebug::Block::Block ( const char *  label,
int  area = KDE_DEFAULT_DEBUG_AREA 
)

Definition at line 874 of file kdebug.cpp.

KDebug::Block::~Block ( )

Definition at line 892 of file kdebug.cpp.


The documentation for this class was generated from the following files:
  • kdebug.h
  • kdebug.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal