ASN1C C/C++ Common Runtime  ASN1C v7.2.x
Public Member Functions | Protected Attributes | List of all members
OSRTHexTextInputStream Class Reference

#include <OSRTHexTextInputStream.h>

Inheritance diagram for OSRTHexTextInputStream:
OSRTInputStream OSRTStream

Public Member Functions

EXTRTMETHOD OSRTHexTextInputStream (OSRTInputStream *pstream)
 
EXTRTMETHOD ~OSRTHexTextInputStream ()
 
virtual OSBOOL isA (StreamID id) const
 
void setOwnUnderStream (OSBOOL value=TRUE)
 
- Public Member Functions inherited from OSRTInputStream
EXTRTMETHOD OSRTInputStream ()
 
EXTRTMETHOD OSRTInputStream (OSRTContext *mpContext, OSBOOL attachStream=FALSE)
 
virtual EXTRTMETHOD ~OSRTInputStream ()
 
virtual EXTRTMETHOD int close ()
 
virtual EXTRTMETHOD size_t currentPos ()
 
virtual EXTRTMETHOD int flush ()
 
virtual OSRTCtxtPtr getContext ()
 
virtual OSCTXTgetCtxtPtr ()
 
virtual char * getErrorInfo ()
 
virtual char * getErrorInfo (char *pBuf, size_t &bufSize)
 
virtual int getPosition (size_t *ppos)
 
virtual int getStatus () const
 
virtual EXTRTMETHOD OSBOOL isOpened ()
 
virtual EXTRTMETHOD OSBOOL markSupported ()
 
virtual EXTRTMETHOD int mark (size_t readAheadLimit)
 
void printErrorInfo ()
 
void resetErrorInfo ()
 
virtual EXTRTMETHOD long read (OSOCTET *pDestBuf, size_t maxToRead)
 
virtual EXTRTMETHOD long readBlocking (OSOCTET *pDestBuf, size_t toReadBytes)
 
virtual EXTRTMETHOD int reset ()
 
virtual int setPosition (size_t pos)
 
virtual EXTRTMETHOD int skip (size_t n)
 
- Public Member Functions inherited from OSRTStream
virtual EXTRTMETHOD ~OSRTStream ()
 
int getStatus () const
 
OSBOOL isInitialized ()
 
void printErrorInfo ()
 
void resetErrorInfo ()
 

Protected Attributes

OSRTInputStreammpUnderStream
 
OSBOOL mbOwnUnderStream
 
- Protected Attributes inherited from OSRTStream
OSRTCtxtHolder mCtxtHolder
 
OSBOOL mbAttached
 
int mStatus
 
int mInitStatus
 

Additional Inherited Members

- Protected Member Functions inherited from OSRTStream
EXTRTMETHOD OSRTStream (OSRTContext *pContext, OSBOOL attachStream=FALSE)
 
EXTRTMETHOD OSRTStream (OSRTStream &original)
 
EXTRTMETHOD OSRTStream ()
 
EXTRTMETHOD char * getErrorInfo (size_t *pBufSize)
 

Detailed Description

Hexadecimal text input stream filter class. This class is created on top of an existing stream class to provide conversion of hexadecimal text input into binary form.

Constructor & Destructor Documentation

◆ OSRTHexTextInputStream()

EXTRTMETHOD OSRTHexTextInputStream::OSRTHexTextInputStream ( OSRTInputStream pstream)

Initializes the input stream using the existing standard input stream. Only file and memory underlying stream types are supported.

Parameters
pstreamThe underlying input stream object. Note that this class will take control of the underlying stream object and delete it upon destruction.
See also
rtxStreamHexTextAttach

◆ ~OSRTHexTextInputStream()

EXTRTMETHOD OSRTHexTextInputStream::~OSRTHexTextInputStream ( )

The destructor deletes the underlying stream object. That object should be used as nothing more to a surrogate to this object.

Member Function Documentation

◆ isA()

virtual OSBOOL OSRTHexTextInputStream::isA ( StreamID  id) const
inlinevirtual

This method is used to query a stream object in order to determine its actual type.

Parameters
idEnumerated stream identifier
Returns
True if the stream matches the identifier

Reimplemented from OSRTInputStream.

References OSRTInputStream::isA().

◆ setOwnUnderStream()

void OSRTHexTextInputStream::setOwnUnderStream ( OSBOOL  value = TRUE)
inline

This method transfers ownership of the underlying stream to the class.


The documentation for this class was generated from the following file: