Eneboo - Documentación para desarrolladores
src/libdigidoc/DigiDocDebug.h
Ir a la documentación de este archivo.
00001 #ifndef __DIGIDOC_DEBUG_H__
00002 #define __DIGIDOC_DEBUG_H__
00003 //==================================================
00004 // FILE:        DigiDocDebug.h
00005 // PROJECT:     Digi Doc
00006 // DESCRIPTION: Digi Doc functions for debug output
00007 // AUTHOR:  Veiko Sinivee, S|E|B IT Partner Estonia
00008 //==================================================
00009 // Copyright (C) AS Sertifitseerimiskeskus
00010 // This library is free software; you can redistribute it and/or
00011 // modify it under the terms of the GNU Lesser General Public
00012 // License as published by the Free Software Foundation; either
00013 // version 2.1 of the License, or (at your option) any later version.
00014 // This library is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 // Lesser General Public License for more details.
00018 // GNU Lesser General Public Licence is available at
00019 // http://www.gnu.org/copyleft/lesser.html
00020 //==========< HISTORY >=============================
00021 //      10.08.2004      Veiko Sinivee
00022 //                      Creation
00023 //==================================================
00024 
00025 #include <libdigidoc/DigiDocMem.h>
00026 #include <libdigidoc/DigiDocDefs.h>
00027 #include <stdarg.h>
00028 
00029 #ifdef  __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033 //-----------------------------------------
00034 // Formats debug output
00035 // level - debug level to output this message on
00036 // func - name of the function
00037 // format - message format and arguments
00038 //-----------------------------------------
00039 EXP_OPTION void ddocDebug(int level, const char* func, const char* format, ...);
00040 
00041 //-----------------------------------------
00042 // Formats debug output
00043 // level - debug level to output this message on
00044 // func - name of the function
00045 // msg - message format and arguments
00046 // args - va_list struct
00047 //-----------------------------------------
00048 EXP_OPTION  void ddocDebugVaArgs(int level, const char* func, const char* msg, va_list args);
00049 
00050 //-----------------------------------------
00051 // Deletes the log file if it exists.
00052 //-----------------------------------------
00053 EXP_OPTION void ddocDebugTruncateLog();
00054 
00055 //-----------------------------------------
00056 // Reads the contents of the log file
00057 // pMemBuf - buffer for log data
00058 //-----------------------------------------
00059 EXP_OPTION int ddocDebugReadLog(DigiDocMemBuf *pMemBuf);
00060 
00061 //-----------------------------------------
00062 // Writes debug data in a file
00063 // level - debug level to write on
00064 // szFileName - target file name
00065 // pMemBuf - buffer for log data
00066 //-----------------------------------------
00067 EXP_OPTION int ddocDebugWriteFile(int level, const char* szFileName, DigiDocMemBuf *pMemBuf);
00068 
00069 
00070 #ifdef  __cplusplus
00071 }
00072 #endif
00073 
00074 #endif // __DIGIDOC_DEBUG_H__
00075 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'