ASN1C C/C++ Common Runtime  ASN1C v7.5.x
rtxPrint.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2021 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 
126 EXTERNRT void rtxPrintIpv4Addr(const char* name,
127  OSSIZE numocts, const OSOCTET* data);
128 
137 EXTERNRT void rtxPrintIpv6Addr(const char* name,
138  OSSIZE numocts, const OSOCTET* data);
139 
148 EXTERNRT void rtxPrintTBCDStr(const char* name,
149  OSSIZE numocts, const OSOCTET* data);
150 
159 EXTERNRT void rtxPrintText(const char* name,
160  OSSIZE numocts, const OSOCTET* data);
161 
168 EXTERNRT void rtxPrintUnsigned (const char* name, OSUINT32 value);
169 
176 EXTERNRT void rtxPrintUInt64 (const char* name, OSUINT64 value);
177 
188 EXTERNRT void rtxPrintHexStr
189 (const char* name, OSSIZE numocts, const OSOCTET* data);
190 
200 EXTERNRT void rtxPrintHexStrPlain
201 (const char* name, OSSIZE numocts, const OSOCTET* data);
202 
212 EXTERNRT void rtxPrintHexStrNoAscii
213 (const char* name, OSSIZE numocts, const OSOCTET* data);
214 
222 EXTERNRT void rtxPrintHexBinary
223 (const char* name, OSSIZE numocts, const OSOCTET* data);
224 
231 EXTERNRT void rtxPrintCharStr (const char* name, const char* cstring);
232 
239 EXTERNRT void rtxPrintUTF8CharStr
240 (const char* name, const OSUTF8CHAR* cstring);
241 
255 EXTERNRT void rtxPrintUnicodeCharStr
256 (const char* name, const OSUNICHAR* str, int nchars);
257 
258 EXTERNRT void rtxPrintUnicodeCharStr64
259 (const char* name, const OSUNICHAR* str, OSSIZE nchars);
260 
267 EXTERNRT void rtxPrintReal (const char* name, OSREAL value);
268 
274 EXTERNRT void rtxPrintNull (const char* name);
275 
282 EXTERNRT void rtxPrintNVP (const char* name, const OSUTF8NVP* value);
283 
290 EXTERNRT int rtxPrintFile (const char* filename);
291 
292 #ifndef __SYMBIAN32__
293 
297 EXTERNRT void rtxPrintIndent (OSVOIDARG);
298 
302 EXTERNRT void rtxPrintIncrIndent (OSVOIDARG);
303 
307 EXTERNRT void rtxPrintDecrIndent (OSVOIDARG);
308 
313 EXTERNRT void rtxPrintCloseBrace (OSVOIDARG);
314 
319 EXTERNRT void rtxPrintOpenBrace (const char*);
320 
321 #endif
322 
326 #ifdef __cplusplus
327 }
328 #endif
329 
330 #include "rtxsrc/rtxHexDump.h"
331 
332 #endif
void rtxPrintCharStr(const char *name, const char *cstring)
void rtxPrintCloseBrace(OSVOIDARG)
void rtxPrintUTF8CharStr(const char *name, const OSUTF8CHAR *cstring)
void rtxPrintHexStrNoAscii(const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxPrintDateTime(const char *name, const OSNumDateTime *pvalue)
void rtxPrintNull(const char *name)
void rtxPrintInt64(const char *name, OSINT64 value)
void rtxPrintInteger(const char *name, OSINT32 value)
void rtxPrintText(const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxPrintTime(const char *name, const OSNumDateTime *pvalue)
void rtxPrintUnsigned(const char *name, OSUINT32 value)
int rtxPrintFile(const char *filename)
void rtxPrintIpv4Addr(const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxPrintDate(const char *name, const OSNumDateTime *pvalue)
void rtxPrintHexStrPlain(const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxPrintIncrIndent(OSVOIDARG)
void rtxPrintNVP(const char *name, const OSUTF8NVP *value)
void rtxPrintTBCDStr(const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxPrintIpv6Addr(const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxPrintReal(const char *name, OSREAL value)
void rtxPrintDecrIndent(OSVOIDARG)
void rtxPrintUInt64(const char *name, OSUINT64 value)
void rtxPrintHexBinary(const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxPrintUnicodeCharStr(const char *name, const OSUNICHAR *str, int nchars)
void rtxPrintBoolean(const char *name, OSBOOL value)
void rtxPrintIndent(OSVOIDARG)
void rtxPrintOpenBrace(const char *)
void rtxPrintHexStr(const char *name, OSSIZE numocts, const OSOCTET *data)