rtxPrintToStream.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2003-2010 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 #ifndef _NO_STREAM
00032 
00033 #include <stdio.h>
00034 #include "rtxsrc/rtxContext.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 
00060 EXTERNRT void rtxPrintToStreamBoolean
00061    (OSCTXT* pctxt, const char* name, OSBOOL value);
00062 
00071 EXTERNRT void rtxPrintToStreamDate
00072    (OSCTXT* pctxt, const char* name, const OSNumDateTime *pvalue);
00073 
00082 EXTERNRT void rtxPrintToStreamTime
00083    (OSCTXT* pctxt, const char* name, const OSNumDateTime *pvalue);
00084 
00093 EXTERNRT void rtxPrintToStreamDateTime
00094    (OSCTXT* pctxt, const char* name, const OSNumDateTime *pvalue);
00095 
00096 EXTERNRT void rtxPrintToStreamGYear
00097    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00098 
00099 EXTERNRT void rtxPrintToStreamGYearMonth
00100    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00101 
00102 EXTERNRT void rtxPrintToStreamGMonth
00103    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00104 
00105 EXTERNRT void rtxPrintToStreamGMonthDay
00106    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00107 
00108 EXTERNRT void rtxPrintToStreamGDay
00109    (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
00110 
00118 EXTERNRT void rtxPrintToStreamInteger
00119    (OSCTXT* pctxt, const char* name, OSINT32 value);
00120 
00128 EXTERNRT void rtxPrintToStreamInt64
00129    (OSCTXT* pctxt, const char* name, OSINT64 value);
00130 
00138 EXTERNRT void rtxPrintToStreamUnsigned
00139    (OSCTXT* pctxt, const char* name, OSUINT32 value);
00140 
00148 EXTERNRT void rtxPrintToStreamUInt64
00149    (OSCTXT* pctxt, const char* name, OSUINT64 value);
00150 
00162 EXTERNRT void rtxPrintToStreamHexStr
00163    (OSCTXT* pctxt, const char* name, OSUINT32 numocts, const OSOCTET* data);
00164 
00173 EXTERNRT void rtxPrintToStreamHexBinary
00174    (OSCTXT* pctxt, const char* name, OSUINT32 numocts, const OSOCTET* data);
00175 
00183 EXTERNRT void rtxPrintToStreamCharStr
00184    (OSCTXT* pctxt, const char* name, const char* cstring);
00185 
00193 EXTERNRT void rtxPrintToStreamUTF8CharStr
00194    (OSCTXT* pctxt, const char* name, const OSUTF8CHAR* cstring);
00195 
00210 EXTERNRT void rtxPrintToStreamUnicodeCharStr
00211    (OSCTXT* pctxt, const char* name, const OSUNICHAR* str, int nchars);
00212 
00220 EXTERNRT void rtxPrintToStreamReal
00221    (OSCTXT* pctxt, const char* name, OSREAL value);
00222 
00229 EXTERNRT void rtxPrintToStreamNull (OSCTXT* pctxt, const char* name);
00230 
00238 EXTERNRT void rtxPrintToStreamNVP
00239    (OSCTXT* pctxt, const char* name, const OSUTF8NVP* value);
00240 
00248 EXTERNRT int rtxPrintToStreamFile (OSCTXT* pctxt, const char* filename);
00249 
00250 #ifndef __SYMBIAN32__
00251 
00254 EXTERNRT void rtxPrintToStreamIndent (OSCTXT* pctxt);
00255 
00259 EXTERNRT void rtxPrintToStreamIncrIndent (void);
00260 
00264 EXTERNRT void rtxPrintToStreamDecrIndent (void);
00265 
00270 EXTERNRT void rtxPrintToStreamCloseBrace (OSCTXT* pctxt);
00271 
00276 EXTERNRT void rtxPrintToStreamOpenBrace (OSCTXT* pctxt, const char*);
00277 
00278 #endif
00279 
00288 EXTERNRT void rtxHexDumpToStream
00289    (OSCTXT* pctxt, const OSOCTET* data, OSUINT32 numocts);
00290 
00302 EXTERNRT void rtxHexDumpToStreamEx
00303    (OSCTXT* pctxt, const OSOCTET* data, OSUINT32 numocts, int bytesPerUnit);
00304 
00308 #ifdef __cplusplus
00309 }
00310 #endif
00311 
00312 #endif /* _NO_STREAM */
00313 #endif /* _RTXPRINTTOSTREAM_H_ */