rllib  1
rlevent.h
Go to the documentation of this file.
1 /***************************************************************************
2  rlevent.h - description
3  -------------------
4  begin : Wed Dec 18 2002
5  copyright : (C) 2002 by R. Lehrig
6  email : lehrig@t-online.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13  * published by the Free Software Foundation *
14  * *
15  ***************************************************************************/
22 #ifndef _RL_EVENT_H_
23 #define _RL_EVENT_H_
24 
25 #include "rldefine.h"
26 #define rlMAX_EVENT 256 // maximum size of an event message
27 
28 static const char rlevent_name[][4] = { "INF", "WAR", "ERR", "CRI", "FAT", "TST" };
30 {
31  rlInfo = 0,
38 };
39 
40 #ifdef XXXunix
41 #define rlEvent(typ, format, args...) { rlSetEventLocation(__FILE__,__LINE__); rlEventPrintf( typ, format, args); }
42 #else
43 #define rlEvent rlSetEventLocation(__FILE__,__LINE__);rlEventPrintf
44 #endif
45 
52 void rlEventInit(int ac, char **av, const char *module);
53 
57 void rlSetEventLocation(const char *file, int line);
58 
62 void rlEventPrintf(int event_type, const char *format, ...);
63 
64 #endif
static const char rlevent_name[][4]
Definition: rlevent.h:28
Definition: rlevent.h:36
void rlEventPrintf(int event_type, const char *format,...)
Definition: rlevent.cpp:82
Definition: rlevent.h:31
void rlSetEventLocation(const char *file, int line)
Definition: rlevent.cpp:50
void rlEventInit(int ac, char **av, const char *module)
Definition: rlevent.cpp:36
EventTypes
Definition: rlevent.h:29