ASN1C C/C++ Common Runtime  ASN1C v7.7.x
OSRTOutputStream.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2023 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 _OSRTOUTPUTSTREAM_H_
29 #define _OSRTOUTPUTSTREAM_H_
30 
31 #include "rtxsrc/OSRTOutputStreamIF.h"
32 #include "rtxsrc/OSRTStream.h"
33 
43 class EXTRTCLASS OSRTOutputStream :
44 public OSRTStream, public OSRTOutputStreamIF
45 {
46  public:
53  EXTRTMETHOD OSRTOutputStream ();
54 
55  EXTRTMETHOD OSRTOutputStream
56  (OSRTContext* mpContext, OSBOOL attachStream = FALSE);
57 
61  virtual EXTRTMETHOD ~OSRTOutputStream ();
62 
73  virtual EXTRTMETHOD int close ();
74 
83  virtual EXTRTMETHOD int flush ();
84 
94  virtual OSRTCtxtPtr getContext () {
95  return OSRTStream::getContext ();
96  }
97 
104  virtual OSCTXT* getCtxtPtr () {
105  return OSRTStream::getCtxtPtr ();
106  }
107 
115  virtual char* getErrorInfo () {
116  return OSRTStream::getErrorInfo ();
117  }
118 
135  virtual char* getErrorInfo (char* pBuf, size_t& bufSize) {
136  return OSRTStream::getErrorInfo (pBuf, bufSize);
137  }
138 
148  virtual int getStatus () const {
149  return OSRTStream::getStatus ();
150  }
151 
159  virtual OSBOOL isA (StreamID id) const {
160  return id == Unknown;
161  }
162 
169  virtual EXTRTMETHOD OSBOOL isOpened ();
170 
176 
182 
194  virtual EXTRTMETHOD long write (const OSOCTET* pdata, size_t size);
195 
206  virtual EXTRTMETHOD long write (const char* pdata);
207 
208 } ;
209 
212 #endif /* _OSRTOUTPUTSTREAM_H_ */
void printErrorInfo()
Definition: OSRTOutputStream.h:175
virtual int getStatus() const
Definition: OSRTOutputStream.h:148
Definition: OSRTStream.h:44
virtual EXTRTMETHOD int close()
void resetErrorInfo()
Definition: OSRTStream.h:180
virtual char * getErrorInfo()
Definition: OSRTOutputStream.h:115
virtual char * getErrorInfo()
Definition: OSRTStream.h:122
virtual OSCTXT * getCtxtPtr()
Definition: OSRTOutputStream.h:104
int getStatus() const
Definition: OSRTStream.h:155
void printErrorInfo()
Definition: OSRTStream.h:172
virtual EXTRTMETHOD int flush()
Definition: OSRTContext.h:310
void resetErrorInfo()
Definition: OSRTOutputStream.h:181
virtual OSRTCtxtPtr getContext()
Definition: OSRTOutputStream.h:94
virtual char * getErrorInfo(char *pBuf, size_t &bufSize)
Definition: OSRTOutputStream.h:135
Definition: OSRTContext.h:64
Definition: OSRTOutputStream.h:43
virtual OSBOOL isA(StreamID id) const
Definition: OSRTOutputStream.h:159
virtual EXTRTMETHOD OSBOOL isOpened()
Definition: rtxContext.h:198
virtual OSCTXT * getCtxtPtr()
Definition: OSRTStream.h:111
virtual OSRTCtxtPtr getContext()
Definition: OSRTStream.h:101