ASN1C C/C++ Common Runtime  ASN1C v7.3.x
rtxPrintToStream.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2019 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  *****************************************************************************/
24 
28 #ifndef _RTXPRINTTOSTREAM_H_
29 #define _RTXPRINTTOSTREAM_H_
30 
31 #include <stdio.h>
32 #include "rtxsrc/rtxContext.h"
33 
34 #define OSRTINDENTSPACES 3 /* number of spaces for indent */
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 /* Run-time print utility functions */
41 
58 EXTERNRT void rtxPrintToStreamBoolean
59  (OSCTXT* pctxt, const char* name, OSBOOL value);
60 
69 EXTERNRT void rtxPrintToStreamDate
70  (OSCTXT* pctxt, const char* name, const OSNumDateTime *pvalue);
71 
80 EXTERNRT void rtxPrintToStreamTime
81  (OSCTXT* pctxt, const char* name, const OSNumDateTime *pvalue);
82 
91 EXTERNRT void rtxPrintToStreamDateTime
92  (OSCTXT* pctxt, const char* name, const OSNumDateTime *pvalue);
93 
94 EXTERNRT void rtxPrintToStreamGYear
95  (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
96 
97 EXTERNRT void rtxPrintToStreamGYearMonth
98  (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
99 
100 EXTERNRT void rtxPrintToStreamGMonth
101  (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
102 
103 EXTERNRT void rtxPrintToStreamGMonthDay
104  (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
105 
106 EXTERNRT void rtxPrintToStreamGDay
107  (OSCTXT* pctxt, const char* name, const OSNumDateTime* pvalue);
108 
116 EXTERNRT void rtxPrintToStreamInteger
117  (OSCTXT* pctxt, const char* name, OSINT32 value);
118 
126 EXTERNRT void rtxPrintToStreamInt64
127  (OSCTXT* pctxt, const char* name, OSINT64 value);
128 
136 EXTERNRT void rtxPrintToStreamUnsigned
137  (OSCTXT* pctxt, const char* name, OSUINT32 value);
138 
146 EXTERNRT void rtxPrintToStreamUInt64
147  (OSCTXT* pctxt, const char* name, OSUINT64 value);
148 
160 EXTERNRT void rtxPrintToStreamHexStr
161  (OSCTXT* pctxt, const char* name, OSSIZE numocts, const OSOCTET* data);
162 
173 EXTERNRT void rtxPrintToStreamHexStrPlain
174  (OSCTXT* pctxt, const char* name, OSSIZE numocts, const OSOCTET* data);
175 
187 EXTERNRT void rtxPrintToStreamHexStrNoAscii
188  (OSCTXT* pctxt, const char* name, OSSIZE numocts, const OSOCTET* data);
189 
198 EXTERNRT void rtxPrintToStreamHexBinary
199  (OSCTXT* pctxt, const char* name, OSSIZE numocts, const OSOCTET* data);
200 
208 EXTERNRT void rtxPrintToStreamCharStr
209  (OSCTXT* pctxt, const char* name, const char* cstring);
210 
218 EXTERNRT void rtxPrintToStreamUTF8CharStr
219  (OSCTXT* pctxt, const char* name, const OSUTF8CHAR* cstring);
220 
235 EXTERNRT void rtxPrintToStreamUnicodeCharStr
236  (OSCTXT* pctxt, const char* name, const OSUNICHAR* str, int nchars);
237 
245 EXTERNRT void rtxPrintToStreamReal
246  (OSCTXT* pctxt, const char* name, OSREAL value);
247 
254 EXTERNRT void rtxPrintToStreamNull (OSCTXT* pctxt, const char* name);
255 
263 EXTERNRT void rtxPrintToStreamNVP
264  (OSCTXT* pctxt, const char* name, const OSUTF8NVP* value);
265 
273 EXTERNRT int rtxPrintToStreamFile (OSCTXT* pctxt, const char* filename);
274 
275 #ifndef __SYMBIAN32__
276 
279 EXTERNRT void rtxPrintToStreamIndent (OSCTXT* pctxt);
280 
287 EXTERNRT void rtxPrintToStreamResetIndent (OSCTXT* pctxt);
288 
295 EXTERNRT void rtxPrintToStreamIncrIndent (OSCTXT* pctxt);
296 
303 EXTERNRT void rtxPrintToStreamDecrIndent (OSCTXT* pctxt);
304 
309 EXTERNRT void rtxPrintToStreamCloseBrace (OSCTXT* pctxt);
310 
315 EXTERNRT void rtxPrintToStreamOpenBrace (OSCTXT* pctxt, const char*);
316 
317 #endif
318 
327 EXTERNRT void rtxHexDumpToStream
328  (OSCTXT* pctxt, const OSOCTET* data, OSSIZE numocts);
329 
341 EXTERNRT void rtxHexDumpToStreamEx
342  (OSCTXT* pctxt, const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
343 
355 EXTERNRT void rtxHexDumpToStreamExNoAscii
356  (OSCTXT* pctxt, const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
357 
361 #ifdef __cplusplus
362 }
363 #endif
364 
365 #endif /* _RTXPRINTTOSTREAM_H_ */
void rtxPrintToStreamCharStr(OSCTXT *pctxt, const char *name, const char *cstring)
void rtxPrintToStreamIncrIndent(OSCTXT *pctxt)
void rtxPrintToStreamCloseBrace(OSCTXT *pctxt)
void rtxPrintToStreamTime(OSCTXT *pctxt, const char *name, const OSNumDateTime *pvalue)
void rtxPrintToStreamHexStrPlain(OSCTXT *pctxt, const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxPrintToStreamResetIndent(OSCTXT *pctxt)
int rtxPrintToStreamFile(OSCTXT *pctxt, const char *filename)
void rtxPrintToStreamHexBinary(OSCTXT *pctxt, const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxHexDumpToStream(OSCTXT *pctxt, const OSOCTET *data, OSSIZE numocts)
void rtxPrintToStreamDateTime(OSCTXT *pctxt, const char *name, const OSNumDateTime *pvalue)
void rtxHexDumpToStreamExNoAscii(OSCTXT *pctxt, const OSOCTET *data, OSSIZE numocts, OSSIZE bytesPerUnit)
void rtxPrintToStreamDate(OSCTXT *pctxt, const char *name, const OSNumDateTime *pvalue)
void rtxPrintToStreamUnicodeCharStr(OSCTXT *pctxt, const char *name, const OSUNICHAR *str, int nchars)
void rtxPrintToStreamIndent(OSCTXT *pctxt)
void rtxPrintToStreamInteger(OSCTXT *pctxt, const char *name, OSINT32 value)
void rtxHexDumpToStreamEx(OSCTXT *pctxt, const OSOCTET *data, OSSIZE numocts, OSSIZE bytesPerUnit)
void rtxPrintToStreamUTF8CharStr(OSCTXT *pctxt, const char *name, const OSUTF8CHAR *cstring)
void rtxPrintToStreamHexStr(OSCTXT *pctxt, const char *name, OSSIZE numocts, const OSOCTET *data)
void rtxPrintToStreamUInt64(OSCTXT *pctxt, const char *name, OSUINT64 value)
void rtxPrintToStreamReal(OSCTXT *pctxt, const char *name, OSREAL value)
void rtxPrintToStreamDecrIndent(OSCTXT *pctxt)
void rtxPrintToStreamBoolean(OSCTXT *pctxt, const char *name, OSBOOL value)
void rtxPrintToStreamNVP(OSCTXT *pctxt, const char *name, const OSUTF8NVP *value)
void rtxPrintToStreamUnsigned(OSCTXT *pctxt, const char *name, OSUINT32 value)
void rtxPrintToStreamInt64(OSCTXT *pctxt, const char *name, OSINT64 value)
Definition: rtxContext.h:185
void rtxPrintToStreamNull(OSCTXT *pctxt, const char *name)
void rtxPrintToStreamOpenBrace(OSCTXT *pctxt, const char *)
void rtxPrintToStreamHexStrNoAscii(OSCTXT *pctxt, const char *name, OSSIZE numocts, const OSOCTET *data)