ASN1C C/C++ Common Runtime  ASN1C v7.8.x
rtxPrint.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2022 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 
292 EXTERNRT void rtxPrintArrayNVP
293 (const char* name, OSSIZE subscript, const OSUTF8NVP* value);
294 
301 EXTERNRT int rtxPrintFile (const char* filename);
302 
303 #ifndef __SYMBIAN32__
304 
308 EXTERNRT void rtxPrintIndent (OSVOIDARG);
309 
313 EXTERNRT void rtxPrintIncrIndent (OSVOIDARG);
314 
318 EXTERNRT void rtxPrintDecrIndent (OSVOIDARG);
319 
324 EXTERNRT void rtxPrintCloseBrace (OSVOIDARG);
325 
330 EXTERNRT void rtxPrintOpenBrace (const char*);
331 
332 #endif
333 
344 EXTERNRT const char* rtxGetArrayElemName
345 (char* buffer, OSSIZE bufsize, const char* name, OSSIZE subscript);
346 
350 #ifdef __cplusplus
351 }
352 #endif
353 
354 #include "rtxsrc/rtxHexDump.h"
355 
356 #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)
const char * rtxGetArrayElemName(char *buffer, OSSIZE bufsize, const char *name, OSSIZE subscript)
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)
void rtxPrintArrayNVP(const char *name, OSSIZE subscript, const OSUTF8NVP *value)