Debian Codegraph @

src/af/xap/xp/xap_Log.h

raw
1 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
2
3 /* AbiSource Program Utilities
4 *
5 * Copyright (C) 2002 AbiSource, Inc.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 * 02110-1301 USA.
21 */
22
23 #ifndef XAP_LOG
24 #define XAP_LOG
25
26 #include <stdio.h>
27
28 /* pre-emptive dismissal; ut_types.h is needed by just about everything,
29 * so even if it's commented out in-file that's still a lot of work for
30 * the preprocessor to do...
31 */
32 #ifndef UT_TYPES_H
33 #include "ut_types.h"
34 #endif
35
36 class UT_String;
37
38 class AV_View;
39
40 class EV_EditMethodCallData;
41
42 class ABI_EXPORT XAP_Log
43 {
44 public:
45 void log(const UT_String &method_name, AV_View *pAV_View, EV_EditMethodCallData *pCallData);
46 static XAP_Log *get_instance();
47 virtual ~XAP_Log();
48
49 private:
50 XAP_Log(const UT_String &logfile);
51 FILE *m_pOutput;
52 static XAP_Log *m_pInstance;
53 };
54
55 #endif /* XAP_LOG */