00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00028 #ifndef _RTXPRINT_H_
00029 #define _RTXPRINT_H_
00030
00031 #include <stdio.h>
00032 #include "rtxsrc/osSysTypes.h"
00033 #include "rtxsrc/rtxExternDefs.h"
00034 #include "rtxsrc/rtxDList.h"
00035
00036 #define OSRTINDENTSPACES 3
00037
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041
00042
00043
00059 EXTERNRT int rtxByteToHexChar (OSOCTET byte, char* buf, OSSIZE bufsize);
00060
00070 EXTERNRT int rtxByteToHexCharWithPrefix
00071 (OSOCTET byte, char* buf, OSSIZE bufsize, const char* prefix);
00072
00079 EXTERNRT void rtxPrintBoolean (const char* name, OSBOOL value);
00080
00088 EXTERNRT void rtxPrintDate
00089 (const char* name, const OSNumDateTime *pvalue);
00090
00098 EXTERNRT void rtxPrintTime
00099 (const char* name, const OSNumDateTime *pvalue);
00100
00108 EXTERNRT void rtxPrintDateTime
00109 (const char* name, const OSNumDateTime *pvalue);
00110
00111 EXTERNRT void rtxPrintGYear
00112 (const char* name, const OSNumDateTime* pvalue);
00113
00114 EXTERNRT void rtxPrintGYearMonth
00115 (const char* name, const OSNumDateTime* pvalue);
00116
00117 EXTERNRT void rtxPrintGMonth
00118 (const char* name, const OSNumDateTime* pvalue);
00119
00120 EXTERNRT void rtxPrintGMonthDay
00121 (const char* name, const OSNumDateTime* pvalue);
00122
00123 EXTERNRT void rtxPrintGDay
00124 (const char* name, const OSNumDateTime* pvalue);
00125
00132 EXTERNRT void rtxPrintInteger (const char* name, OSINT32 value);
00133
00140 EXTERNRT void rtxPrintInt64 (const char* name, OSINT64 value);
00141
00148 EXTERNRT void rtxPrintUnsigned (const char* name, OSUINT32 value);
00149
00156 EXTERNRT void rtxPrintUInt64 (const char* name, OSUINT64 value);
00157
00168 EXTERNRT void rtxPrintHexStr
00169 (const char* name, OSSIZE numocts, const OSOCTET* data);
00170
00180 EXTERNRT void rtxPrintHexStrPlain
00181 (const char* name, OSSIZE numocts, const OSOCTET* data);
00182
00192 EXTERNRT void rtxPrintHexStrNoAscii
00193 (const char* name, OSSIZE numocts, const OSOCTET* data);
00194
00202 EXTERNRT void rtxPrintHexBinary
00203 (const char* name, OSSIZE numocts, const OSOCTET* data);
00204
00211 EXTERNRT void rtxPrintCharStr (const char* name, const char* cstring);
00212
00219 EXTERNRT void rtxPrintUTF8CharStr
00220 (const char* name, const OSUTF8CHAR* cstring);
00221
00235 EXTERNRT void rtxPrintUnicodeCharStr
00236 (const char* name, const OSUNICHAR* str, int nchars);
00237
00238 EXTERNRT void rtxPrintUnicodeCharStr64
00239 (const char* name, const OSUNICHAR* str, OSSIZE nchars);
00240
00247 EXTERNRT void rtxPrintReal (const char* name, OSREAL value);
00248
00254 EXTERNRT void rtxPrintNull (const char* name);
00255
00262 EXTERNRT void rtxPrintNVP (const char* name, const OSUTF8NVP* value);
00263
00270 EXTERNRT int rtxPrintFile (const char* filename);
00271
00272 #ifndef __SYMBIAN32__
00273
00277 EXTERNRT void rtxPrintIndent (OSVOIDARG);
00278
00282 EXTERNRT void rtxPrintIncrIndent (OSVOIDARG);
00283
00287 EXTERNRT void rtxPrintDecrIndent (OSVOIDARG);
00288
00293 EXTERNRT void rtxPrintCloseBrace (OSVOIDARG);
00294
00299 EXTERNRT void rtxPrintOpenBrace (const char*);
00300
00301 #endif
00302
00312 EXTERNRT int rtxHexDumpToNamedFile
00313 (const char* filename, const OSOCTET* data, OSSIZE numocts);
00314
00324 EXTERNRT void rtxHexDumpToFile
00325 (FILE* fp, const OSOCTET* data, OSSIZE numocts);
00326
00338 EXTERNRT void rtxHexDumpToFileEx
00339 (FILE* fp, const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
00340
00353 EXTERNRT void rtxHexDumpToFileExNoAscii
00354 (FILE* fp, const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
00355
00363 EXTERNRT void rtxHexDump (const OSOCTET* data, OSSIZE numocts);
00364
00375 EXTERNRT void rtxHexDumpEx
00376 (const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
00377
00390 EXTERNRT int rtxHexDumpToString
00391 (const OSOCTET* data, OSSIZE numocts, char* buffer, OSSIZE bufferIndex,
00392 OSSIZE bufferSize);
00393
00409 EXTERNRT int rtxHexDumpToStringEx
00410 (const OSOCTET* data, OSSIZE numocts, char* buffer,
00411 OSSIZE bufferIndex, OSSIZE bufferSize, OSSIZE bytesPerUnit);
00412
00419 EXTERNRT int rtxHexDumpFileContents (const char* inFilePath);
00420
00428 EXTERNRT int rtxHexDumpFileContentsToFile
00429 (const char* inFilePath, const char* outFilePath);
00430
00434 #ifdef __cplusplus
00435 }
00436 #endif
00437
00438 #endif