1
#ifndef _KVIDEBUGCONTEXT_H_
2
#define _KVIDEBUGCONTEXT_H_
4
//=============================================================================
6
// File : KviDebugContext.h
7
// Creation date : Tue Jul 13 2010 23:27:23 CEST by Szymon Stefanek
9
// This file is part of the KVIrc irc client distribution
10
// Copyright (C) 2010 Szymon Stefanek (pragma at kvirc dot net)
12
// This program is FREE software. You can redistribute it and/or
13
// modify it under the terms of the GNU General Public License
14
// as published by the Free Software Foundation; either version 2
15
// of the License, or (at your opinion) any later version.
17
// This program is distributed in the HOPE that it will be USEFUL,
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
// See the GNU General Public License for more details.
22
// You should have received a copy of the GNU General Public License
23
// along with this program. If not, write to the Free Software Foundation,
24
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26
//=============================================================================
29
* \file KviDebugContext.h
30
* \author Szymon Stefanek
31
* \brief Debug context
34
#include "kvi_settings.h"
35
#include "KviCString.h"
38
* \class KviDebugContext
39
* \brief The KviDebugContext class
43
class KVILIB_API KviDebugContext
47
* \brief Creates an instance of KviDebugContext
48
* \param pcContext The format list argument
49
* \param ... The succeding arguments
50
* \return KviDebugContext
52
KviDebugContext(const char * pcContext, ...);
55
* \brief Destroys the instance of KviDebugContext and frees all the relevant resources
59
KviCString m_szContext;
63
* \param pcFmt The format list argument
64
* \param ... The succeding arguments
67
static void trace(const char * pcFmt, ...);
69
const KviDebugContext & operator = (const KviDebugContext &){ return *this; };
72
#endif // _KVIDEBUGCONTEXT_H_