Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

lTrace.h

Go to the documentation of this file.
00001 /******************************************************************************/
00002 /*                                                                            */
00003 /* POLiTe - Persistent Object Library Test                                    */
00004 /*                                        Ph.D. Thesis by Mgr. Michal Kopecky */
00005 /*                                                                            */
00006 /* Charles University Prague                                                  */
00007 /*                                                                            */
00008 /******************************************************************************/
00009 /*                                                                            */
00010 /* File name: ...                                                             */
00011 /* Module: ......                                                             */
00012 /*                                                                            */
00013 /******************************************************************************/
00014 
00015 #ifndef __L_TRACE_H__
00016 #define __L_TRACE_H__
00017 
00018 // Standard Header(s)
00019 #include <stdio.h>
00020 
00021 // Common POLiTe Header(s)
00022 #include <lDefs.h>
00023 #include <lTypes.h>
00024 #include <lStr.h>
00025 
00026 #ifdef POLITE_TRACE
00027 
00028 class DLL_External LogWriter
00029 {
00030 public:
00031         static int count;
00032         static FILE *stdlog;
00033         int TraceMask;
00034         int TraceMaskTTY;
00035         LogWriter();
00036         virtual ~LogWriter();
00037 };
00038 
00039 extern DLL_External class LogWriter POLiTeLogWriter;
00040 
00041 DLL_External int TraceLibrary_Init();
00042 // opens standard log file
00043 
00044 DLL_External int logmsg(const int mask, const char *message);
00045 // writes to a standard log file
00046 
00047 DLL_External int logmsg(const char *message);
00048 // writes to a standard log file
00049 
00050 DLL_External int logmsg(const int mask, const char *format, const char *message);
00051 // writes to a standard log file
00052 
00053 DLL_External int logmsg(const char *format, const char *message);
00054 // writes to a standard log file
00055 
00056 DLL_External int logmsg(const int mask, const char *format, const long int message);
00057 // writes to a standard log file
00058 
00059 DLL_External int logmsg(const char *format, const long int message);
00060 // writes to a standard log file
00061 
00062 DLL_External char *msg(const enum UpdatingStrategy);
00063 // convertst enum UpdatingStrategy to a string
00064 
00065 DLL_External char *msg(const enum LockingStrategy);
00066 // convertst enum LockingStrategy to a string
00067 
00068 DLL_External char *msg(const enum WaitingStrategy);
00069 // convertst enum WaitingStrategy to a string
00070 
00071 DLL_External char *msg(const enum ReadingStrategy);
00072 // convertst enum ReadingStrategy to a string
00073 
00074 DLL_External int TraceLibrary_Done();
00075 // closes standard log file
00076 
00077 #endif //POLITE_TRACE
00078 
00079 #endif //__L_TRACE_H__

Generated on Sun Jul 14 20:51:15 2002 for POLiTe by doxygen1.2.16