Home > Support > Documentation

rtxPrintToStream.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 _RTXPRINTTOSTREAM_H_
00029 #define _RTXPRINTTOSTREAM_H_
00030 
00031 #include <stdio.h>
00032 #include "rtxsrc/rtxContext.h"
00033 
00034 #define OSRTINDENTSPACES        3       /* number of spaces for indent  */
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00040 /* Run-time print utility functions */
00041 
00058 EXTERNRTX void rtxPrintToStreamBoolean 
00059    (OSCTXT* pctxt, const char* name, OSBOOL value);
00060 
00069 EXTERNRTX void rtxPrintToStreamDate 
00070    (OSCTXT* pctxt, const char* name, const OSNumDateTime *pvalue);
00071 
00080 EXTERNRTX void rtxPrintToStreamTime 
00081    (OSCTXT* pctxt, const char* name, const OSNumDateTime *pvalue);
00082 
00091 EXTERNRTX void rtxPrintToStreamDateTime 
00092    (OSCTXT* pctxt, const char* name, const OSNumDateTime *pvalue);
00093 
00094 EXTERNRTX void rtxPrintToStreamGYear 
00095    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00096 
00097 EXTERNRTX void rtxPrintToStreamGYearMonth 
00098    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00099 
00100 EXTERNRTX void rtxPrintToStreamGMonth 
00101    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00102 
00103 EXTERNRTX void rtxPrintToStreamGMonthDay 
00104    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00105 
00106 EXTERNRTX void rtxPrintToStreamGDay 
00107    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00108 
00116 EXTERNRTX void rtxPrintToStreamInteger 
00117    (OSCTXT* pctxt, const char* name, OSINT32 value);
00118 
00126 EXTERNRTX void rtxPrintToStreamInt64 
00127    (OSCTXT* pctxt, const char* name, OSINT64 value);
00128 
00136 EXTERNRTX void rtxPrintToStreamUnsigned 
00137    (OSCTXT* pctxt, const char* name, OSUINT32 value);
00138 
00146 EXTERNRTX void rtxPrintToStreamUInt64 
00147    (OSCTXT* pctxt, const char* name, OSUINT64 value);
00148 
00160 EXTERNRTX void rtxPrintToStreamHexStr 
00161    (OSCTXT* pctxt, const char* name, OSUINT32 numocts, const OSOCTET* data);
00162 
00171 EXTERNRTX void rtxPrintToStreamHexBinary 
00172    (OSCTXT* pctxt, const char* name, OSUINT32 numocts, const OSOCTET* data);
00173 
00181 EXTERNRTX void rtxPrintToStreamCharStr 
00182    (OSCTXT* pctxt, const char* name, const char* cstring);
00183 
00191 EXTERNRTX void rtxPrintToStreamUTF8CharStr 
00192    (OSCTXT* pctxt, const char* name, const OSUTF8CHAR* cstring);
00193 
00208 EXTERNRTX void rtxPrintToStreamUnicodeCharStr 
00209    (OSCTXT* pctxt, const char* name, const OSUNICHAR* str, int nchars);
00210 
00218 EXTERNRTX void rtxPrintToStreamReal 
00219    (OSCTXT* pctxt, const char* name, OSREAL value);
00220 
00227 EXTERNRTX void rtxPrintToStreamNull (OSCTXT* pctxt, const char* name);
00228 
00236 EXTERNRTX void rtxPrintToStreamNVP 
00237    (OSCTXT* pctxt, const char* name, const OSUTF8NVP* value);
00238 
00246 EXTERNRTX int rtxPrintToStreamFile (OSCTXT* pctxt, const char* filename);
00247 
00248 #ifndef __SYMBIAN32__
00249 
00252 EXTERNRTX void rtxPrintToStreamIndent (OSCTXT* pctxt);
00253 
00257 EXTERNRTX void rtxPrintToStreamIncrIndent (void);
00258 
00262 EXTERNRTX void rtxPrintToStreamDecrIndent (void);
00263 
00268 EXTERNRTX void rtxPrintToStreamCloseBrace (OSCTXT* pctxt);
00269 
00274 EXTERNRTX void rtxPrintToStreamOpenBrace (OSCTXT* pctxt, const char*);
00275 
00276 #endif
00277 
00286 EXTERNRTX void rtxHexDumpToStream 
00287    (OSCTXT* pctxt, const OSOCTET* data, OSUINT32 numocts);
00288 
00300 EXTERNRTX void rtxHexDumpToStreamEx 
00301    (OSCTXT* pctxt, const OSOCTET* data, OSUINT32 numocts, int bytesPerUnit);
00302 
00306 #ifdef __cplusplus
00307 }
00308 #endif
00309 
00310 #endif