ASN1C C/C++ Common Runtime  ASN1C v7.4.x
OSRTFileInputStream.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  *****************************************************************************/
28 #ifndef _OSRTFILEINPUTSTREAM_H_
29 #define _OSRTFILEINPUTSTREAM_H_
30 
31 #include "rtxsrc/OSRTInputStream.h"
32 
37 class EXTRTCLASS OSRTFileInputStream : public OSRTInputStream {
38  public:
45  EXTRTMETHOD OSRTFileInputStream (const char* pFilename);
46 
54  EXTRTMETHOD OSRTFileInputStream (OSRTContext* pContext, const char* pFilename);
55 
63  EXTRTMETHOD OSRTFileInputStream (FILE* file);
64 
73  EXTRTMETHOD OSRTFileInputStream (OSRTContext* pContext, FILE* file);
74 
75  virtual EXTRTMETHOD ~OSRTFileInputStream () {}
76 
84  virtual OSBOOL isA (StreamID id) const {
85  return id == File;
86  }
87 
88 } ;
89 
90 #endif /* _OSRTFILEINPUTSTREAM_H_ */
Definition: OSRTFileInputStream.h:37
virtual OSBOOL isA(StreamID id) const
Definition: OSRTFileInputStream.h:84
Definition: OSRTContext.h:64
Definition: OSRTInputStream.h:41