output.h
Go to the documentation of this file.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 #ifndef OUTPUT_HEADER
00029 #define OUTPUT_HEADER
00030
00031
00032 #include <stdarg.h>
00033
00034
00035 #ifdef __cplusplus
00036 #define EXTERN_C extern "C"
00037 #else
00038 #define EXTERN_C
00039 #endif
00040
00041
00042 #define LOG_CAT_UNDEFINED 0
00043 #define LOG_CAT_ERROR 1
00044 #define LOG_CAT_WARNING 2
00045 #define LOG_CAT_INFO 3
00046 #define LOG_CAT_EXTRAINFO 4
00047 #define LOG_CAT_RESULTS 5
00048 #define LOG_CAT_TIMINGS 6
00049 #define LOG_CAT_MEMUSAGE 7
00050
00051
00052 #define LOG_AREA_UNDEFINED 0
00053 #define LOG_AREA_MAIN 1
00054 #define LOG_AREA_SCF 2
00055 #define LOG_AREA_LR 3
00056 #define LOG_AREA_INTEGRALS 4
00057 #define LOG_AREA_DENSFROMF 5
00058 #define LOG_AREA_DFT 6
00059 #define LOG_AREA_LOWLEVEL 7
00060 #define LOG_AREA_CI 8
00061
00062
00063 EXTERN_C void do_output(int logCategory, int logArea, const char* format, ...);
00064 EXTERN_C int do_voutput(int logCategory, int logArea, const char* format, va_list v);
00065 EXTERN_C void do_output_time(int logCategory, int logArea, const char* s);
00066 EXTERN_C void output_current_memory_usage(int logArea, const char* contextString);
00067 EXTERN_C void enable_memory_usage_output(void);
00068
00069
00070 #endif