DEADSOFTWARE

Successful read of StdTextModel (including actual text)
[odcread.git] / oberon.h
1 #ifndef _OBERON_H_
2 #define _OBERON_H_
4 #include <stdint.h>
6 namespace odc {
7 /**
8 * BOOLEAN: 1 byte (0 = FALSE, 1 = TRUE)
9 */
10 typedef bool BOOLEAN;
12 /**
13 * SHORTCHAR 1 byte in the Latin-1 character set (i.e., Unicode page 0; 00X..0FFX)
14 */
15 typedef char SHORTCHAR;
17 /**
18 * CHAR 2 byte in the Unicode character set (0000X..0FFFFX)
19 * (cannot use wchar_t as its width is not fixed)
20 */
21 typedef uint16_t CHAR;
23 /**
24 * BYTE: 1 byte (-128..127)
25 */
26 typedef int8_t BYTE;
28 /**
29 * SHORTINT: 2 bytes (-32768..32767)
30 */
31 typedef int16_t SHORTINT;
34 /**
35 * INTEGER: 4 bytes (-2147483648..2147483647)
36 */
37 typedef int32_t INTEGER;
39 /**
40 * LONGINT: 8 bytes (-9223372036854775808..9223372036854775807)
41 */
42 typedef int64_t LONGINT;
44 /**
45 * SHORTREAL: 4 bytes IEEE format
46 */
47 typedef float SHORTREAL;
49 /**
50 * REAL: 8 bytes IEEE format
51 */
52 typedef double REAL;
54 /**
55 * SET: 4 bytes (least significant bit = element 0)
56 */
57 typedef uint32_t SET;
59 /**
60 * Short String: string in the Latin-1 character set, followed by a 00X
61 * i.e. SHORTCHAR*
62 * String: string in the Unicode character set, followed by a 0000X
63 * i.e. CHAR*
64 */
66 bool isBigEndian();
67 bool isLittleEndian();
68 }
70 #endif