00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00037 #ifndef OUTPUT_HEADER
00038 #define OUTPUT_HEADER
00039
00040
00041 #include <stdarg.h>
00042
00043
00044
00045
00046 #define LOG_CAT_UNDEFINED 0
00047 #define LOG_CAT_ERROR 1
00048 #define LOG_CAT_WARNING 2
00049 #define LOG_CAT_INFO 3
00050 #define LOG_CAT_EXTRAINFO 4
00051 #define LOG_CAT_RESULTS 5
00052 #define LOG_CAT_TIMINGS 6
00053 #define LOG_CAT_MEMUSAGE 7
00054
00055
00056 #define LOG_AREA_UNDEFINED 0
00057 #define LOG_AREA_MAIN 1
00058 #define LOG_AREA_SCF 2
00059 #define LOG_AREA_LR 3
00060 #define LOG_AREA_INTEGRALS 4
00061 #define LOG_AREA_DENSFROMF 5
00062 #define LOG_AREA_DFT 6
00063 #define LOG_AREA_LOWLEVEL 7
00064 #define LOG_AREA_CI 8
00065 #define LOG_AREA_ED 9
00066 #define LOG_AREA_GS 10
00067
00068
00069 void do_output(int logCategory, int logArea, const char* format, ...);
00070 int do_voutput(int logCategory, int logArea, const char* format, va_list v);
00071 int do_voutput_printf(int logCategory, int logArea, const char* format, va_list a);
00072 void do_output_time(int logCategory, int logArea, const char* s);
00073 void output_current_memory_usage(int logArea, const char* contextString);
00074 void enable_memory_usage_output(void);
00075 void enable_output();
00076 void enable_printf_output();
00077
00078
00079 #endif