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
00029
00030
00031 #ifndef __LIBVISIO_UTILS_H__
00032 #define __LIBVISIO_UTILS_H__
00033
00034 #include <stdio.h>
00035
00036 #ifdef _MSC_VER
00037
00038 typedef unsigned char uint8_t;
00039 typedef unsigned short uint16_t;
00040 typedef unsigned uint32_t;
00041 typedef unsigned __int64 uint64_t;
00042
00043 #else
00044
00045 #ifdef HAVE_CONFIG_H
00046 #include <config.h>
00047 #endif
00048
00049 #ifdef HAVE_STDINT_H
00050 #include <stdint.h>
00051 #endif
00052
00053 #ifdef HAVE_INTTYPES_H
00054 #include <inttypes.h>
00055 #endif
00056
00057 #endif
00058
00059 #include <libwpd-stream/libwpd-stream.h>
00060
00061
00062
00063
00064
00065 #ifdef DEBUG
00066 #ifdef VERBOSE_DEBUG
00067 #define VSD_DEBUG_MSG(M) printf("%15s:%5d: ", __FILE__, __LINE__); printf M
00068 #define VSD_DEBUG(M) M
00069 #else
00070 #define VSD_DEBUG_MSG(M) printf M
00071 #define VSD_DEBUG(M) M
00072 #endif
00073 #else
00074 #define VSD_DEBUG_MSG(M)
00075 #define VSD_DEBUG(M)
00076 #endif
00077
00078 namespace libvisio
00079 {
00080
00081 uint8_t readU8(WPXInputStream *input);
00082 uint16_t readU16(WPXInputStream *input);
00083 uint32_t readU32(WPXInputStream *input);
00084 uint64_t readU64(WPXInputStream *input);
00085
00086 double readDouble(WPXInputStream *input);
00087
00088 class EndOfStreamException
00089 {
00090 };
00091
00092 class GenericException
00093 {
00094 };
00095
00096 }
00097
00098 #endif // __LIBVISIO_UTILS_H__
00099