00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00027 #ifndef _RTXPRINT_H_
00028 #define _RTXPRINT_H_
00029
00030 #include <stdio.h>
00031 #include "rtxsrc/rtxContext.h"
00032
00033 #define OSRTINDENTSPACES 3
00034
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038
00039
00040
00056 EXTERNRT int rtxByteToHexChar (OSOCTET byte, char* buf, OSSIZE bufsize);
00057
00067 EXTERNRT int rtxByteToHexCharWithPrefix
00068 (OSOCTET byte, char* buf, OSSIZE bufsize, const char* prefix);
00069
00076 EXTERNRT void rtxPrintBoolean (const char* name, OSBOOL value);
00077
00085 EXTERNRT void rtxPrintDate
00086 (const char* name, const OSNumDateTime *pvalue);
00087
00095 EXTERNRT void rtxPrintTime
00096 (const char* name, const OSNumDateTime *pvalue);
00097
00105 EXTERNRT void rtxPrintDateTime
00106 (const char* name, const OSNumDateTime *pvalue);
00107
00108 EXTERNRT void rtxPrintGYear
00109 (const char* name, const OSNumDateTime* pvalue);
00110
00111 EXTERNRT void rtxPrintGYearMonth
00112 (const char* name, const OSNumDateTime* pvalue);
00113
00114 EXTERNRT void rtxPrintGMonth
00115 (const char* name, const OSNumDateTime* pvalue);
00116
00117 EXTERNRT void rtxPrintGMonthDay
00118 (const char* name, const OSNumDateTime* pvalue);
00119
00120 EXTERNRT void rtxPrintGDay
00121 (const char* name, const OSNumDateTime* pvalue);
00122
00129 EXTERNRT void rtxPrintInteger (const char* name, OSINT32 value);
00130
00137 EXTERNRT void rtxPrintInt64 (const char* name, OSINT64 value);
00138
00145 EXTERNRT void rtxPrintUnsigned (const char* name, OSUINT32 value);
00146
00153 EXTERNRT void rtxPrintUInt64 (const char* name, OSUINT64 value);
00154
00165 EXTERNRT void rtxPrintHexStr
00166 (const char* name, OSSIZE numocts, const OSOCTET* data);
00167
00177 EXTERNRT void rtxPrintHexStrPlain
00178 (const char* name, OSSIZE numocts, const OSOCTET* data);
00179
00189 EXTERNRT void rtxPrintHexStrNoAscii
00190 (const char* name, OSSIZE numocts, const OSOCTET* data);
00191
00199 EXTERNRT void rtxPrintHexBinary
00200 (const char* name, OSSIZE numocts, const OSOCTET* data);
00201
00208 EXTERNRT void rtxPrintCharStr (const char* name, const char* cstring);
00209
00216 EXTERNRT void rtxPrintUTF8CharStr
00217 (const char* name, const OSUTF8CHAR* cstring);
00218
00232 EXTERNRT void rtxPrintUnicodeCharStr
00233 (const char* name, const OSUNICHAR* str, int nchars);
00234
00235 EXTERNRT void rtxPrintUnicodeCharStr64
00236 (const char* name, const OSUNICHAR* str, OSSIZE nchars);
00237
00244 EXTERNRT void rtxPrintReal (const char* name, OSREAL value);
00245
00251 EXTERNRT void rtxPrintNull (const char* name);
00252
00259 EXTERNRT void rtxPrintNVP (const char* name, const OSUTF8NVP* value);
00260
00267 EXTERNRT int rtxPrintFile (const char* filename);
00268
00269 #ifndef __SYMBIAN32__
00270
00274 EXTERNRT void rtxPrintIndent (OSVOIDARG);
00275
00279 EXTERNRT void rtxPrintIncrIndent (OSVOIDARG);
00280
00284 EXTERNRT void rtxPrintDecrIndent (OSVOIDARG);
00285
00290 EXTERNRT void rtxPrintCloseBrace (OSVOIDARG);
00291
00296 EXTERNRT void rtxPrintOpenBrace (const char*);
00297
00298 #endif
00299
00309 EXTERNRT int rtxHexDumpToNamedFile
00310 (const char* filename, const OSOCTET* data, OSSIZE numocts);
00311
00321 EXTERNRT void rtxHexDumpToFile
00322 (FILE* fp, const OSOCTET* data, OSSIZE numocts);
00323
00335 EXTERNRT void rtxHexDumpToFileEx
00336 (FILE* fp, const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
00337
00350 EXTERNRT void rtxHexDumpToFileExNoAscii
00351 (FILE* fp, const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
00352
00360 EXTERNRT void rtxHexDump (const OSOCTET* data, OSSIZE numocts);
00361
00372 EXTERNRT void rtxHexDumpEx
00373 (const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
00374
00387 EXTERNRT int rtxHexDumpToString
00388 (const OSOCTET* data, OSSIZE numocts, char* buffer, OSSIZE bufferIndex,
00389 OSSIZE bufferSize);
00390
00406 EXTERNRT int rtxHexDumpToStringEx
00407 (const OSOCTET* data, OSSIZE numocts, char* buffer,
00408 OSSIZE bufferIndex, OSSIZE bufferSize, OSSIZE bytesPerUnit);
00409
00416 EXTERNRT int rtxHexDumpFileContents (const char* inFilePath);
00417
00425 EXTERNRT int rtxHexDumpFileContentsToFile
00426 (const char* inFilePath, const char* outFilePath);
00427
00443 EXTERNRT char* rtxHexDiffToDynString
00444 (OSCTXT* pctxt, const OSOCTET* pdata1, const OSOCTET* pdata2, OSSIZE numocts);
00445
00449 #ifdef __cplusplus
00450 }
00451 #endif
00452
00453 #endif