home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bdebug.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.6 KB  |  64 lines

  1. /*
  2.  *
  3.  * $Id: k3bemptydiscwaiter.cpp 606691 2006-11-21 12:15:21Z trueg $
  4.  * Copyright (C) 2006 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16.  
  17. #ifndef _K3B_DEBUG_H_
  18. #define _K3B_DEBUG_H_
  19.  
  20. #include <qstring.h>
  21.  
  22. #include <k3bmsf.h>
  23. #include <k3bdevice_export.h>
  24.  
  25. class K3bDebug;
  26.  
  27. typedef K3bDebug& (*K3BDBGFUNC)( K3bDebug& );
  28.  
  29. /**
  30.  * K3bDebug as compared to KDebug does not need anything. No KInstance or whatever
  31.  * and does not use anything except fprintf.
  32.  * Thus, K3bDebug is fully thread-safe and safe in general
  33.  */
  34. class LIBK3BDEVICE_EXPORT K3bDebug
  35. {
  36.  public:
  37.   ~K3bDebug();
  38.  
  39.   K3bDebug& operator<<( int );
  40.   K3bDebug& operator<<( long );
  41.   K3bDebug& operator<<( unsigned int );
  42.   K3bDebug& operator<<( unsigned long );
  43.   K3bDebug& operator<<( unsigned long long );
  44.   K3bDebug& operator<<( char );
  45.   K3bDebug& operator<<( float );
  46.   K3bDebug& operator<<( double );
  47.   K3bDebug& operator<<( const QString& );
  48.   K3bDebug& operator<<( const QCString& );
  49.   K3bDebug& operator<<( const char* );
  50.   K3bDebug& operator<<( const K3b::Msf& );
  51.  
  52.   K3bDebug& operator<<( K3BDBGFUNC );
  53.  
  54.   static K3bDebug& k3bDebug();
  55.  
  56.  private:
  57.   K3bDebug();
  58. };
  59.  
  60. LIBK3BDEVICE_EXPORT K3bDebug& k3bDebug();
  61. LIBK3BDEVICE_EXPORT K3bDebug& endl( K3bDebug& );
  62.  
  63. #endif
  64.