+ rewrote C interface for SWIG/Python
[qpalma.git] / QPalmaDP / io.h
1 #ifndef __CIO_H__
2 #define __CIO_H__
3
4 #include "common.h"
5
6 #include <stdio.h>
7 #include <stdarg.h>
8
9 class CIO
10 {
11 public:
12 CIO();
13
14 static void set_target(FILE* target);
15 static void message(EMessageType prio, const CHAR *fmt, ... );
16
17 inline static void not_implemented()
18 {
19 message(M_ERROR, "Sorry, not yet implemented\n");
20 }
21
22 static void buffered_message(EMessageType prio, const CHAR *fmt, ... );
23
24 static CHAR* skip_spaces(CHAR* str);
25
26 protected:
27 static void check_target();
28 static void print_message_prio(EMessageType prio, FILE* target);
29
30 protected:
31 static FILE* target;
32 };
33 #endif