XBinder  Version 2.7.x
rtxStreamFile.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2020 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 _RTXSTREAMFILE_H_
28 #define _RTXSTREAMFILE_H_
29 
30 #ifndef _NO_STREAM
31 
32 #include <stdio.h>
33 #include "rtxsrc/rtxStream.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
58 EXTERNRT int rtxStreamFileAttach (OSCTXT* pctxt,
59  FILE* pFile, OSUINT16 flags);
60 
75 EXTERNRT int rtxStreamFileOpen (OSCTXT* pctxt,
76  const char* pFilename, OSUINT16 flags);
77 
88 EXTERNRT int rtxStreamFileCreateReader (OSCTXT* pctxt, const char* pFilename);
89 
100 EXTERNRT int rtxStreamFileCreateWriter (OSCTXT* pctxt, const char* pFilename);
101 
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
110 #endif /* _NO_STREAM */
111 #endif /* _RTXSTREAMFILE_H_ */
EXTERNRT int rtxStreamFileOpen(OSCTXT *pctxt, const char *pFilename, OSUINT16 flags)
Opens a file stream.
EXTERNRT int rtxStreamFileAttach(OSCTXT *pctxt, FILE *pFile, OSUINT16 flags)
Attaches the existing file structure pointer to the stream.
EXTERNRT int rtxStreamFileCreateReader(OSCTXT *pctxt, const char *pFilename)
This function creates an input file stream using the specified file name.
EXTERNRT int rtxStreamFileCreateWriter(OSCTXT *pctxt, const char *pFilename)
This function creates an output file stream using the file name.
Input/output data stream type definitions and function prototypes.
Run-time context structure.
Definition: rtxContext.h:197