XBinder  Version 2.6.x
rtxPrint.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2018 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
27 #ifndef _RTXPRINT_H_
28 #define _RTXPRINT_H_
29 
30 #include <stdio.h>
31 #include "rtxsrc/rtxContext.h"
32 
33 #define OSRTINDENTSPACES 3 /* number of spaces for indent */
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 /* Run-time print utility functions */
40 
55 EXTERNRT void rtxPrintBoolean (const char* name, OSBOOL value);
56 
64 EXTERNRT void rtxPrintDate
65  (const char* name, const OSNumDateTime *pvalue);
66 
74 EXTERNRT void rtxPrintTime
75  (const char* name, const OSNumDateTime *pvalue);
76 
84 EXTERNRT void rtxPrintDateTime
85  (const char* name, const OSNumDateTime *pvalue);
86 
87 EXTERNRT void rtxPrintGYear
88  (const char* name, const OSNumDateTime* pvalue);
89 
90 EXTERNRT void rtxPrintGYearMonth
91  (const char* name, const OSNumDateTime* pvalue);
92 
93 EXTERNRT void rtxPrintGMonth
94  (const char* name, const OSNumDateTime* pvalue);
95 
96 EXTERNRT void rtxPrintGMonthDay
97  (const char* name, const OSNumDateTime* pvalue);
98 
99 EXTERNRT void rtxPrintGDay
100  (const char* name, const OSNumDateTime* pvalue);
101 
108 EXTERNRT void rtxPrintInteger (const char* name, OSINT32 value);
109 
116 EXTERNRT void rtxPrintInt64 (const char* name, OSINT64 value);
117 
124 EXTERNRT void rtxPrintUnsigned (const char* name, OSUINT32 value);
125 
132 EXTERNRT void rtxPrintUInt64 (const char* name, OSUINT64 value);
133 
144 EXTERNRT void rtxPrintHexStr
145 (const char* name, OSSIZE numocts, const OSOCTET* data);
146 
156 EXTERNRT void rtxPrintHexStrPlain
157 (const char* name, OSSIZE numocts, const OSOCTET* data);
158 
168 EXTERNRT void rtxPrintHexStrNoAscii
169 (const char* name, OSSIZE numocts, const OSOCTET* data);
170 
178 EXTERNRT void rtxPrintHexBinary
179 (const char* name, OSSIZE numocts, const OSOCTET* data);
180 
187 EXTERNRT void rtxPrintCharStr (const char* name, const char* cstring);
188 
195 EXTERNRT void rtxPrintUTF8CharStr
196 (const char* name, const OSUTF8CHAR* cstring);
197 
211 EXTERNRT void rtxPrintUnicodeCharStr
212 (const char* name, const OSUNICHAR* str, int nchars);
213 
214 EXTERNRT void rtxPrintUnicodeCharStr64
215 (const char* name, const OSUNICHAR* str, OSSIZE nchars);
216 
223 EXTERNRT void rtxPrintReal (const char* name, OSREAL value);
224 
230 EXTERNRT void rtxPrintNull (const char* name);
231 
238 EXTERNRT void rtxPrintNVP (const char* name, const OSUTF8NVP* value);
239 
246 EXTERNRT int rtxPrintFile (const char* filename);
247 
248 #ifndef __SYMBIAN32__
249 
253 EXTERNRT void rtxPrintIndent (OSVOIDARG);
254 
258 EXTERNRT void rtxPrintIncrIndent (OSVOIDARG);
259 
263 EXTERNRT void rtxPrintDecrIndent (OSVOIDARG);
264 
269 EXTERNRT void rtxPrintCloseBrace (OSVOIDARG);
270 
275 EXTERNRT void rtxPrintOpenBrace (const char*);
276 
277 #endif
278 
282 #ifdef __cplusplus
283 }
284 #endif
285 
286 #include "rtxsrc/rtxHexDump.h"
287 
288 #endif
EXTERNRT void rtxPrintNVP(const char *name, const OSUTF8NVP *value)
Prints a name-value pair to stdout.
EXTERNRT void rtxPrintBoolean(const char *name, OSBOOL value)
Prints a boolean value to stdout.
EXTERNRT void rtxPrintCloseBrace(OSVOIDARG)
This function closes a braced region by decreasing the indent level, printing indent spaces...
EXTERNRT void rtxPrintUTF8CharStr(const char *name, const OSUTF8CHAR *cstring)
Prints a UTF-8 encoded character string value to stdout.
EXTERNRT void rtxPrintCharStr(const char *name, const char *cstring)
Prints an ASCII character string value to stdout.
EXTERNRT void rtxPrintDateTime(const char *name, const OSNumDateTime *pvalue)
Prints a dateTime value to stdout.
EXTERNRT void rtxPrintDecrIndent(OSVOIDARG)
This function decrements the current indentation level.
EXTERNRT void rtxPrintInt64(const char *name, OSINT64 value)
Prints a 64-bit integer value to stdout.
EXTERNRT void rtxPrintUnicodeCharStr(const char *name, const OSUNICHAR *str, int nchars)
This function prints a Unicode string to standard output.
EXTERNRT void rtxPrintIncrIndent(OSVOIDARG)
This function increments the current indentation level.
Common run-time context definitions.
EXTERNRT void rtxPrintOpenBrace(const char *)
This function opens a braced region by printing indent spaces, printing the name and opening brace...
EXTERNRT void rtxPrintIndent(OSVOIDARG)
This function prints indentation spaces to stdout.
EXTERNRT void rtxPrintHexStr(const char *name, OSSIZE numocts, const OSOCTET *data)
This function prints the value of a binary string in hex format to standard output.
EXTERNRT void rtxPrintReal(const char *name, OSREAL value)
Prints a REAL (float, double, decimal) value to stdout.
EXTERNRT void rtxPrintHexStrNoAscii(const char *name, OSSIZE numocts, const OSOCTET *data)
This function prints the value of a binary string in hex format to standard output.
EXTERNRT void rtxPrintUInt64(const char *name, OSUINT64 value)
Prints an unsigned 64-bit integer value to stdout.
EXTERNRT int rtxPrintFile(const char *filename)
This function prints the contents of a text file to stdout.
EXTERNRT void rtxPrintInteger(const char *name, OSINT32 value)
Prints an integer value to stdout.
EXTERNRT void rtxPrintHexBinary(const char *name, OSSIZE numocts, const OSOCTET *data)
Prints an octet string value in hex binary format to stdout.
EXTERNRT void rtxPrintUnsigned(const char *name, OSUINT32 value)
Prints an unsigned integer value to stdout.
EXTERNRT void rtxPrintNull(const char *name)
Prints a NULL value to stdout.
EXTERNRT void rtxPrintHexStrPlain(const char *name, OSSIZE numocts, const OSOCTET *data)
This function prints the value of a binary string in hex format to standard output.
EXTERNRT void rtxPrintDate(const char *name, const OSNumDateTime *pvalue)
Prints a date value to stdout.
Numeric date/time structure.
Definition: osSysTypes.h:118
EXTERNRT void rtxPrintTime(const char *name, const OSNumDateTime *pvalue)
Prints a time value to stdout.