Home > Support > Documentation

rtxPrint.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2003-2007 Objective Systems, Inc.
00003  *
00004  * This software is furnished under a license and may be used and copied
00005  * only in accordance with the terms of such license and with the
00006  * inclusion of the above copyright notice. This software or any other
00007  * copies thereof may not be provided or otherwise made available to any
00008  * other person. No title to and ownership of the software is hereby
00009  * transferred.
00010  *
00011  * The information in this software is subject to change without notice
00012  * and should not be construed as a commitment by Objective Systems, Inc.
00013  *
00014  * PROPRIETARY NOTICE
00015  *
00016  * This software is an unpublished work subject to a confidentiality agreement
00017  * and is protected by copyright and trade secret law.  Unauthorized copying,
00018  * redistribution or other use of this work is prohibited.
00019  *
00020  * The above notice of copyright on this source code product does not indicate
00021  * any actual or intended publication of such source code.
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       /* number of spaces for indent  */
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 /* Run-time print utility functions */
00043 
00059 EXTERNRTX int rtxByteToHexChar (OSOCTET byte, char* buf, size_t bufsize);
00060 
00067 EXTERNRTX void rtxPrintBoolean (const char* name, OSBOOL value);
00068 
00076 EXTERNRTX void rtxPrintDate 
00077    (const char* name, const OSNumDateTime *pvalue);
00078 
00086 EXTERNRTX void rtxPrintTime 
00087    (const char* name, const OSNumDateTime *pvalue);
00088 
00096 EXTERNRTX void rtxPrintDateTime 
00097    (const char* name, const OSNumDateTime *pvalue);
00098 
00099 EXTERNRTX void rtxPrintGYear 
00100    (const char* name, const OSNumDateTime* pvalue);
00101 
00102 EXTERNRTX void rtxPrintGYearMonth 
00103    (const char* name, const OSNumDateTime* pvalue);
00104 
00105 EXTERNRTX void rtxPrintGMonth 
00106    (const char* name, const OSNumDateTime* pvalue);
00107 
00108 EXTERNRTX void rtxPrintGMonthDay 
00109    (const char* name, const OSNumDateTime* pvalue);
00110 
00111 EXTERNRTX void rtxPrintGDay 
00112    (const char* name, const OSNumDateTime* pvalue);
00113 
00120 EXTERNRTX void rtxPrintInteger (const char* name, OSINT32 value);
00121 
00128 EXTERNRTX void rtxPrintInt64 (const char* name, OSINT64 value);
00129 
00136 EXTERNRTX void rtxPrintUnsigned (const char* name, OSUINT32 value);
00137 
00144 EXTERNRTX void rtxPrintUInt64 (const char* name, OSUINT64 value);
00145 
00156 EXTERNRTX void rtxPrintHexStr 
00157 (const char* name, OSUINT32 numocts, const OSOCTET* data);
00158 
00166 EXTERNRTX void rtxPrintHexBinary 
00167 (const char* name, OSUINT32 numocts, const OSOCTET* data);
00168 
00175 EXTERNRTX void rtxPrintCharStr (const char* name, const char* cstring);
00176 
00183 EXTERNRTX void rtxPrintUTF8CharStr 
00184 (const char* name, const OSUTF8CHAR* cstring);
00185 
00199 EXTERNRTX void rtxPrintUnicodeCharStr 
00200 (const char* name, const OSUNICHAR* str, int nchars);
00201 
00208 EXTERNRTX void rtxPrintReal (const char* name, OSREAL value);
00209 
00215 EXTERNRTX void rtxPrintNull (const char* name);
00216 
00223 EXTERNRTX void rtxPrintNVP (const char* name, const OSUTF8NVP* value);
00224 
00231 EXTERNRTX int rtxPrintFile (const char* filename);
00232 
00233 #ifndef __SYMBIAN32__
00234 
00238 EXTERNRTX void rtxPrintIndent (void);
00239 
00243 EXTERNRTX void rtxPrintIncrIndent (void);
00244 
00248 EXTERNRTX void rtxPrintDecrIndent (void);
00249 
00254 EXTERNRTX void rtxPrintCloseBrace (void);
00255 
00260 EXTERNRTX void rtxPrintOpenBrace (const char*);
00261 
00262 #endif
00263 
00273 EXTERNRTX void rtxHexDumpToFile 
00274 (FILE* fp, const OSOCTET* data, OSUINT32 numocts);
00275 
00287 EXTERNRTX void rtxHexDumpToFileEx 
00288 (FILE* fp, const OSOCTET* data, OSUINT32 numocts, int bytesPerUnit);
00289 
00297 EXTERNRTX void rtxHexDump (const OSOCTET* data, OSUINT32 numocts);
00298 
00309 EXTERNRTX void rtxHexDumpEx 
00310 (const OSOCTET* data, OSUINT32 numocts, int bytesPerUnit);
00311 
00324 EXTERNRTX int rtxHexDumpToString 
00325 (const OSOCTET* data, OSUINT32 numocts, char* buffer, int bufferIndex, 
00326  int bufferSize);
00327 
00343 EXTERNRTX int rtxHexDumpToStringEx 
00344 (const OSOCTET* data, OSUINT32 numocts, char* buffer, 
00345  int bufferIndex, int bufferSize, int bytesPerUnit);
00346 
00347 EXTERNRTX int rtxPrintNSAttrs 
00348 (const char* name, const OSRTDList data);
00349 
00353 #ifdef __cplusplus
00354 }
00355 #endif
00356 
00357 #endif