28 #ifndef _OSRTSTREAM_H_ 29 #define _OSRTSTREAM_H_ 31 #include "rtxsrc/OSRTCtxtHolder.h" 32 #include "rtxsrc/OSRTStreamIF.h" 46 OSRTCtxtHolder mCtxtHolder;
62 EXTRTMETHOD
char* getErrorInfo (
size_t* pBufSize);
80 virtual EXTRTMETHOD
int close ();
90 virtual EXTRTMETHOD
int flush ();
102 return mCtxtHolder.getContext ();
112 return mCtxtHolder.getCtxtPtr ();
123 return mCtxtHolder.getErrorInfo ();
143 return mCtxtHolder.getErrorInfo (pBuf, bufSize);
159 inline OSBOOL isInitialized () {
return (OSBOOL)(mInitStatus == 0); }
166 virtual EXTRTMETHOD OSBOOL isOpened ();
173 mCtxtHolder.printErrorInfo ();
182 mCtxtHolder.resetErrorInfo ();
Definition: OSRTStream.h:44
int mInitStatus
Initialization status. 0 if initialized successfully.
Definition: OSRTStream.h:49
OSBOOL mbAttached
Flag, TRUE for "attached" streams.
Definition: OSRTStream.h:47
void resetErrorInfo()
Definition: OSRTStream.h:180
virtual char * getErrorInfo(char *pBuf, size_t &bufSize)
Definition: OSRTStream.h:142
virtual char * getErrorInfo()
Definition: OSRTStream.h:122
int getStatus() const
Definition: OSRTStream.h:155
void printErrorInfo()
Definition: OSRTStream.h:172
Definition: OSRTContext.h:310
Definition: OSRTContext.h:65
int mStatus
Last stream operation status.
Definition: OSRTStream.h:48
Definition: rtxContext.h:185
virtual OSCTXT * getCtxtPtr()
Definition: OSRTStream.h:111
virtual OSRTCtxtPtr getContext()
Definition: OSRTStream.h:101