• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_Log.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiSource Program Utilities
00004  *
00005  * Copyright (C) 2002 AbiSource, Inc.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301 USA.
00021  */
00022 
00023 #ifndef XAP_LOG
00024 #define XAP_LOG
00025 
00026 #include <stdio.h>
00027 
00028 /* pre-emptive dismissal; ut_types.h is needed by just about everything,
00029  * so even if it's commented out in-file that's still a lot of work for
00030  * the preprocessor to do...
00031  */
00032 #ifndef UT_TYPES_H
00033 #include "ut_types.h"
00034 #endif
00035 
00036 class UT_String;
00037 
00038 class AV_View;
00039 
00040 class EV_EditMethodCallData;
00041 
00042 class ABI_EXPORT XAP_Log
00043 {
00044 public:
00045     void log(const UT_String &method_name, AV_View *pAV_View, EV_EditMethodCallData *pCallData);
00046     static XAP_Log *get_instance();
00047     virtual ~XAP_Log();
00048 
00049 private:
00050     XAP_Log(const UT_String &logfile);
00051     FILE *m_pOutput;
00052     static XAP_Log *m_pInstance;
00053 };
00054 
00055 #endif /* XAP_LOG */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1